https://bugs.kde.org/show_bug.cgi?id=528785
Bug ID: 528785
Summary: crash when Random Playback is enabled and a track is
chosen indirectly
Classification: Applications
Product: Haruna
Version First 1.9.0
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
DESCRIPTION
when i use the word "track", i mean one of 7 .mp3 music files i have stored
under a certain folder, i have also tested with .mp4 videos and the same
behavior occurs, leading me to believe filetype is irrelevent for this bug.
when the "Random Playback" toggle is enabled, and a track is selected in a way
that depends on this option's value (current track finished playing, "Play next
file" button/shortcut `SHIFT+.` used), haruna hangs breifly before crashing.
the bug only seems to manifest when the "Random Playback" toggle is enabled
before deciding for the first time what the next track to play is, so it can be
worked around by simply disabling the toggle in question, playing the next file
in the queue (NOT double clicking a certain file, that doesn't depend on the
toggle), then re-enabling it. after that, haruna functions normally. this bug
does not depend on any other playback options.
STEPS TO REPRODUCE
1. enable the "Random Playback" toggle before any media file ends
playback/before pressing "Play next file" for the first time on launch.
2. end playback of a media file or use the "Play next file" functionality (GUI
button or shortcut)
note: it does not matter when you import/add media files to the queue, nor does
it matter how many.
OBSERVED RESULT
all audio cuts off and the program hangs briefly, before crashing.
EXPECTED RESULT
successfully play the next track on the list, either the first track if
starting from a blank state (when initially launching Haruna), or the next
random track.
SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0
ADDITIONAL INFORMATION
after additional testing, you can also work around the bug by double clicking a
specific track in queue, disabling the "Random Playback" toggle, then
re-enabling it while the same track is selected, from there the program also
works as expected.
the entire backtrace, and a bit more context before then, can comfortably fit
at the end of this report:
```
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is
0)
Thread 1 "haruna" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) at
pthread_kill.c:44
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO
(ret) : 0;
(gdb) backtrace
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0)
at pthread_kill.c:44
#1 __pthread_kill_internal (threadid=<optimized out>, signo=6) at
pthread_kill.c:89
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at
pthread_kill.c:100
#3 0x00007ffff1c44ad8 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#4 0x00007ffff1c2579f in __GI_abort () at abort.c:77
#5 0x00007ffff209ad14 in __gnu_cxx::__verbose_terminate_handler ()
at ../../../../gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#6 0x00007ffff20ba1bc in __cxxabiv1::__terminate (handler=<optimized out>)
at ../../../../gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48
#7 0x00007ffff209a654 in std::terminate () at
../../../../gcc/libstdc++-v3/libsupc++/eh_terminate.cc:58
#8 0x00007ffff20ba49d in __cxxabiv1::__cxa_throw (obj=<optimized out>,
tinfo=0x7ffff231d9f8 <typeinfo for std::out_of_range>, dest=0x7ffff20de7a0
<std::out_of_range::~out_of_range()>)
at ../../../../gcc/libstdc++-v3/libsupc++/eh_throw.cc:98
#9 0x00007ffff209fb69 in std::__throw_out_of_range_fmt (
__fmt=0x5555557ebe50 "vector::_M_range_check: __n (which is %zu) >=
this->size() (which is %zu)")
at ../../../../../gcc/libstdc++-v3/src/c++11/functexcept.cc:100
#10 0x0000555555724fa0 in ?? ()
#11 0x00005555556eedb7 in ?? ()
#12 0x00007ffff596f044 in ?? () from /usr/bin/../lib/libQt6Qml.so.6
#13 0x00007ffff5806b25 in ?? () from /usr/bin/../lib/libQt6Qml.so.6
#14 0x00007ffff57fc34d in QV4::QObjectMethod::callPrecise(QQmlObjectOrGadget
const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*,
QMetaObject::Call) () from /usr/bin/../lib/libQt6Qml.so.6
#15 0x00007ffff580bb9b in QV4::QObjectMethod::callInternal(QV4::Value const*,
QV4::Value const*, int) const ()
```
--
You are receiving this mail because:
You are watching all bug changes.