Skip to content

MacOS - Mixxx Crashes when opening Rekordbox USB #10608

@mixxxbot

Description

@mixxxbot

Reported by: snowyoneill
Date: 2021-11-23T22:28:21Z
Status: New
Importance: Undecided
Launchpad Issue: lp1952005
Attachments: [Rekordbox PDB which crashes under MacOS](https://bugs.launchpad.net/bugs/1952005/+attachment/5542882/+files/Rekordbox PDB which crashes under MacOS)


Mixxx 2.3.1
MacOS Big Sur

Steps to reproduce the problem:

  • In library, click on Rekordbox. An arrow appears to expand
  • Click arrow, the USB drive shows
  • Click USB drive, Mixxx either hangs or crashes

Expected behaviour:

  • Show the contents of the Recordbox library

Information logs

  • Rekordbox export db

I've tested this on 3 different Mac Books ( Pro x2 + Air, I've also tried 2 different USBs with different libraries ) - if i test under --developer mode it throws a seg fault. These USBs load fine under Linux and Windows versions ( tested using 2.3.1 across all platforms ).

If i run Mixxx in --developer mode i get these logs

Mixxx Crashes
```
Debug [Main]: RekordboxFeature::activate()
Debug [Main]: RekordboxFeature::activateChild  "ELSCANO"  playlist:  "/Volumes/ELSCANO"  doParseDeviceDB:  true
Debug [Main]: Parse Rekordbox Device DB:  "/Volumes/ELSCANO"
mixxx(91893,0x7000042b7000) malloc: *** error for object 0x7fd7082ab240: pointer being freed was not allocated
mixxx(91893,0x7000042b7000) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort      /Applications/mixxx.app/Contents/MacOS/mixxx --developer
```

Mixxx Hangs
```
Debug [Main]: RekordboxFeature::activate()
Debug [Main]: RekordboxFeature::activateChild  "ELSCANO"  playlist:  "/Volumes/ELSCANO"  doParseDeviceDB:  true
Debug [Main]: Parse Rekordbox Device DB:  "/Volumes/ELSCANO"
Debug [Thread (pooled)]: parseDeviceDB device:  "ELSCANO"  devicePath:  "/Volumes/ELSCANO"
Debug [Thread (pooled)]: DbConnection - Opening database connection "MIXXX-11" QSqlDatabase(driver="QSQLITE", database="file:///Users/<user>/Library/Containers/org.mixxx.mixxx/Data/Library/Application Support/Mixxx/mixxxdb.sqlite", host="", port=-1, user="mixxx", open=false)
Info [Thread (pooled)]: DbConnectionPool - Cloned thread-local database connection "MIXXX-11" QSqlDatabase(driver="QSQLITE", database="file:///Users/<user>/Library/Containers/org.mixxx.mixxx/Data/Library/Application Support/Mixxx/mixxxdb.sqlite", host="", port=-1, user="mixxx", open=true)
Debug [Thread (pooled)]: DbConnectionPooled - Found thread-local database connection "MIXXX-11" QSqlDatabase(driver="QSQLITE", database="file:///Users/<user>/Library/Containers/org.mixxx.mixxx/Data/Library/Application Support/Mixxx/mixxxdb.sqlite", host="", port=-1, user="mixxx", open=true)
2021-11-23 13:34:27.649 mixxx[92132:7866935] WARNING: NSWindow drag regions should only be invalidated on the Main Thread! This will throw an exception in the future. Called from (
    0   AppKit                              0x00007fff22e8a47f -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 352
    1   AppKit                              0x00007fff22e75121 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1375
    2   AppKit                              0x00007fff23037377 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
    3   AppKit                              0x00007fff22e74bbb -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
    4   AppKit                              0x00007fff2303732c -[NSPanel initWithContentRect:styleMask:backing:defer:] + 64
    5   AppKit                              0x00007fff2317f1f4 -[NSWindow initWithContentRect:styleMask:backing:defer:screen:] + 52
    6   libqcocoa.dylib                     0x0000000111a96a0b -[QNSPanel initWithContentRect:styleMask:backing:defer:screen:platformWindow:] + 219
    7   libqcocoa.dylib                     0x0000000111a83b6c _ZN12QCocoaWindow14createNSWindowEb + 1116
    8   libqcocoa.dylib                     0x0000000111a7d670 _ZN12QCocoaWindow22recreateWindowIfNeededEv + 1264
    9   libqcocoa.dylib                     0x0000000111a7d0fb _ZN12QCocoaWindow10initializeEv + 315
    10  QtGui                               0x000000010e60db0c _ZN14QWindowPrivate6createEby + 140
    11  QtWidgets                           0x000000010de096c1 _ZN14QWidgetPrivate10create_sysEybb + 1217
    12  QtWidgets                           0x000000010de083a6 _ZN7QWidget6createEybb + 374
    13  QtWidgets                           0x000000010de1bac3 _ZN14QWidgetPrivate10setVisibleEb + 195
    14  QtWidgets                           0x000000010dfe567d _ZN7QDialog10setVisibleEb + 125
    15  QtWidgets                           0x000000010dfe4ec3 _ZN7QDialog4execEv + 243
    16  QtWidgets                           0x000000010e022b92 _ZL17showNewMessageBoxP7QWidgetN11QMessageBox4IconERK7QStringS5_6QFlagsINS1_14StandardButtonEES7_ + 354
    17  mixxx                               0x000000010cae7fdf _ZN7Sandbox12askForAccessERK7QString + 367
)
Warning [Thread (pooled)]: QPainter::begin: A paint device can only be painted by one painter at a time.
Warning [Thread (pooled)]: QPainter::setCompositionMode: Painter not active
Warning [Thread (pooled)]: QBackingStore::endPaint() called with active painter on backingstore paint device
```

I will try to get a back trace to aid in debugging but i don't have access to a Mac for testing right now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions