Analyze doesn't work well

Bug #1958695 reported by vidoma
This bug report is a duplicate of:  Bug #1948961: std::bad_alloc crash on macOS. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
New
Undecided
Unassigned

Bug Description

Mixxx analyzes only one track at a time. Once analyzed all the tracks together.

Revision history for this message
vidoma (massiccio) wrote :
Download full text (34.2 KiB)

My mixxx.log

Warning [Main] Failed to load "qt" translations for locale "it_IT" from "/Users/runner/mixxx-vcpkg/installed/x64-osx/share/qt5/translations"
Debug [Main] Failed to load "qt" translations for locale "it_IT" from "/Applications/mixxx.app/Contents/Resources/translations/"
Debug [Main] Loaded "mixxx" translations for locale "it_IT" from "/Applications/mixxx.app/Contents/Resources/translations/"
Debug [Main] Loading resources from "/Applications/mixxx.app/Contents/Resources/"
Debug [Main] Found and will use default keyboard mapping "/Applications/mixxx.app/Contents/Resources/keyboard/it_IT.kbd.cfg"
Debug [Main] Loading resources from "/Applications/mixxx.app/Contents/Resources/"
Info [Main] Loaded skin "Deere"
Debug [Main] SoundSourceProxy - Registering SoundSource providers
Debug [Main] SoundSourceProxy - Registering platform and fallback SoundSource providers
Debug [Main] SoundSourceProviderRegistry - Registering provider "Apple Core Audio"
Debug [Main] SoundSourceProviderRegistry - Registering file extension "aac" for provider "Apple Core Audio" with priority 4 (higher)
Debug [Main] SoundSourceProviderRegistry - Registering file extension "m4a" for provider "Apple Core Audio" with priority 4 (higher)
Debug [Main] SoundSourceProviderRegistry - Registering file extension "mp4" for provider "Apple Core Audio" with priority 4 (higher)
Debug [Main] SoundSourceProviderRegistry - Registering file extension "mp3" for provider "Apple Core Audio" with priority 4 (higher)
Debug [Main] SoundSourceProviderRegistry - Registering file extension "mp2" for provider "Apple Core Audio" with priority 4 (higher)
Debug [Main] SoundSourceProviderRegistry - Registering provider "FFmpeg"
Info [Main] SoundSourceFFmpeg - Disabling untested input formats: aa, aax, ac3, ace, acm, act, adf, adp, ads, adx, aea, afc, aix, alp, amr, amrnb, amrwb, anm, apc, ape, apm, apng, aptx, aptx_hd, aqtitle, argo_asf, argo_brp, asf, asf_o, ass, ast, au, av1, avi, avr, avs, avs2, avs3, bethsoftvid, bfi, bin, bink, binka, bit, bmv, bfstm, brstm, boa, c93, caf, cavsvideo, cdg, cdxl, cine, codec2, codec2raw, concat, data, daud, dcstr, derf, dfa, dhav, dirac, dnxhd, dsf, dsicin, dss, dts, dtshd, dv, dvbsub, dvbtxt, dxa, ea, ea_cdata, eac3, epaf, ffmetadata, filmstrip, fits, flac, flic, flv, live_flv, 4xm, frm, fsb, fwse, g722, g723_1, g726, g726le, g729, gdv, genh, gif, gsm, gxf, h261, h263, h264, hca, hcom, hevc, hls, hnm, ico, idcin, idf, iff, ifv, ilbc, image2, image2pipe, alias_pix, brender_pix, ingenient, ipmovie, ipu, ircam, iss, iv8, ivf, ivr, jacosub, jv, kux, kvag, lmlm4, loas, luodat, lrc, lvf, lxf, mca, mcc, matroska,webm, mgsts, microdvd, mjpeg, mjpeg_2000, mlp, mlv, mm, mmf, mods, moflex, mpc, mpc8, mpeg, mpegts, mpegtsraw, mpegvideo, mpjpeg, mpl2, mpsub, msf, msnwctcp, msp, mtaf, mtv, musx, mv, mvi, mxf, mxg, nc, nistsphere, nsp, nsv, nut, nuv, obu, ogg, oma, paf, alaw, mulaw, vidc, f64be, f64le, f32be, f32le, s32be, s32le, s24be, s24le, s16be, s16le, s8, u32be, u32le, u24be, u24le, u16be, u16le, u8, pjs, pmp, pp_bnk, pva, pvf, qcp, r3d, rawvideo, realtext, redspark, rl2, rm, roq, rpl, rsd, rso, rtp, rtsp, s337m, sami, sap, sbc, sbg, scc, sdp, sdr2, sds, sdx, film_...

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

Why do you think that?

You mixxx.log reveals that you have 8 Analyzers that can analyze 8 tracks at almost the same time.
(The bottle neck it the HDD here)

Debug [Main] TrackAnalysisScheduler - Starting 8 worker threads. Priority: normal

But there are concerning critical messages:

Critical [Main] <QNSWindow: 0x7f8f95909130; contentView=<QNSView: 0x7f8f95908d20; QCocoaWindow(0x600000e17e90, window=QWidgetWindow(0x600001c00180, name="QWidgetClassWindow"))>> has active key-value observers (KVO)! These will stop working now that the window is recreated, and will result in exceptions when the observers are removed. Break in QCocoaWindow::recreateWindowIfNeeded to debug.

Which MacOs version do you use?

Revision history for this message
Be (be.ing) wrote :

The QNSWindow warnings always happen on macOS and are unrelated.

Revision history for this message
vidoma (massiccio) wrote :

It Seems to work, but analyze only a track at time. for example: If I want analyze 300 track, Mixxx begin from the 300th and analyzes only that. I have tried changing the interface and it works sometimes but It doesn't correct the bit of the tracks.

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

How do you come to the conclusion that Mixxx does not analyze multiple tracks at the same time? The analysis is multi-threaded on all platforms and utilizes all CPU cores.

Drag your 300 selected tracks over to the "Analysis" feature in the side bar and drop them there. Then all those 300 tracks will be analyzed in the background.

Revision history for this message
vidoma (massiccio) wrote :

Dear use Klotz, it doesn't work. May I have your version of Mixxx? Could you send me it?

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

You still have not outlined how you came to the conclusion that the analysis is running single-threaded in contradiction to the log messages which clearly indicate that 8 worker threads have been created. All of them will be used.

The progress counter is increased 1 by 1 independent of how many threads are used in the background.

Revision history for this message
vidoma (massiccio) wrote :
Download full text (172.6 KiB)

My last log of the crash
Translated Report (Full Report Below)
-------------------------------------

Process: mixxx [1596]
Path: /Applications/mixxx.app/Contents/MacOS/mixxx
Identifier: org.mixxx.mixxx
Version: 2.4.0 (2.4.0)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-01-26 15:32:29.7660 +0100
OS Version: macOS 12.1 (21C52)
Report Version: 12
Bridge OS Version: 6.1 (19P647)
Anonymous UUID: DB838A04-26C4-3269-C824-BDB84B166332

Time Awake Since Boot: 19000 seconds

System Integrity Protection: enabled

Crashed Thread: 121

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x7ff8021b90ca objc_msgSend + 138
1 CoreFoundation 0x7ff80238da34 -[__NSDictionaryM __setObject:forKey:] + 575
2 ColorSync 0x7ff807d1f98d create + 668
3 ColorSync 0x7ff807d23fee ColorSyncProfileCreate + 18
4 CoreGraphics 0x7ff807ae6848 CGColorSpaceFromICCDataCacheGetRetained + 62
5 QuartzCore 0x7ff809474d0b CA::Render::iosurface_load_attachments(CA::Render::Surface*, unsigned int) + 363
6 QuartzCore 0x7ff8094743ba CA::Render::Surface::Surface(__IOSurface*, unsigned int, unsigned int, unsigned int, CA::Render::YCbCrMatrix, CA::Render::ChromaLocation) + 2000
7 QuartzCore 0x7ff8095cf0e3 CA::Render::copy_render_value(void const*, CGColorSpace*) + 688
8 QuartzCore 0x7ff80948ce32 -[CALayer(CALayerPrivate) _copyRenderLayer:layerFlags:commitFlags:] + 915
9 QuartzCore 0x7ff8095d62a9 invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 196
10 QuartzCore 0x7ff80948ca49 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 327
11 QuartzCore 0x7ff80948c9d2 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 208
12 QuartzCore 0x7ff80948c9d2 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 208
13 QuartzCore 0x7ff80948c9d2 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 208
14 QuartzCore 0x7ff80948c9d2 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 208
15 QuartzCore 0x7ff80948c9d2 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 208
16 QuartzCore 0x7ff80948c9d2 CA::Layer::commit_if_needed(...

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

You never mentioned a crash before.

Thread 121 is not directly related to the analysis. Since you are running an untested development version the crash could also be caused by a debug assertion.

Please install and use version 2.3.x instead.

Revision history for this message
vidoma (massiccio) wrote :

I have installed version 2.4.x because Mixxx crashes when I load a song on the first track after few minutes I use the program. I don't remember the name of the gentleman who advised me.
NOW I have installed version 2.3.1 but the program only analyzes 5 songs at a time only with the "last night" interface.

Revision history for this message
vidoma (massiccio) wrote :

The following link https://bugs.launchpad.net/mixxx/+bug/1948961 is about the program crash issue

Revision history for this message
vidoma (massiccio) wrote :
Download full text (154.0 KiB)

this the log of last crash of this morning

Translated Report (Full Report Below)
-------------------------------------

Process: mixxx [1059]
Path: /Applications/mixxx.app/Contents/MacOS/mixxx
Identifier: org.mixxx.mixxx
Version: 2.3.1 (2.3.1)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-01-29 12:53:28.4597 +0100
OS Version: macOS 12.1 (21C52)
Report Version: 12
Bridge OS Version: 6.1 (19P647)
Anonymous UUID: DB838A04-26C4-3269-C824-BDB84B166332

Time Awake Since Boot: 9200 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff81c5bd112 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff81c5f3214 pthread_kill + 263
2 libsystem_c.dylib 0x7ff81c53fd10 abort + 123
3 libc++abi.dylib 0x7ff81c5b00b2 abort_message + 241
4 libc++abi.dylib 0x7ff81c5a11e5 demangling_terminate_handler() + 242
5 libobjc.A.dylib 0x7ff81c49e511 _objc_terminate() + 104
6 libc++abi.dylib 0x7ff81c5af4d7 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x7ff81c5b1f3b __cxa_rethrow + 99
8 libobjc.A.dylib 0x7ff81c4a7e46 objc_exception_rethrow + 37
9 AppKit 0x7ff81f0d85f2 -[NSApplication run] + 659
10 libqcocoa.dylib 0x10eee1a03 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 3011
11 QtCore 0x10f5fba3e QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 430
12 QtCore 0x10f600b32 QCoreApplication::exec() + 130
13 mixxx 0x10b9c2209 main + 1513

Thread 1:: EngineWorkerScheduler
0 libsystem_kernel.dylib 0x7ff81c5b9506 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff81c5f3a69 _pthread_cond_wait + 1224
2 QtCore 0x10f42f13b QWaitConditionPrivate::wait(QDeadlineTimer) + 59
3 QtCore 0x10f42f09c QWaitCondition::wait(QMutex*, QDeadlineTimer) + 108
4 QtCore 0x10f42f025 QWaitCondition::wait(QMutex*, unsigned long) + 101
5 mixxx 0x10bb81738 EngineWorkerScheduler::run() + 200

Thread 2:: EngineSideChain
0 libmp3lame.0.dylib 0x10ca3b23e fast_log2 + 46
1 libmp3lame.0.dylib 0x10ca32bde calc_noise + 1070
2 libmp3lame.0.dylib 0x10ca30663 outer_loop + 4563
3 libmp3lame.0.dylib 0x10ca30abc CBR_iteration_loop + 572
4 libmp3l...

Revision history for this message
vidoma (massiccio) wrote :

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000 rbx: 0x0000000114c5d600 rcx: 0x00007ff7b454bfc8 rdx: 0x0000000000000000
  rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x00007ff7b454bff0 rsp: 0x00007ff7b454bfc8
   r8: 0x00007ff7b454be90 r9: 0x00007ff81c5b2f78 r10: 0x0000000000000000 r11: 0x0000000000000246
  r12: 0x0000000000000103 r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x0000000000000016
  rip: 0x00007ff81c5bd112 rfl: 0x0000000000000246 cr2: 0x00007ff85c2fe980

Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133

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

Thank you for the updated backtrace.

std::bad_alloc = out of memory

This has recently also been reported for Ubuntu 20.04 using Qt 5.12. It occurred while redrawing the beat markers, not in the main event loop like here.

We don't know the circumstances yet and are not aware on how to reproduce these issues reported by a few users. There is a similar bug report that involves Auto DJ:

https://bugs.launchpad.net/mixxx/+bug/1921663

On an up-to-date Fedora 35 with Qt 5.15 I have never seen any of those failures.

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

Main bug for memory related crashes: https://bugs.launchpad.net/mixxx/+bug/1944512

Revision history for this message
vidoma (massiccio) wrote :
Download full text (153.4 KiB)

another crash

Translated Report (Full Report Below)
-------------------------------------

Process: mixxx [1560]
Path: /Applications/mixxx.app/Contents/MacOS/mixxx
Identifier: org.mixxx.mixxx
Version: 2.3.1 (2.3.1)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2022-01-30 11:48:45.1743 +0100
OS Version: macOS 12.1 (21C52)
Report Version: 12
Bridge OS Version: 6.1 (19P647)
Anonymous UUID: DB838A04-26C4-3269-C824-BDB84B166332

Time Awake Since Boot: 8000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff80ce41112 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff80ce77214 pthread_kill + 263
2 libsystem_c.dylib 0x7ff80cdc3d10 abort + 123
3 libc++abi.dylib 0x7ff80ce340b2 abort_message + 241
4 libc++abi.dylib 0x7ff80ce251e5 demangling_terminate_handler() + 242
5 libobjc.A.dylib 0x7ff80cd22511 _objc_terminate() + 104
6 libc++abi.dylib 0x7ff80ce334d7 std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x7ff80ce35f3b __cxa_rethrow + 99
8 libobjc.A.dylib 0x7ff80cd2be46 objc_exception_rethrow + 37
9 AppKit 0x7ff80f95c5f2 -[NSApplication run] + 659
10 libqcocoa.dylib 0x112a3ba03 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 3011
11 QtCore 0x113155a3e QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 430
12 QtCore 0x11315ab32 QCoreApplication::exec() + 130
13 mixxx 0x10f51c209 main + 1513

Thread 1:: EngineWorkerScheduler
0 libsystem_kernel.dylib 0x7ff80ce3d506 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff80ce77a69 _pthread_cond_wait + 1224
2 QtCore 0x112f8913b QWaitConditionPrivate::wait(QDeadlineTimer) + 59
3 QtCore 0x112f8909c QWaitCondition::wait(QMutex*, QDeadlineTimer) + 108
4 QtCore 0x112f89025 QWaitCondition::wait(QMutex*, unsigned long) + 101
5 mixxx 0x10f6db738 EngineWorkerScheduler::run() + 200

Thread 2:: EngineSideChain
0 libsystem_kernel.dylib 0x7ff80ce3d506 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff80ce77a69 _pthread_cond_wait + 1224
2 QtCore 0x112f8913b QWaitConditionPrivate::wait(QDeadlineTimer) + 59
3 QtCore 0x112f8909c QWaitCondition::wait...

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

I just noticed that this bug report is actually a duplicate of https://bugs.launchpad.net/mixxx/+bug/1948961 were you have already reported crashes on macOS.

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/10644

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.