Bug 504491 - KPhotoAlbum crashes randomly at startup
Summary: KPhotoAlbum crashes randomly at startup
Status: RESOLVED FIXED
Alias: None
Product: kphotoalbum
Classification: Applications
Component: general (other bugs)
Version First Reported In: 6.0.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-18 19:35 UTC by jonas.harer
Modified: 2025-11-04 20:22 UTC (History)
2 users (show)

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


Attachments
Log (journalctl -e) (10.71 KB, text/plain)
2025-05-18 19:35 UTC, jonas.harer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jonas.harer 2025-05-18 19:35:47 UTC
Created attachment 181476 [details]
Log (journalctl -e)

SUMMARY
KPhotoAlbum crashes randomly at startup.


STEPS TO REPRODUCE
1. Open KPhotoAlbum

OBSERVED RESULT
It crashes with output:
fish: Job 1, 'kphotoalbum' terminated by signal SIGSEGV (Address boundary error)

EXPECTED RESULT
It should not crash.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Comment 1 Johannes Zarl-Zierl 2025-05-18 21:05:33 UTC
Hi Jonas,

Thanks for the bug report.

Unfortunately the crash log does not contain the debug symbols that I need to interpret it. Can you try installing the debug symbols for kphotoalbum and recreate the stack trace then?

I'm not really familiar with Arch Linux, but maybe the info here is useful to you:
https://wiki.archlinux.org/title/Debugging/Getting_traces
For the stack trace to be (potentially) useful to me, there needs to be some information in place of the "n/a" entries that are currently displayed in the trace output lines for /usr/bin/kphotoalbum.

Cheers,
  Johannes
Comment 2 jonas.harer 2025-05-19 17:09:26 UTC
Hi Johannes,

After running KPhotoAlbum using gdb, I have got the following:

Thread 1 "kphotoalbum" received signal SIGSEGV, Segmentation fault.
DB::ImageDateCollection::count (this=0x0, range=...) at /usr/src/debug/kphotoalbum/kphotoalbum-6.0.1/DB/ImageDateCollection.cpp:82
82      in /usr/src/debug/kphotoalbum/kphotoalbum-6.0.1/DB/ImageDateCollection.cpp

I hope that will be useful,
Jonas
Comment 3 Johannes Zarl-Zierl 2025-05-19 19:43:07 UTC
Git commit 9aa361dbb0493974462655a045d02dffcfada31a by Johannes Zarl-Zierl.
Committed on 19/05/2025 at 19:42.
Pushed by johanneszarl into branch 'master'.

Fix potential crash if DateBarWidget isn't properly initialized.

M  +2    -0    DateBar/DateBarWidget.cpp

https://invent.kde.org/graphics/kphotoalbum/-/commit/9aa361dbb0493974462655a045d02dffcfada31a
Comment 4 Johannes Zarl-Zierl 2025-05-19 20:19:03 UTC
Hi Jonas,

I think I identified and fixed the issue at play. Are you able to compile kphotoalbum from source to check if the solution works for you?

Cheers,
  Johannes
Comment 5 willem 2025-05-25 18:26:38 UTC
Have tried the new build, please see here:

https://bugs.kde.org/show_bug.cgi?id=504777