Bug 472610

Summary: KPA crashes in viewer mode when switching form video to image
Product: [Applications] kphotoalbum Reporter: Andreas Schleth <schleth_es>
Component: ViewerAssignee: KPhotoAlbum Bugs <kpabugs>
Status: RESOLVED FIXED    
Severity: crash CC: johannes
Priority: NOR    
Version: GIT master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: attachment-2500322-0.html

Description Andreas Schleth 2023-07-25 11:09:27 UTC
SUMMARY
***
I view a few videos and images from a smartphone in the full screen viewer. After seeing some video clips, KPA crashes before displaying the next image. 
The crash only happens, if the first item to view is a video.
When starting with an image, switching to a video and back is no problem.
***

STEPS TO REPRODUCE
1. Have a folder with mixed videos and images
2. select a few *starting with a video*
3. start the viewer 
4. video shows
5. select the next ... until you reach an image (I used the mouse wheel to progress)

OBSERVED RESULT
KPA crashes

EXPECTED RESULT
should not crash but show the image

SOFTWARE/OS VERSIONS
KPA: v5.11.0-13-g967e13b1
Windows: 
macOS: 
Linux: opensuse Leap 15.4
KDE Plasma Version: 5.24.4 
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Terminal session:
kphotoalbum -c index.xml
kphotoalbum.DB: No designated 'untagged' tag found in database and no viable value configured in settings.
QtAV 1.13.0(Nov 23 2020, 08:49)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
capi::version: 0.6.0
Cannot connect to server socket err = Datei oder Verzeichnis nicht gefunden
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
KCrash: Application 'kphotoalbum' crashing...
Invalid read from eventfd: Ungültiger Dateideskriptor
Code should not be reached at ../src/pulsecore/fdsem.c:155, function flush(). Aborting.
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
Abgebrochen (Speicherabzug geschrieben)

Terminal session with gdb:
gdb --args kphotoalbum -c index.xml
GNU gdb (GDB; SUSE Linux Enterprise 15) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kphotoalbum...
(gdb) run
Starting program: /usr/bin/kphotoalbum -c index.xml
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.31-150300.52.2.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffcae3c700 (LWP 22759)]
[New Thread 0x7fffc88e9700 (LWP 22760)]
[New Thread 0x7fffc16bb700 (LWP 22761)]
kphotoalbum.DB: No designated 'untagged' tag found in database and no viable value configured in settings.
[New Thread 0x7fffb1047700 (LWP 22766)]
[New Thread 0x7fffb0846700 (LWP 22767)]
[New Thread 0x7fffb0045700 (LWP 22768)]
[New Thread 0x7fffaf844700 (LWP 22769)]
[New Thread 0x7fffaf043700 (LWP 22770)]
[New Thread 0x7fffac6db700 (LWP 22823)]
[New Thread 0x7fffaaad9700 (LWP 22824)]
[New Thread 0x7fffa8ae9700 (LWP 22825)]
[New Thread 0x7fff82bfe700 (LWP 22826)]
[New Thread 0x7fff897fd700 (LWP 22827)]
[New Thread 0x7fff88ffc700 (LWP 22828)]
[New Thread 0x7fff80ffc700 (LWP 22829)]
[New Thread 0x7fff72bfe700 (LWP 22830)]
[New Thread 0x7fff6986d700 (LWP 22831)]
[New Thread 0x7fff6906c700 (LWP 22832)]
[New Thread 0x7fff6886b700 (LWP 22833)]
QtAV 1.13.0(Nov 23 2020, 08:49)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai, China Copyright (C) 2012-2019 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org
capi::version: 0.6.0
[New Thread 0x7fff887fb700 (LWP 22843)]
Cannot connect to server socket err = Datei oder Verzeichnis nicht gefunden
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[Thread 0x7fff887fb700 (LWP 22843) exited]
[New Thread 0x7fff71a7b700 (LWP 22844)]
[Thread 0x7fff71a7b700 (LWP 22844) exited]
[New Thread 0x7fff71a7b700 (LWP 22845)]
[Thread 0x7fff71a7b700 (LWP 22845) exited]
[New Thread 0x7fff71a7b700 (LWP 22846)]
[New Thread 0x7fff8877a700 (LWP 22847)]
[Thread 0x7fff8877a700 (LWP 22847) exited]
[Thread 0x7fff71a7b700 (LWP 22846) exited]
[New Thread 0x7fff71a7b700 (LWP 22848)]
[New Thread 0x7fff8877a700 (LWP 22849)]
[New Thread 0x7fff7127a700 (LWP 22850)]
[New Thread 0x7fff70a79700 (LWP 22851)]
[New Thread 0x7fff6bfff700 (LWP 22852)]
[New Thread 0x7fff6b7fe700 (LWP 22853)]
[New Thread 0x7fff6affd700 (LWP 22854)]
[New Thread 0x7fff6a7fc700 (LWP 22855)]
[New Thread 0x7fff3ffff700 (LWP 22856)]
[New Thread 0x7fff3f7fe700 (LWP 22857)]
[New Thread 0x7fff3effd700 (LWP 22858)]
[New Thread 0x7fff3e7fc700 (LWP 22859)]
[New Thread 0x7fff3dffb700 (LWP 22860)]
[New Thread 0x7fff3d7fa700 (LWP 22861)]
[Thread 0x7fff3e7fc700 (LWP 22859) exited]
[Thread 0x7fff3dffb700 (LWP 22860) exited]
[Thread 0x7fff70a79700 (LWP 22851) exited]
[Thread 0x7fff7127a700 (LWP 22850) exited]
[Thread 0x7fff6bfff700 (LWP 22852) exited]
[Thread 0x7fff6b7fe700 (LWP 22853) exited]
[Thread 0x7fff6affd700 (LWP 22854) exited]
[Thread 0x7fff6a7fc700 (LWP 22855) exited]
[Thread 0x7fff3ffff700 (LWP 22856) exited]
[Thread 0x7fff3f7fe700 (LWP 22857) exited]
[Thread 0x7fff3effd700 (LWP 22858) exited]
[Thread 0x7fff3d7fa700 (LWP 22861) exited]

Thread 1 "kphotoalbum" received signal SIGSEGV, Segmentation fault.
0x0000000000471c40 in QString::QString (this=0x7fffffffbea0, other=...) at /usr/include/qt5/QtCore/qstring.h:1093
1093    inline QString::QString(const QString &other) noexcept : d(other.d)
Missing separate debuginfos, use: zypper install Mesa-dri-debuginfo-21.2.4-150400.68.12.1.x86_64 Mesa-libGL1-debuginfo-21.2.4-150400.68.12.1.x86_64 Mesa-libglapi0-debuginfo-21.2.4-150400.68.12.1.x86_64 frameworkintegration-plugin-debuginfo-5.90.0-bp154.1.41.x86_64 kimageformats-debuginfo-5.90.0-bp154.1.50.x86_64 kio-core-debuginfo-5.90.0-bp154.1.102.x86_64 kio-debuginfo-5.90.0-bp154.1.102.x86_64 krb5-debuginfo-1.19.2-150400.3.3.1.x86_64 kservice-debuginfo-5.90.0-150400.3.2.3.x86_64 kwayland-debuginfo-5.90.0-bp154.1.78.x86_64 libFLAC8-debuginfo-1.3.2-150000.3.11.1.x86_64 libHalf23-debuginfo-2.2.1-1.17.x86_64 libICE6-debuginfo-1.0.9-1.25.x86_64 libIex-2_2-23-debuginfo-2.2.1-1.17.x86_64 libIlmImf-2_2-23-debuginfo-2.2.1-3.41.1.x86_64 libIlmThread-2_2-23-debuginfo-2.2.1-1.17.x86_64 libKF5Archive5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5Auth5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5AuthCore5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5Bookmarks5-debuginfo-5.90.0-150400.3.2.2.x86_64 libKF5Completion5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5ConfigCore5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5ConfigGui5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5ConfigWidgets5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5CoreAddons5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5Crash5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5DBusAddons5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5GlobalAccel5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5GuiAddons5-debuginfo-5.90.0-150400.3.5.3.x86_64 libKF5I18n5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5IconThemes5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5ItemViews5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5JobWidgets5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5KDcraw5-debuginfo-21.12.3-bp154.1.83.x86_64 libKF5Notifications5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5Purpose5-debuginfo-5.90.0-bp154.1.26.x86_64 libKF5PurposeWidgets5-debuginfo-5.90.0-bp154.1.26.x86_64 libKF5Solid5-debuginfo-5.90.0-150400.3.2.2.x86_64 libKF5SonnetCore5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5SonnetUi5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5Style5-debuginfo-5.90.0-bp154.1.41.x86_64 libKF5TextWidgets5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5WindowSystem5-debuginfo-5.90.0-150400.3.2.3.x86_64 libKF5XmlGui5-debuginfo-5.90.0-150400.3.2.2.x86_64 libQt5Concurrent5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5Core5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5Gui5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5OpenGL5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5Positioning5-debuginfo-5.15.2+kde6-150400.1.5.x86_64 libQt5PrintSupport5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5QuickControls2-5-debuginfo-5.15.2+kde10-150400.1.4.x86_64 libQt5QuickTemplates2-5-debuginfo-5.15.2+kde10-150400.1.4.x86_64 libQt5Sql5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5Sql5-sqlite-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5Svg5-debuginfo-5.15.2+kde16-150400.1.5.x86_64 libQt5Widgets5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQt5X11Extras5-debuginfo-5.15.2+kde1-150400.1.5.x86_64 libQt5Xml5-debuginfo-5.15.2+kde294-150400.6.3.1.x86_64 libQtAV1-debuginfo-1.13.0-bp154.2.110.x86_64 libQtAVWidgets1-debuginfo-1.13.0-bp154.2.110.x86_64 libQtQuick5-debuginfo-5.15.2+kde43-150400.2.5.x86_64 libSDL2-2_0-0-debuginfo-2.0.8-150200.11.9.1.x86_64 libSM6-debuginfo-1.2.2-1.23.x86_64 libX11-6-debuginfo-1.6.5-150000.3.30.1.x86_64 libX11-xcb1-debuginfo-1.6.5-150000.3.30.1.x86_64 libXau6-debuginfo-1.0.8-1.26.x86_64 libXdamage1-debuginfo-1.1.4-1.23.x86_64 libXext6-debuginfo-1.3.3-1.30.x86_64 libXrandr2-debuginfo-1.5.1-2.17.x86_64 libXrender1-debuginfo-0.9.10-1.30.x86_64 libXtst6-debuginfo-1.2.3-1.24.x86_64 libacl1-debuginfo-2.2.52-4.3.1.x86_64 libaom3-debuginfo-3.2.0-150400.1.8.x86_64 libasound2-debuginfo-1.2.6.1-150400.1.4.x86_64 libass9-debuginfo-0.14.0-150000.3.11.1.x86_64 libavcodec58_134-debuginfo-4.4.4-150400.4.pm.2.x86_64 libavdevice58_13-debuginfo-4.4.4-150400.4.pm.2.x86_64 libavformat58_76-debuginfo-4.4.4-150400.4.pm.2.x86_64 libavresample4_0-debuginfo-4.4.4-150400.4.pm.2.x86_64 libavutil56_70-debuginfo-4.4.4-150400.4.pm.2.x86_64 libbrotlicommon1-debuginfo-1.0.7-3.3.1.x86_64 libbz2-1-debuginfo-1.0.8-150400.1.122.x86_64 libcanberra0-debuginfo-0.30-150400.13.10.x86_64 libcdio16-debuginfo-0.94-150000.6.11.1.x86_64 libcom_err2-debuginfo-1.46.4-150400.3.3.1.x86_64 libcurl4-debuginfo-8.0.1-150400.5.26.1.x86_64 libdav1d5-debuginfo-0.9.2-150400.1.7.x86_64 libdbus-1-3-debuginfo-1.12.2-150400.18.8.1.x86_64 libde265-0-debuginfo-1.0.11-150400.1.pm.1.x86_64 libdouble-conversion3-debuginfo-3.1.5-3.2.1.x86_64 libdrm_intel1-debuginfo-2.4.107-150400.1.8.x86_64 libdrm_nouveau2-debuginfo-2.4.107-150400.1.8.x86_64 libexiv2-27-debuginfo-0.27.5-150400.15.4.1.x86_64 libfreetype6-debuginfo-2.10.4-150000.4.12.1.x86_64 libgcc_s1-debuginfo-12.3.0+git1204-150000.1.10.1.x86_64 libglvnd-debuginfo-1.3.3-150400.3.4.x86_64 libgnutls30-debuginfo-3.7.3-150400.4.35.1.x86_64 libgomp1-debuginfo-12.3.0+git1204-150000.1.10.1.x86_64 libgpg-error0-debuginfo-1.42-150400.1.101.x86_64 libgraphite2-3-debuginfo-1.3.11-150000.4.3.1.x86_64 libharfbuzz-subset0-debuginfo-3.4.0-150400.3.6.1.x86_64 libharfbuzz0-debuginfo-3.4.0-150400.3.6.1.x86_64 libheif1-debuginfo-1.16.2-150400.5.pm.2.x86_64 libidn2-0-debuginfo-2.2.0-3.6.1.x86_64 libimobiledevice-1_0-6-debuginfo-1.3.0+git.20210921-150400.1.15.x86_64 libimobiledevice-glue-1_0-0-debuginfo-0~git.20210925-150400.1.10.x86_64 libjbig2-debuginfo-2.1-3.2.1.x86_64 libjitterentropy3-debuginfo-3.4.0-150000.1.9.1.x86_64 libjpeg8-debuginfo-8.2.2-150400.15.9.x86_64 libldap-2_4-2-debuginfo-2.4.46-150200.14.17.1.x86_64 libltdl7-debuginfo-2.4.6-3.4.1.x86_64 liblzma5-debuginfo-5.2.3-150000.4.7.1.x86_64 libmarblewidget-qt5-28-debuginfo-21.12.3-bp154.1.27.x86_64 libnuma1-debuginfo-2.0.14.20.g4ee5e0c-150400.1.24.x86_64 libogg0-debuginfo-1.3.2-150000.3.4.1.x86_64 libopenmpt0-debuginfo-0.3.28-2.13.1.x86_64 libopenssl1_1-debuginfo-1.1.1l-150400.7.45.1.x86_64 libp11-kit0-debuginfo-0.23.22-150400.1.10.x86_64 libpcre2-16-0-debuginfo-10.39-150400.4.6.1.x86_64 libphonon4qt5-debuginfo-4.11.1-bp154.1.198.x86_64 libpsl5-debuginfo-0.20.1-150000.3.3.1.x86_64 libpulse0-debuginfo-15.0-150400.2.10.x86_64 libraw20-debuginfo-0.20.2-150400.3.6.1.x86_64 libsnappy1-debuginfo-1.1.8-3.3.1.x86_64 libsndfile1-debuginfo-1.0.28-150000.5.17.1.x86_64 libstdc++6-debuginfo-12.3.0+git1204-150000.1.10.1.x86_64 libswresample3_9-debuginfo-4.4.4-150400.4.pm.2.x86_64 libswscale5_9-debuginfo-4.4.4-150400.4.pm.2.x86_64 libsystemd0-debuginfo-249.16-150400.8.28.3.x86_64 libtasn1-6-debuginfo-4.13-150000.4.8.1.x86_64 libtheoraenc1-debuginfo-1.1.1-150000.3.3.1.x86_64 libtiff5-debuginfo-4.0.9-150000.45.28.1.x86_64 libudev1-debuginfo-249.16-150400.8.28.3.x86_64 libusb-1_0-0-debuginfo-1.0.24-150400.3.3.1.x86_64 libuuid1-debuginfo-2.37.2-150400.8.17.1.x86_64 libv4l2-0-debuginfo-1.14.1-150000.3.3.1.x86_64 libva2-debuginfo-2.13.0-150400.1.6.x86_64 libvdpau1-debuginfo-1.1.1-150000.3.2.1.x86_64 libvlc5-debuginfo-3.0.18-150400.2.6.pm.2.x86_64 libvo-amrwbenc0-debuginfo-0.1.3-pm154.1.3.x86_64 libvorbisenc2-debuginfo-1.3.6-150000.4.5.2.x86_64 libwayland-client0-debuginfo-1.19.0-150400.3.3.1.x86_64 libwebpmux3-debuginfo-1.0.3-150200.3.5.1.x86_64 libxcb-dri2-0-debuginfo-1.13-150000.3.9.1.x86_64 libxcb-dri3-0-debuginfo-1.13-150000.3.9.1.x86_64 libxcb-icccm4-debuginfo-0.4.1-1.24.x86_64 libxcb-keysyms1-debuginfo-0.4.0-1.23.x86_64 libxcb-randr0-debuginfo-1.13-150000.3.9.1.x86_64 libxcb-shape0-debuginfo-1.13-150000.3.9.1.x86_64 libxcb-sync1-debuginfo-1.13-150000.3.9.1.x86_64 libxcb-util1-debuginfo-0.4.0-1.23.x86_64 libxcb-xfixes0-debuginfo-1.13-150000.3.9.1.x86_64 libxkbcommon0-debuginfo-1.3.0-150400.1.13.x86_64 libz1-debuginfo-1.2.11-150000.3.45.1.x86_64 libzimg2-debuginfo-3.0.3-150400.1.7.x86_64 libzstd1-debuginfo-1.5.0-150400.3.3.1.x86_64 mozilla-nspr-debuginfo-4.35-lp154.137.2.x86_64 mozilla-nss-debuginfo-3.90-150400.3.32.1.x86_64
(gdb) q
A debugging session is active.

        Inferior 1 [process 22743] will be killed.

Quit anyway? (y or n) y
Comment 1 Johannes Zarl-Zierl 2023-08-21 20:44:09 UTC
Hi Andreas!
Can you check if the bug is still valid? There's reason to believe that this is the same issue as bug #473587...
Comment 2 Andreas Schleth 2023-08-22 06:03:18 UTC
Created attachment 161105 [details]
attachment-2500322-0.html

Hi Johannes, I am on holiday and will check after in Sept., Andreas

Am 21. August 2023 22:44:09 MESZ schrieb Johannes Zarl-Zierl <bugzilla_noreply@kde.org>:
>https://bugs.kde.org/show_bug.cgi?id=472610
>
>Johannes Zarl-Zierl <johannes@zarl-zierl.at> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>                 CC|                            |johannes@zarl-zierl.at
>
>--- Comment #1 from Johannes Zarl-Zierl <johannes@zarl-zierl.at> ---
>Hi Andreas!
>Can you check if the bug is still valid? There's reason to believe that this is
>the same issue as bug #473587...
>
>-- 
>You are receiving this mail because:
>You reported the bug.
Comment 3 Andreas Schleth 2023-09-02 20:32:32 UTC
Hi Johannes,
I just checked with my latest successful build: v5.11.0-13-g967e13b1 ... and as far as I can see, the bug is not there anymore. So this here should be closed.
Cheers, Andreas

PS: Currently I am out of luck building KPA because cmake ECM demands a newer version than mine. I should upgrade my opensuse.
Comment 4 Johannes Zarl-Zierl 2023-09-02 22:29:24 UTC
Thanks for checking!