kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
482 stars 29 forks source link

klystrack crashes when launching on MacOS X 10.6.5 #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. execute ./klystrack

What is the expected output? What do you see instead?
Expected is a working klystrack. I get the following output instead:

[DEBUG] Starting klystrack 1.5.0 r867
2010-12-15 10:38:50.433 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100305fe0 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.435 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100326400 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.435 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101800090 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.435 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100329f70 of class NSCFDictionary autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.436 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f22b78 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.436 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1005005b0 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.436 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2ddd8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.437 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1005005d0 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.437 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2deb8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.437 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100500590 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.438 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2e4b8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.438 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100500590 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.438 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2deb8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.438 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2e4b8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.439 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2deb8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.439 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2e4b8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.439 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2deb8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.440 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2deb8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.440 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f2deb8 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.440 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100313650 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.442 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1005038b0 of class __NSFontTypefaceInfo autoreleased with no pool in place - 
just leaking
2010-12-15 10:38:50.442 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1018005f0 of class NSAffineTransform autoreleased with no pool in place - 
just leaking
2010-12-15 10:38:50.443 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101a02b20 of class NSFont autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.443 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100503b90 of class NSFont autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.445 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x10032a9f0 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.446 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101800de0 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.446 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1018011b0 of class NSCFSet autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.447 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101801280 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.447 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100503c60 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.447 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100306100 of class NSCFSet autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.447 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d61910 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.448 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d6d6f0 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.517 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d6f590 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.518 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x10032aa60 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.518 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101a01e10 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.518 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d6c8d0 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.519 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d63b30 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.519 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d64ed0 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.519 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d6e450 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.520 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d6cdd0 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.520 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x10032b060 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.520 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d60830 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.520 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1018006e0 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.521 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101800720 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.521 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1018012c0 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.521 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100503b90 of class NSFont autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.522 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d6ee30 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.522 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70d60e70 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.522 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101a00860 of class NSCFNumber autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.523 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101802150 of class NSCalibratedWhiteColor autoreleased with no pool in place 
- just leaking
2010-12-15 10:38:50.523 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101802a60 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.524 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101803320 of class NSCFDictionary autoreleased with no pool in place - just 
leaking
[DEBUG] Setting screen mode (scale = 1)
2010-12-15 10:38:50.529 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101a06110 of class NSMutableParagraphStyle autoreleased with no pool in place 
- just leaking
2010-12-15 10:38:50.530 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100333770 of class NSCFDictionary autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.530 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101804120 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.531 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1018051e0 of class __NSFontTypefaceInfo autoreleased with no pool in place - 
just leaking
2010-12-15 10:38:50.531 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100506ce0 of class NSFont autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.531 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100305600 of class NSFont autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.532 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f17538 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.532 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101804b10 of class _NSThemeCloseWidget autoreleased with no pool in place - 
just leaking
2010-12-15 10:38:50.532 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x10030a610 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.533 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100305600 of class NSFont autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.533 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f17538 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.533 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100333fa0 of class _NSThemeWidget autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.534 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100333a00 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.534 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100305600 of class NSFont autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.534 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x7fff70f17538 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.535 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100334540 of class _NSThemeWidget autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.535 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x101a03ef0 of class NSCFArray autoreleased with no pool in place - just leaking
2010-12-15 10:38:50.536 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100334b10 of class NSTrackingArea autoreleased with no pool in place - just 
leaking
Wed Dec 15 10:38:50 karchon.rickert.local klystrack[5407] <Error>: 
kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection
Wed Dec 15 10:38:50 karchon.rickert.local klystrack[5407] <Error>: 
kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they 
are logged.
2010-12-15 10:38:50.536 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100334da0 of class NSTrackingArea autoreleased with no pool in place - just 
leaking
Wed Dec 15 10:38:50 karchon.rickert.local klystrack[5407] <Error>: 
kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection
Wed Dec 15 10:38:50 karchon.rickert.local klystrack[5407] <Error>: 
kCGErrorInvalidConnection: CGSNewWindowWithOpaqueShape: Invalid connection
2010-12-15 10:38:50.537 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1003358f0 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.537 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1003033e0 of class NSException autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.537 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100335b30 of class _NSCallStackArray autoreleased with no pool in place - 
just leaking
2010-12-15 10:38:50.537 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100335be0 of class _NSCallStackArray autoreleased with no pool in place - 
just leaking
2010-12-15 10:38:50.537 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x100335d10 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.538 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x10086a400 of class NSCFString autoreleased with no pool in place - just 
leaking
2010-12-15 10:38:50.538 klystrack[5407:903] *** __NSAutoreleaseNoPool(): Object 
0x1003350b0 of class NSConcreteMutableData autoreleased with no pool in place - 
just leaking
2010-12-15 10:38:50.538 klystrack[5407:903] *** Terminating app due to uncaught 
exception 'NSInternalInconsistencyException', reason: 'Error (1002) creating 
CGSWindow'
*** Call stack at first throw:
(
        0   CoreFoundation                      0x00007fff872387b4 __exceptionPreprocess + 180
        1   libobjc.A.dylib                     0x00007fff86faa0f3 objc_exception_throw + 45
        2   CoreFoundation                      0x00007fff872385d7 +[NSException raise:format:arguments:] + 103
        3   CoreFoundation                      0x00007fff87238564 +[NSException raise:format:] + 148
        4   AppKit                              0x00007fff880b3ee2 _NSCreateWindowWithOpaqueShape2 + 473
        5   AppKit                              0x00007fff88048489 -[NSWindow _commonAwake] + 1214
        6   AppKit                              0x00007fff8804516e -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 1501
        7   AppKit                              0x00007fff88043dfa -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1396
        8   AppKit                              0x00007fff88043883 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
        9   libSDL-1.2.0.dylib                  0x0000000100087e4d -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] + 285
        10  libSDL-1.2.0.dylib                  0x0000000100085324 QZ_SetVideoMode + 1076
        11  libSDL-1.2.0.dylib                  0x000000010007c49f SDL_SetVideoMode + 527
        12  klystrack                           0x00000001000221dc gfx_domain_update + 124
        13  klystrack                           0x000000010000e835 main + 263
        14  klystrack                           0x0000000100001324 start + 52
        15  ???                                 0x0000000000000001 0x0 + 1
)

What version of the product are you using? On what operating system?
I checked out the 1.5.0 svn tag (r867).
OS: Mac OS X 10.6.5

Please provide any additional information below.
libsdl @1.2.14_8
libsdl_image @1.2.10_2
libsdl_mixer @1.2.11_0

I needed to change the Makefile (-march=pentium2 to -march=core2). because of 
x86-64 compilation problems.

Original issue reported on code.google.com by ron.rick...@googlemail.com on 15 Dec 2010 at 9:45

GoogleCodeExporter commented 9 years ago
I found this:

http://cymonsgames.com/forum/index.php?topic=7.msg703#msg703

"Turns out that on OSX you have to rename your main() to SDLmain() and link 
with libSDLmain.  Furthermore, since SDLmain() has to be defined as extern "C", 
I had to make SDLmain() be a wrapper that calls the C++ main(), which I renamed 
to cpp_main()."

I'll do exactly that.

Original comment by kometb...@gmail.com on 15 Dec 2010 at 10:38

GoogleCodeExporter commented 9 years ago
Actually, scratch that. Could you check if adding '-framework Cocoa' in CFLAGS 
fixes that? In Makefile (klystrack/Makefile), modify the line that says "CFLAGS 
+= $(CFGFLAGS)" as "CFLAGS += $(CFGFLAGS) -framework Cocoa". I think SDL should 
take care the above main() renaming (which it does on other platforms too).

Original comment by kometb...@gmail.com on 15 Dec 2010 at 11:15

GoogleCodeExporter commented 9 years ago
'sdl-config --libs', which is called in the Makefile already does that.

karchon:~riker$ sdl-config --libs
-L/Volumes/dStore/macports/lib -lSDLmain -lSDL -Wl,-framework,Cocoa

I am now trying to get it compiled with the SDL version from libsdl.org.

Original comment by ron.rick...@googlemail.com on 15 Dec 2010 at 11:54

GoogleCodeExporter commented 9 years ago

Original comment by kometb...@gmail.com on 18 Dec 2010 at 1:26