Dolphin crashing when accessing an MTP device with a large number of files

Whenever I try to use Dolphin (version 25.12.2) under KDE Neon with my android device (pixel 5) in file transfer mode (MTP). It works fine for a bit until I start browsing and it will randomly crash with the following output in the terminal:
ASSERT: “(!QFileInfo(m_tempName).isDir() && QFileInfo(m_tempName).isFile()) || QFileInfo(m_tempName).isSymLink()” in file /workspace/build/src/gui/filepreviewjob.cpp, line 69
KCrash: Application ‘dolphin’ crashing… crashRecursionCounter = 2
fish: Job 1, ‘dolphin’ terminated by signal SIGABRT (Abort)

I tried searching online but did not find anything similar. dmesg is clear. Normal USB drives and some other devices in MTP appear to work fine.

Additional system info:
Operating System: KDE neon User Edition
KDE Plasma Version: 6.6.0
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Kernel Version: 6.17.0-14-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 5850U with Radeon Graphics
Memory: 32 GiB of RAM (29.2 GiB usable)
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 21A0004KPB
System Version: ThinkPad P14s Gen 2a

Any help or further debugging steps would be appreciated because I am at a loss here.

Thank you.

After playing around with it a bit more I found a workaround:
go into Dolphin Settings, Preview and disable previews completely (all file types, or the ones you will find on the device only)

After doing that it stopped crashing!

Could you still open a bug report (or share here), the backtrace.txt file, generated by the command:

coredumpctl debug dolphin -A "-ex bt -ex quit" |& tee backtrace.txt

more on that: Debug symbols for all!

There was a few changes in upcoming dolphin 26.04 regarding preview handling that might help here.

Done, submitted the bug here.

1 Like