Crash on cues edit

Bug #1966309 reported by Paolo Skoki
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
New
Undecided
Unassigned

Bug Description

Mixxx: 2.3.1-34-gad8435bc57 (HEAD)
OS: Windows 10 21H2
CPU: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz 2.27 GHz
GPU: ATI Mobility Radeon HD 3650
Sound: High Definition Audio Device (probably integrated, DELL laptop)

I have 3 crash recently, after second one I turned on developer mode, and will provide a log. All cue editions were made on the tracks that was currently playing with AutoDJ on but also off. First crash was on cue points edition, probably when adding or deleting - Mix hangs, then closes, every time it does all the database input and settings changes are lost.

Second crash was when moving all cuepoints by 1ms, after about 4th move, hang, close, metatags input, intro/outro, BPM lock - all lost. It was the first track that I played in this run (other song thou).

I opened mixxx again, played 27 songs, and then:
Third crash, I was still playing with cuepoints, removed three, it was yet ok, but when I was changing the speed and reversing with right-click on waveform - hanged, crashed.

Here I paste the log of what happened at the end, but will also attach full log file.

```
Debug [Main]: TrackDAO: Updating track in database 6415 QFileInfo(D:\Downloads\Edits VOL 3 & VOL 4\DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3\Bob Sinclar x Keanu Silva - Till The Sun Rise x Rude Trumpet (DJ KUBA & NEITAN Edit).mp3)
Debug [Main]: SqlTransaction - Started new SQL database transaction on "MIXXX-1"
Debug [Main]: SqlTransaction - Committed SQL database transaction on "MIXXX-1"
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 0 ms
Debug [Main]: GlobalTrackCache - Deleting Track(0x1d3cb3218b0)
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 1 ms
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 0 ms
Debug [Main]: Track beats is already set and BPM-locked. Discard the new beats
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 0 ms
Debug [Main]: Committing transaction on "MIXXX-1" result: true
Debug [Main]: PlaylistTableModel(0x1d3a733a440) select() took 3 ms 3
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 4537728
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 4537728
Debug [CachingReaderWorker 1]: SoundSourceMp3 - restartDecoding @ 0
Debug [CachingReaderWorker 1]: SoundSourceMp3 - Retry decoding MP3 frame @ 0
Debug [Main]: Committing transaction on "MIXXX-1" result: true
Debug [Main]: PlaylistTableModel(0x1d3a733a440) select() took 1 ms 2
Debug [Main]: Committing transaction on "MIXXX-1" result: true
Debug [Main]: PlaylistTableModel(0x1d3a733a440) select() took 1 ms 3
Debug [Main]: Randomly adding tracks
Debug [Main]: GlobalTrackCache - Resolving track by id 2530
Debug [Main]: GlobalTrackCache - Resolving track by canonical location "D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3"
Debug [Main]: GlobalTrackCache - Cache miss - allocating track TrackRef {"D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3","D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3",2530}
Debug [Main]: GlobalTrackCache - Cache miss - inserting new track into cache TrackRef {"D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3","D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3",2530} QObject(0x0)
Debug [Main]: Successfully deserialized BeatGrid
Debug [Main]: Successfully deserialized KeyMap
Debug [Main]: SoundSourceProxy - SoundSourceProvider "MAD: MPEG Audio Decoder" created a SoundSource for file "file:///D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3" of type "mp3"
Warning []: underflowHappened code: 10
Warning []: underflowHappened code: 11
Warning [Engine]: underflowHappened code: 24
Warning [Engine]: underflowHappened code: 24
Warning [Engine]: underflowHappened code: 24
Warning [Engine]: underflowHappened code: 24
Warning [Engine]: underflowHappened code: 24
Warning [Engine]: underflowHappened code: 22
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 1 ms
Debug [Main]: Committing transaction on "MIXXX-1" result: true
Debug [Main]: PlaylistTableModel(0x1d3a733a440) select() took 1 ms 4
Debug [Main]: PlaylistTableModel(0x1d3a733a440) select() took 0 ms 4
Debug [Main]: GlobalTrackCache - Evicting track TrackRef {"D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3","D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3",2530} Track(0x1d3cb328a00)
Debug [Main]: TrackCollectionManager - Saving track "D:/Music/HDD/152/Bounce/Ctrl Alt Del - Make It Pop (Bounce Inc Remix).mp3" in internal collection
Debug [Main]: GlobalTrackCache - Deleting Track(0x1d3cb328a00)
Debug [Main]: GlobalTrackCache - Resolving track by id 1584
Debug [Main]: GlobalTrackCache - Resolving track by canonical location "D:/Music/HDD/GX/CORVO - Quake.mp3"
Debug [Main]: GlobalTrackCache - Cache miss - allocating track TrackRef {"D:/Music/HDD/GX/CORVO - Quake.mp3","D:/Music/HDD/GX/CORVO - Quake.mp3",1584}
Debug [Main]: GlobalTrackCache - Cache miss - inserting new track into cache TrackRef {"D:/Music/HDD/GX/CORVO - Quake.mp3","D:/Music/HDD/GX/CORVO - Quake.mp3",1584} QObject(0x0)
Debug [Main]: Successfully deserialized BeatGrid
Debug [Main]: SoundSourceProxy - SoundSourceProvider "MAD: MPEG Audio Decoder" created a SoundSource for file "file:///D:/Music/HDD/GX/CORVO - Quake.mp3" of type "mp3"
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 1 ms
Debug [Main]: Committing transaction on "MIXXX-1" result: true
Debug [Main]: PlaylistTableModel(0x1d3a733a440) select() took 1 ms 5
Debug [Main]: PlaylistTableModel(0x1d3a733a440) select() took 1 ms 5
Debug [Main]: GlobalTrackCache - Evicting track TrackRef {"D:/Music/HDD/GX/CORVO - Quake.mp3","D:/Music/HDD/GX/CORVO - Quake.mp3",1584} Track(0x1d3cb323b60)
Debug [Main]: TrackCollectionManager - Saving track "D:/Music/HDD/GX/CORVO - Quake.mp3" in internal collection
Debug [Main]: GlobalTrackCache - Deleting Track(0x1d3cb323b60)
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 1 ms
Debug [Main]: Committing transaction on "MIXXX-1" result: true
Debug [Main]: GlobalTrackCache - Resolving track by id 6403
Debug [Main]: GlobalTrackCache - Resolving track by canonical location "D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3"
Debug [Main]: GlobalTrackCache - Cache miss - allocating track TrackRef {"D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3","D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3",6403}
Debug [Main]: GlobalTrackCache - Cache miss - inserting new track into cache TrackRef {"D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3","D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3",6403} QObject(0x0)
Debug [Main]: Successfully deserialized BeatGrid
Debug [Main]: Successfully deserialized KeyMap
Debug [Main]: SoundSourceProxy - SoundSourceProvider "MAD: MPEG Audio Decoder" created a SoundSource for file "file:///D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3" of type "mp3"
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 0 ms
Debug [Main]: BaseTrackPlayerImpl::slotLoadTrack "[Channel2]" Track(0x1d3cb3218b0)
Debug [CachingReaderWorker 2]: SoundSourceProxy - SoundSourceProvider "MAD: MPEG Audio Decoder" created a SoundSource for file "file:///D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3" of type "mp3"
Debug [CachingReaderWorker 2]: SoundSourceMp3 - MP3 frame header | layer: 0 mode: 0 #channels: 1 #samples: 36 bitrate: 0 samplerate: 0 flags: "0x0000"
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 0
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 0
Debug [CachingReaderWorker 2]: TrackMetadata - Modifying duration: 210050612244 ns -> 210024489795 ns
Debug [Main]: BaseTrackCache(0x1d3adb9a9b0) updateIndexWithQuery took 1 ms
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 0
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 0
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 620928
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 620928
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 1284480
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 1284480
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 3930624
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 3930624
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 5257728
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 5257728
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 5913216
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 5913216
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 6576768
Debug [CachingReaderWorker 2]: SoundSourceMp3 - Retry decoding MP3 frame @ 6576768
Debug [CachingReaderWorker 2]: SoundSourceMp3 - restartDecoding @ 7903872
```

Revision history for this message
Paolo Skoki (ohmydear) wrote :
Revision history for this message
Paolo Skoki (ohmydear) wrote :

Log of second crash, on cuepoints move

Revision history for this message
ronso0 (ronso0) wrote :

Thank you for reportinh this and providing the logs.
However, Mixxx 2.3.2 was already released. Please use that version.
Also, it seems you can somehow reproduce the crash, so please try to create a backtrace
https://github.com/mixxxdj/mixxx/wiki/Creating-Backtraces

If you can indeed reproduce the crash reliably by editing cue points it woul be very appreciated to test the current alpha version (mixxx.org > downloads > development snapshots).
https://github.com/mixxxdj/mixxx/wiki/Testing

Revision history for this message
Daniel Schürmann (daschuer) wrote :

This is suspicious:

Decoder" created a SoundSource for file "file:///D:/Downloads/Edits VOL 3 & VOL 4/DJ KUBA & NEITAN - Mashup & Edit Pack Vol. 3/Rihanna x David Puentez x WH - We Found Love With Somebody (DJ KUBA & NEITAN Edit).mp3" of type "mp3"
Debug [CachingReaderWorker 2]: SoundSourceMp3 - MP3 frame header | layer: 0 mode: 0 #channels: 1 #samples: 36 bitrate: 0 samplerate: 0 flags: "0x0000"

Maybe Mixxx is dealing with an Infinite value due to devision by zero and then crashing.
Can you reproduce the crash with this track?

Revision history for this message
Daniel Schürmann (daschuer) wrote :

The same tracks is also part of the second log.

Revision history for this message
Uwe Klotz (uklotzde-deactivatedaccount) wrote :

Could you please upload the suspicious file somewhere and provide a link via private message? This would help testing for ironing out edge cases caused by corrupt/invalid files.

Revision history for this message
Paolo Skoki (ohmydear) wrote :

I have installed the latest alpha version of Mixxx, and launch it using the backtracing tool. (Un)fortunately the bug has not occurred after playing 55 files with same behaviour.

I very doubt the specific file is a problem. All the files played in the latest 2 crash were obtained directly from the remixers, so very low chances of corrupted files. Although the 1st crash occurred when these files were not even on HDD.
But anyway here is the link for the file you suspect. Link will be live max 3 months, password is: "skoki" without quotes. https://ulozto.net/tamhle/yTBVv8OG4v8k#!ZJH4AQR2AwV4LmRkBTD5ZQqzBQR0BJf4qwEsA3yPKmMOJQxkAj==

-----
For my information.
Link to delete file in case its not needed anymore https://ulozto.net/tam/edit/74a55993-dae9-4692-a21a-9388b5af8d3b

Revision history for this message
Paolo Skoki (ohmydear) wrote :

I will continue hunting the bug with backtrace tool

Revision history for this message
Paolo Skoki (ohmydear) wrote :

Also, most of the tracks used in crash 2 and 3 have had a cuepoints already written inside them (somehow). About 3-8 cuepoints labelled from "Energy 3" to "Energy 8". But still, I do not had these tracks at first crash. But there is possibility that first crash was totally unrelated to the 2 and 3rd.

Revision history for this message
Uwe Klotz (uklotzde-deactivatedaccount) wrote :

The file is valid and does not cause a crash.

Revision history for this message
Marco (c-moon) wrote (last edit ):

I have a similar problem with Mixxx from a quite recent 2.3 branch (I'm using https://github.com/mixxxdj/mixxx/commit/9564ac2837bdfbda385edc581b70e4c8309c7f96).
When I try to remove a cue point, Mixxx crashes with SIGSEGV. This happens only occasionally, in my case as far as I remember while deck 1 is playing and deleting the cue point on deck2 (don't know if this relevant or has an impact). Unfortunately I'm not able to reproduce this every time when I'm deleting cue points. But I've managed to get a backtrace, maybe this could help you to solve this issue:

Core was generated by `mixxx'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fa43acc94b7 in QMutex::lock() () from /usr/lib64/libQt5Core.so.5
[Current thread is 1 (Thread 0x7fa434aee9c0 (LWP 3665))]
(gdb) bt
#0 0x00007fa43acc94b7 in QMutex::lock() () at /usr/lib64/libQt5Core.so.5
#1 0x0000558fdf5ecd17 in Cue::getHotCue() const ()
#2 0x0000558fdf2e4724 in WOverview::updateCues(QList<CuePointer> const&) ()
#3 0x0000558fdf2e50d3 in WOverview::onMarkChanged(double) ()
#4 0x00007fa43aea5eaf in () at /usr/lib64/libQt5Core.so.5
#5 0x0000558fdf3aba20 in ControlProxy::valueChanged(double) ()
#6 0x00007fa43ae9e0ef in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#7 0x00007fa43dbbe6df in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#8 0x00007fa43ae73908 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#9 0x00007fa43ae76dee in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#10 0x00007fa43aec42c3 in () at /usr/lib64/libQt5Core.so.5
#11 0x00007fa43d00c92c in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#12 0x00007fa43d00cbd8 in () at /usr/lib64/libglib-2.0.so.0
#13 0x00007fa43d00cc8f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#14 0x00007fa43aec3d68 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#15 0x00007fa43ae7239b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#16 0x00007fa43ae7a6d0 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#17 0x0000558fdf142ee3 in main ()

I have to mention, that I'm using my Denon MC7000 controller to set and delete the cue points, and Gentoo Linux x86_64 with kernel 5.10.110.

Kind regards,
Marco

Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/10689

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.