NicePlayer icon indicating copy to clipboard operation
NicePlayer copied to clipboard

Crashes immediately when built from source

Open ryandesign opened this issue 6 years ago • 0 comments

I've built NicePlayer 0.98 from source on macOS High Sierra 10.13 (but using the 10.11 SDK) using MacPorts and although it builds successfully it crashes immediately upon launch:

$ /Applications/MacPorts/NicePlayer.app/Contents/MacOS/NicePlayer
objc[98173]: Class NPPluginView is implemented in both /Applications/MacPorts/NicePlayer.app/Contents/MacOS/NicePlayer (0x1092e1390) and /Applications/MacPorts/NicePlayer.app/Contents/PlugIns/DVDPlayer.nicebundle/Contents/MacOS/DVDPlayer (0x10c7c11c8). One of the two will be used. Which one is undefined.
Segmentation fault: 11

The crash log begins with:

Process:               NicePlayer [97137]
Path:                  /Applications/MacPorts/NicePlayer.app/Contents/MacOS/NicePlayer
Identifier:            indy.jt.niceplayer
Version:               0.98-rc (601)
Code Type:             X86-64 (Native)
Parent Process:        bash [87087]
Responsible:           NicePlayer [97137]
User ID:               502

Date/Time:             2018-10-17 00:08:14.249 -0500
OS Version:            Mac OS X 10.13.6 (17G65)
Report Version:        12
Bridge OS Version:     3.0 (14Y664)
Anonymous UUID:        5F07E83C-0DE1-94A9-3CB6-87B0BD75614F

Sleep/Wake UUID:       CC58C086-3AC8-41F6-BA0A-6456464AC6A9

Time Awake Since Boot: 910000 seconds
Time Since Wake:       6700 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0xffffffffdc759b90
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

VM Regions Near 0xffffffffdc759b90:
--> shared memory          00007ffffff43000-00007ffffff44000 [    4K] r-x/r-x SM=SHM  
    

Application Specific Information:
objc_msgSend() selector name: autorelease


Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               	0x00007fff652dce97 objc_msgSend + 23
1   indy.jt.CocoaScriptMenu       	0x000000010e2f0b47 -[CSMCommandCreator initWithScriptPath:] + 63
2   indy.jt.CocoaScriptMenu       	0x000000010e2ee4cc +[CSMCommand commandWithScriptPath:] + 43
3   indy.jt.CocoaScriptMenu       	0x000000010e2ef329 +[CSMScriptMenu menuItemsForPath:] + 266
4   indy.jt.CocoaScriptMenu       	0x000000010e2ef704 -[CSMScriptMenu updateMenuForScripts:] + 416
5   indy.jt.CocoaScriptMenu       	0x000000010e2ef968 -[CSMScriptMenu updateScriptMenu] + 250
6   NicePlayer                    	0x000000010e28ff18 0x10e27d000 + 77592
7   com.apple.AppKit              	0x00007fff3b63f683 -[NSApplication run] + 250
8   com.apple.AppKit              	0x00007fff3b60ea72 NSApplicationMain + 804
9   libdyld.dylib                 	0x00007fff65f04015 start + 1

I have also tried to build and run on OS X Mountain Lion 10.8 and it does the same thing.

I am not certain if this is a problem in the source code or a problem with the way we are building it in MacPorts. I don't think we're building it in a particularly unusual way, but I have also tried your precompiled binary of 0.98 on High Sierra and it does not crash.

ryandesign avatar Oct 17 '18 06:10 ryandesign