DeaDBeeF-Player / deadbeef

DeaDBeeF Player
https://deadbeef.sourceforge.io/
Other
1.65k stars 178 forks source link

drag & drop from filebrowser window to playlist on OSX Sonoma causes a crash #3134

Closed nospam2000 closed 1 month ago

nospam2000 commented 1 month ago

Steps to reproduce the problem

Select one or more songs in builtin filebrowser window and drag them to the playlist window.

Double-click in filebrowser works, but not drag&drop.

What's going on? Describe the problem in as much detail as possible.

DeaDBeeF is instantly crashing

Information about the software:

Deadbeef version: devel (6ef4bad), X86-64 (Native) OS: Mac OSX Sonoma 14.4.1

Infos from the Mac crash report

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_c.dylib                   0x7ff81240ad19 strrchr + 10
1   DeaDBeeF                               0x10e81dd9a _plt_load_from_file + 317
2   DeaDBeeF                               0x10e81dc38 plt_load_from_buffer + 55
3   DeaDBeeF                               0x10e7c52cb -[DdbPlayItemPasteboardSerializer initWithCoder:] + 233
4   Foundation                          0x7ff8135a2b5b _decodeObjectBinary + 2757
5   Foundation                          0x7ff8135a1f5d _decodeObject + 152
6   Foundation                          0x7ff8135a1e48 -[NSKeyedUnarchiver decodeObjectForKey:] + 162
7   Foundation                          0x7ff8135a1cb8 -[NSKeyedUnarchiver decodeObjectOfClasses:forKey:] + 379
8   AppKit                              0x7ff8164d3406 -[NSPasteboard readObjectsForClasses:options:] + 2741
9   DeaDBeeF                               0x10e7fd7b1 -[PlaylistContentView performDragOperation:] + 1577
10  AppKit                              0x7ff815fa3edb NSCoreDragReceiveMessageProc + 671
11  HIServices                          0x7ff818a12b1a CallReceiveMessageCollectionWithMessage + 103
12  HIServices                          0x7ff818a0d4d5 DoMultipartDropMessage + 105
13  HIServices                          0x7ff818a0d2ce DoDropMessage + 42
14  HIServices                          0x7ff818a0be96 DragInApplication + 833
15  HIServices                          0x7ff818a0aab4 CoreDragStartDragging + 568
16  AppKit                              0x7ff815fa14fe -[NSCoreDragManager _dragUntilMouseUp:accepted:] + 1073
17  AppKit                              0x7ff81630c717 _handleBeginDraggingSession + 105
18  CoreFoundation                      0x7ff81263efa6 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
19  CoreFoundation                      0x7ff81263eeca __CFRunLoopDoObservers + 493
20  CoreFoundation                      0x7ff81263dabe CFRunLoopRunSpecific + 441
21  HIToolbox                           0x7ff81d04f829 RunCurrentEventLoopInMode + 292
22  HIToolbox                           0x7ff81d04f466 ReceiveNextEventCommon + 201
23  HIToolbox                           0x7ff81d04f381 _BlockUntilNextEventMatchingListInModeWithFilter + 66
24  AppKit                              0x7ff815ca5be5 _DPSNextEvent + 880
25  AppKit                              0x7ff8165b5fe9 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1273
26  AppKit                              0x7ff815c97005 -[NSApplication run] + 603
27  AppKit                              0x7ff815c6aff1 NSApplicationMain + 816
28  DeaDBeeF                               0x10e7c4f48 cocoaui_start + 55
29  DeaDBeeF                               0x10e7cd850 main + 2715
30  dyld                                0x7ff8121d7366 start + 1942
Oleksiy-Yakovenko commented 1 month ago

Duplicate of #3130, already fixed