Bug 468303

Summary: Crash when using Random Track Progression
Product: [Applications] amarok Reporter: Andreas Hurka <andreas>
Component: PlaylistAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: heiko.becker
Priority: NOR    
Version First Reported In: 2.9.71   
Target Milestone: kf5   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: output of amarok --debug with random track progression in amarokrc

Description Andreas Hurka 2023-04-08 19:23:10 UTC
Created attachment 157963 [details]
output of amarok --debug with random track progression in amarokrc

SUMMARY
***
On openSUSE Tumbleweed amarok crashes when encountering Random Track Progression at startup or upon the user selecting Random Track Progression.
***


STEPS TO REPRODUCE
1. Start Amarok
2. Select Random Track Progression

ALTERNATIVELY
1. have 
[General Options]
Track Progression=RandomTrack
in ~/.config/amarokrc
2. start amarok

OBSERVED RESULT
Amarok crashes immediately, outputting "Attempted to overwrite a QRandomGenerator to system() or global()."

EXPECTED RESULT
Amarok should operate normally, selecting random tracks to play once one has finished playing. This was the case before roughly 2023-03-28. Around this time this broke with some update to openSUSE Tumbleweed.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20230407, Kernel 6.2.9-1-default (64-bit)
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
This issue has been discussed on the openSUSE forums, though the focus was on my less than ideal repo-situation: https://forums.opensuse.org/t/amarok-fails-to-start-attempts-to-overwrite-qrandomgenerator/165478/13

My music library is quite large (~25 GiB), though it seems that amarok crashes before even getting to have a look at the library. As the library also did not change before this first happened I did not test with a smaller library yet.
Comment 1 Heiko Becker 2023-04-08 19:28:55 UTC
Not entirely sure without a backtrace, but sounds like it is already fixed by https://invent.kde.org/multimedia/amarok/-/merge_requests/56
Comment 2 Andreas Hurka 2023-04-08 20:35:50 UTC
(In reply to Heiko Becker from comment #1)
> Not entirely sure without a backtrace, but sounds like it is already fixed
> by https://invent.kde.org/multimedia/amarok/-/merge_requests/56

Indeed, when cloning from git and building myself this seems to be resolved.