Bug 480629 - Crash when entering folder with this one file in it while thumbnails are enabled
Summary: Crash when entering folder with this one file in it while thumbnails are enabled
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 24.01.95
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-31 21:11 UTC by Nate Graham
Modified: 2025-02-22 17:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2024-01-31 21:11:56 UTC
Everything KDE from git master on Plasma 6 Wayland built against Qt 6.6.0 on top of Fedora 39 with Qt 6.6.0


STEPS TO REPRODUCE
1. mkdir -p ~/test/test/
2. Download https://small.fileditchnew.ch/s3/ETSIJYmUtwshXLNMEJCe.tar.gz and un-archive the content into ~/test/test/
3. Launch Dolphin  with it rooted at your home folder
4. Navigate to ~/test/test/ by clicking on the "test" folder twice
5. If previews aren't turned on, turn them on with F12


OBSERVED RESULT
100% reproducible crash for me in fetchIndexedToARGB32PM():

#0  fetchIndexedToARGB32PM<(QPixelLayout::BPP)3>
    (buffer=buffer@entry=0x7fffc49f17d0, src=0x1b42858 '\376' <repeats 70 times>, "\370\301\321\322\322\322\330", '\322' <repeats 13 times>, "\310A;C\316", '\322' <repeats 14 times>, "\321", '\322' <repeats 17 times>, "\321\321\322\322\322\322\321\322\322\322\322\322\322\322\321;\226\331\321", '\322' <repeats 23 times>, "\330\321\322\322\322\322\322\322\321\322\322\321\321\322\322\322\322\322\322آ3\305\322\322\322\322\322\322\322", <incomplete sequence \322>..., index=index@entry=0, count=count@entry=396, clut=clut@entry=0x0)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/painting/qpixellayout.cpp:758
#1  0x00007ffff57901dc in fetchTransformedBilinear_simple_scale_helper<(TextureBlendType)4>
    (b=b@entry=0x7fffc49fc9c0, end=end@entry=0x7fffc49fcd34, image=<optimized out>, fx=@0x7fffc49f58f8: 25682, fdx=fdx@entry=116902, fy=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/painting/qdrawhelper.cpp:2076
#2  0x00007ffff57b3249 in fetchTransformedBilinear<(TextureBlendType)4, (QPixelLayout::BPP)0>
    (buffer=0x7fffc49fc9c0, data=<optimized out>, y=<optimized out>, x=<optimized out>, length=221)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/painting/qdrawhelper.cpp:2341
#3  0x00007ffff57bea54 in BlendSrcGeneric::fetch
    (fetchDest=false, len=<optimized out>, y=<optimized out>, x=0, this=0x7fffc49fa9a0)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/painting/qdrawhelper.cpp:4041
#4  handleSpans<BlendSrcGeneric>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda(int, int)#1}::operator()(int, int) const
    (__closure=0x7fffffffaad0, cStart=<optimized out>, cEnd=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/painting/qdrawhelper.cpp:3993
#5  0x00007ffff57becb9 in handleSpans<BlendSrcGeneric>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda()#1}::operator()() const (__closure=0x12b8cf8)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/gui/painting/qdrawhelper.cpp:4015
#6  QRunnable::QGenericRunnable::Helper<handleSpans<BlendSrcGeneric>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda()#1}>::impl(QRunnable::QGenericRunnable::HelperBase::Op, QRunnable::QGenericRunnable::HelperBase*, void*) (op=<optimized out>, that=0x12b8cf0, arg=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/redhat-linux-build/include/QtCore/../../../src/corelib/thread/qrunnable.h:73
#7  0x00007ffff4b299f7 in QThreadPoolThread::run (this=0x8af8f0)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/thread/qthreadpool.cpp:66
#8  0x00007ffff4b2465e in operator() (__closure=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/thread/qthread_unix.cpp:324
#9  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
    (t=<optimized out>)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/thread/qthread_unix.cpp:260
#10 QThreadPrivate::start (arg=0x8af8f0)
    at /usr/src/debug/qt6-qtbase-6.6.0-6.fc39.x86_64/src/corelib/thread/qthread_unix.cpp:283
#11 0x00007ffff42ac897 in start_thread (arg=<optimized out>) at pthread_create.c:444
#12 0x00007ffff43336fc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78


ADDITIONAL INFORMATION
Took a while, but I managed to localize the problem to only one specific file. I have not been able to reproduce it with any other files.

Only reproduces in Dolphin. Does not reproduce with previews turned on in the open/save dialogs or Plasma Folder View.

Uploading the file to fileditch.coim seems to have fixed it so that it no longer causes the problem anymore. If you download https://small.fileditchnew.ch/s3/cMEZcuoFGSImABwdHLbN.odp and then try to reproduce the issue with that, it will work fine.
Comment 1 Akseli Lahtinen 2024-02-01 14:09:57 UTC
I can't repro this at all no matter how much I try. Neither files make it happen. I tried to modify the file to see if it needs to refresh somehow but still nothing.



Operating System: Fedora Linux 39
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.0
Kernel Version: 6.6.13-200.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 2 Nate Graham 2024-02-01 21:13:17 UTC
:(
Comment 3 Nate Graham 2025-02-22 17:56:12 UTC
Can't reproduce anymore.