Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS 1.0.22 crashes trying to add to collection or add new smart playlist #1350

Closed
3 tasks done
therealahall opened this issue Jan 7, 2024 · 3 comments
Closed
3 tasks done
Assignees

Comments

@therealahall
Copy link

  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
Strawberry starts up just fine, but as soon as I click to add to collection or try to add a new smart playlist, it crashes

To Reproduce
Start Strawberry on MacOS
Click add to collection
Or, click on smart playlists then click add

Expected behavior
I would expect to be able to use either functionality

Screenshots:
N/A

System Information:

  • Operating system: MacOS Sonoma 14.1.2
  • Strawberry Version: 1.0.22 and 1.0.21.53

Additional context
Output from the terminal when running it via CLI and clicking add to collection

08:33:57.507 INFO  main:184                         Strawberry 1.0.22 Qt "6.6.1"
08:33:57.507 INFO  main:185                         "macOS 14.1 14.1 - (darwin 23.1.0) [arm64]"
08:33:57.569 INFO  GstStartup:51                    Creating GLib main event loop.
08:33:57.585 INFO  main:47                          TagReader worker connecting to "/private/var/folders/7p/2q37ckfx59d108x4q0mf6qdh0000gn/T/strawberry_2550932"
08:33:57.695 INFO  Player:954                       Registered URL handler for "subsonic"
08:33:57.698 INFO  Player:954                       Registered URL handler for "tidal"
08:33:57.707 INFO  Player:954                       Registered URL handler for "qobuz"
2024-01-07 08:33:58.098 strawberry[21923:3722337] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
08:33:58.112 WARN  applicationDidFinishLaunching:]:157 Failed to start media key monitoring
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018ca02800 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000018c4f9eb4 objc_exception_throw + 60
	2   CoreFoundation                      0x000000018c978fc0 -[__NSCFString hasSuffix:] + 0
	3   libqcocoa.dylib                     0x0000000105bba7a0 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 273636
	4   libqcocoa.dylib                     0x0000000105bba824 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 273768
	5   libqcocoa.dylib                     0x0000000105bb8d90 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 266964
	6   QtWidgets                           0x000000010686d750 _ZN9QListView16selectionChangedERK14QItemSelectionS2_ + 204
	7   QtCore                              0x0000000108969b74 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3716
	8   QtCore                              0x0000000108b2eeb0 _ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2_ + 216
	9   QtCore                              0x0000000108b2eb30 _ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 624
	10  QtCore                              0x0000000108b2e824 _ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 68
	11  QtCore                              0x0000000108b2f8b8 _ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 260
	12  QtWidgets                           0x00000001066ccf34 _ZNK9QComboBox5countEv + 828
	13  QtWidgets                           0x00000001066cc5d8 _ZN9QComboBox15setCurrentIndexEi + 112
	14  QtWidgets                           0x00000001066d0468 _ZN9QComboBoxC1ER16QComboBoxPrivateP7QWidget + 2356
	15  QtCore                              0x0000000108969b28 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3640
	16  QtCore                              0x0000000108b17c74 _ZN18QAbstractItemModel13endInsertRowsEv + 200
	17  QtGui                               0x0000000107480e44 _ZN18QStandardItemModel11itemChangedEP13QStandardItem + 2396
	18  QtWidgets                           0x00000001066d34cc _ZN9QComboBox10insertItemEiRK5QIconRK7QStringRK8QVariant + 372
	19  strawberry                          0x0000000105181fe0 _ZN19MoodbarSettingsPage19InitMoodbarPreviewsEv + 392
	20  strawberry                          0x0000000105181b34 _ZN19MoodbarSettingsPage4LoadEv + 548
	21  strawberry                          0x0000000105181570 _ZN19MoodbarSettingsPageC2EP14SettingsDialogP7QWidget + 196
	22  strawberry                          0x0000000104f8d2a0 _ZN14SettingsDialogC2EP11ApplicationP7OSDBaseP11QMainWindowP7QWidget + 1044
	23  strawberry                          0x0000000104d550f8 _ZN10MainWindow20CreateSettingsDialogEv + 60
	24  strawberry                          0x0000000104d71ec4 _ZN10MainWindow23SetToggleScrobblingIconEb + 31760
	25  strawberry                          0x0000000104d5fa60 _ZN10MainWindow20ShowCollectionConfigEv + 24
	26  QtCore                              0x0000000108969b28 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3640
	27  QtWidgets                           0x0000000106608654 _ZN7QWidget5eventEP6QEvent + 132
	28  QtWidgets                           0x0000000106687ac8 _ZN6QFrame5eventEP6QEvent + 56
	29  QtWidgets                           0x000000010682dd4c _ZN17QAbstractItemView13viewportEventEP6QEvent + 972
	30  QtWidgets                           0x0000000106899348 _ZN9QTreeView13viewportEventEP6QEvent + 300
	31  QtCore                              0x000000010891ecd0 _ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent + 244
	32  QtWidgets                           0x00000001065bf62c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 240
	33  QtWidgets                           0x00000001065c17c0 _ZN12QApplication6notifyEP7QObjectP6QEvent + 5300
	34  QtCore                              0x000000010891e9fc _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292
	35  QtWidgets                           0x00000001065bfbec _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb + 808
	36  QtWidgets                           0x000000010661ccf0 _ZNK21QWidgetRepaintManager3rhiEv + 11168
	37  QtWidgets                           0x000000010661bf88 _ZNK21QWidgetRepaintManager3rhiEv + 7736
	38  QtWidgets                           0x00000001065bf64c _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272
	39  QtWidgets                           0x00000001065c0504 _ZN12QApplication6notifyEP7QObjectP6QEvent + 504
	40  QtCore                              0x000000010891e9fc _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292
	41  QtGui                               0x00000001071d4878 _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE + 1680
	42  QtGui                               0x000000010722fafc _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 408
	43  libqcocoa.dylib                     0x0000000105b5c380 qt_plugin_instance + 59320
	44  CoreFoundation                      0x000000018c98dcfc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
	45  CoreFoundation                      0x000000018c98dc90 __CFRunLoopDoSource0 + 176
	46  CoreFoundation                      0x000000018c98da00 __CFRunLoopDoSources0 + 244
	47  CoreFoundation                      0x000000018c98c5f0 __CFRunLoopRun + 828
	48  CoreFoundation                      0x000000018c98bc5c CFRunLoopRunSpecific + 608
	49  HIToolbox                           0x0000000196f08448 RunCurrentEventLoopInMode + 292
	50  HIToolbox                           0x0000000196f080d8 ReceiveNextEventCommon + 220
	51  HIToolbox                           0x0000000196f07fdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
	52  AppKit                              0x0000000190166c54 _DPSNextEvent + 660
	53  AppKit                              0x000000019093cebc -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
	54  AppKit                              0x000000019015a100 -[NSApplication run] + 476
	55  libqcocoa.dylib                     0x0000000105b59e7c qt_plugin_instance + 49844
	56  QtCore                              0x000000010892841c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 540
	57  QtCore                              0x000000010891f088 _ZN16QCoreApplication4execEv + 112
	58  strawberry                          0x0000000104d45414 main + 6176
	59  dyld                                0x000000018c5350e0 start + 2360
)
libc++abi: terminating due to uncaught exception of type NSException
[1]    21923 abort      /Applications/strawberry.app/Contents/MacOS/strawberry
@jonaski
Copy link
Member

jonaski commented Jan 8, 2024

Looks like this is a Qt 6.6.1 bug, already fixed: https://bugreports.qt.io/browse/QTBUG-120469
I will try patching Qt and build a new version that you can test.

jonaski added a commit to strawberrymusicplayer/strawberry-macos-dependencies that referenced this issue Jan 8, 2024
jonaski added a commit to strawberrymusicplayer/strawberry-macos-dependencies that referenced this issue Jan 9, 2024
strawbsbot pushed a commit to strawberrymusicplayer/strawberry-macos-dependencies that referenced this issue Jan 9, 2024
@jonaski
Copy link
Member

jonaski commented Jan 9, 2024

@jonaski jonaski self-assigned this Jan 9, 2024
@therealahall
Copy link
Author

That has fixed both the collection and the smart playlist issues I was experiencing. Thanks for quickly turning this around and I'm in business!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants