Bug 441542 - Gwenview crashes after some time when viewing large directories
Summary: Gwenview crashes after some time when viewing large directories
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 20.12.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-08-25 19:10 UTC by Eumel
Modified: 2022-01-21 02:22 UTC (History)
1 user (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 Eumel 2021-08-25 19:10:15 UTC
Application: gwenview (20.12.3)

Qt Version: 5.15.2
Frameworks Version: 5.80.0
Operating System: Linux 5.11.0-31-generic x86_64
Windowing System: X11
Drkonqi Version: 5.21.4
Distribution: Ubuntu 21.04

-- Information about the crash:
- What I was doing when the application crashed:
I viewed a large directory (14GB, ~3500 .jpg files), was scrolling all directory thumbnails from top to bottom.
After some time, gwenview crashed.
This happened repeatedly randomly, last time ~3 times during browsing.
The same happened with a similar, but different directory.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Gwenview (gwenview), signal: Aborted

[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#5  0x00007fdfe90a3864 in __GI_abort () at abort.c:79
#6  0x00007fdfe9512c77 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fdfe9513581 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fdfeb1e0ad6 in ?? () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#9  0x00007fdfe9767eb3 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fdfea40f783 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007fdfe973a7ba in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007fdfe973d7e1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007fdfe9794ba7 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fdfe6e7e8eb in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007fdfe6ed1d28 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007fdfe6e7c023 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007fdfe9794204 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007fdfe973911b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fdfe9741604 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x000056371e6dcc1f in ?? ()
#21 0x00007fdfe90a5565 in __libc_start_main (main=0x56371e6dc6f0, argc=2, argv=0x7ffda8c432d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffda8c432c8) at ../csu/libc-start.c:332
#22 0x000056371e6dd13e in _start ()
[Inferior 1 (process 19195) detached]

Possible duplicates by query: bug 441121, bug 440777, bug 440257, bug 434072, bug 430334.

Reported using DrKonqi
Comment 1 Eumel 2021-08-25 19:49:19 UTC
Happened multiple times again, note that I was hitting [ENTER] on one picture, then the picture was shown, then [ESC] to get back to gallery view, then it immediately crashed.
Comment 2 Eumel 2021-08-25 20:05:14 UTC
Kind of reliably reproducible now: Also with [Enter], [Space]...[Space] (to forward between pictures), then [ESC], then the thumbnail gallery is shown, but (in this case) only with placeholders, then immediately a crash.
Comment 3 indecisiveautomator 2022-01-21 02:22:29 UTC
Experiencing similar behaviour on Plasma Wayland when trying to browse an 11gb folder with almost 20,000 images (mix of jpgs and pngs). Gwenview just crashes after a few seconds. When trying to open up an image from this folder with Gwenview, it simply crashes after at most about 10 seconds. Sometimes the window will go grey before crashing, as if it is hanging, but usually it will just close immediately.

The first time when attempting to open the directory, no files are displayed and it simply crashes. On subsequent opens, a list of images is displayed with file names and a little timer icon where the thumbnail should go, as if it is trying to load a thumbnail, and then crashes once again after a few seconds. I tried several times, and the behaviour is the same.

When running from the command line, the only new output it spews when trying to open an image before crashing compared to successfully opening an image is:

"Could not find video stream
The Wayland connection broke. Did the Wayland compositor die?"

Can reproduce on both my NTFS drive with an 11gb folder and with a 10gb folder with 15,000 items on an ext4 drive.

Application: Gwenview: 21.12.1
Linux/KDE Plasma: 5.16.0-arch1-1
KDE Plasma Version: 5.23.90 (Plasma Wayland)
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2