Sorry for the late reply,
I’m a bit of an idiot. To get gtk-mac-integration to work with the new code in
macports, I had to setup a local port repo for it. I stupidly forgot to change
a part of the portfile that made it not download clean a 2.0.5 and compile that
instead of using the code on my harddrvie. So all this time the code i put in
didn’t change the library in macports. *smack*
I went back to the 2 options of code you selected earlier, neither compiled
correctly. (error: expected identifier)
But these last two options you just gave, I got to compile with:
menuitem = [[[NSMenuItem alloc] initWithTitle: [NSString stringWithFormat:
NSLocalizedStringFromTable (@"Hide", @"GtkosxApplication", @"Hide menu item
title"), appname]]
action: @selector (hide: ) keyEquivalent: @"h”]; (was missing a “[“)
But upon launching, Xboard fails to launch with this crash. (wether or not
there is an .lproj to use)
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[NSMenuItem initWithTitle:]: unrecognized selector sent to instance
0x7fe342f19270'
terminating with uncaught exception of type NSException
abort() called
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff884c025c
__exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff86905e75 objc_exception_throw
+ 43
2 CoreFoundation 0x00007fff884c312d -[NSObject(NSObject)
doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff8841e272 ___forwarding___ +
1010
4 CoreFoundation 0x00007fff8841ddf8
_CF_forwarding_prep_0 + 120
5 libgtkmacintegration.2.dylib 0x0000000102f47617 create_apple_menu +
967
6 libgtkmacintegration.2.dylib 0x0000000102f470f4
gtkosx_application_set_menu_bar + 548
7 XBoard-bin 0x000000010223520d main + 636
8 libdyld.dylib 0x00007fff90fc65fd start + 1
9 ??? 0x0000000000000001 0x0 + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8f277866 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8caa535c pthread_kill + 92
2 libsystem_c.dylib 0x00007fff92ef3b1a abort + 125
3 libc++abi.dylib 0x00007fff8725df31 abort_message + 257
4 libc++abi.dylib 0x00007fff87283952
default_terminate_handler() + 264
5 libobjc.A.dylib 0x00007fff8690630d _objc_terminate() +
103
6 libc++abi.dylib 0x00007fff872811d1
std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff87280c5b __cxa_throw + 124
8 libobjc.A.dylib 0x00007fff86905fa1 objc_exception_throw
+ 343
9 com.apple.CoreFoundation 0x00007fff884c312d -[NSObject(NSObject)
doesNotRecognizeSelector:] + 205
10 com.apple.CoreFoundation 0x00007fff8841e272 ___forwarding___ +
1010
11 com.apple.CoreFoundation 0x00007fff8841ddf8
_CF_forwarding_prep_0 + 120
12 libgtkmacintegration.2.dylib 0x0000000102f47617 create_apple_menu +
967
13 libgtkmacintegration.2.dylib 0x0000000102f470f4
gtkosx_application_set_menu_bar + 548
14 XBoard-bin 0x000000010223520d main + 636
15 libdyld.dylib 0x00007fff90fc65fd start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff8f277e6a __workq_kernreturn +
10
1 libsystem_pthread.dylib 0x00007fff8caa5f08 _pthread_wqthread +
330
2 libsystem_pthread.dylib 0x00007fff8caa8fb9 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8f278662 kevent64 + 10
1 libdispatch.dylib 0x00007fff91ff4421 _dispatch_mgr_invoke
+ 239
2 libdispatch.dylib 0x00007fff91ff4136 _dispatch_mgr_thread
+ 52
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8f277e6a __workq_kernreturn +
10
1 libsystem_pthread.dylib 0x00007fff8caa5f08 _pthread_wqthread +
330
2 libsystem_pthread.dylib 0x00007fff8caa8fb9 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8f277e6a __workq_kernreturn +
10
1 libsystem_pthread.dylib 0x00007fff8caa5f08 _pthread_wqthread +
330
2 libsystem_pthread.dylib 0x00007fff8caa8fb9 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff76ce8310 rcx: 0x00007fff5da50228
rdx: 0x0000000000000000
rdi: 0x0000000000000d07 rsi: 0x0000000000000006 rbp: 0x00007fff5da50250
rsp: 0x00007fff5da50228
r8: 0x00007fff87284959 r9: 0x00007fff92f1b8d0 r10: 0x0000000008000000
r11: 0x0000000000000206
r12: 0x00007fff5da503b0 r13: 0x00007fe342f19ab8 r14: 0x0000000000000006
r15: 0x00007fff5da50290
rip: 0x00007fff8f277866 rfl: 0x0000000000000206 cr2: 0x000000013a6e2000
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
(I made sure to have "-O0 -g” in CFLAGS)
Anyway here is that Crash log you asked for many years back with the clean
gtk-mac-integration lib
Process: XBoard-bin [21452]
Path: /Users/USER/Downloads/*/XBoard.app/Contents/MacOS/XBoard-bin
Identifier: org.fsf.xboard.www
Version: master-20140119 (master-20140119)
Code Type: X86-64 (Native)
Parent Process: bash [21449]
Responsible: Terminal [23097]
User ID: 501
Date/Time: 2014-10-03 00:04:43.587 -0400
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: B5F105E8-A871-4B39-64DC-CA53CCBFDFF7
Sleep/Wake UUID: 9F526B43-5472-4F01-A4D4-677F08D99EFF
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff88378be3 _CFRetain + 339
1 com.apple.CoreFoundation 0x00007fff883ea832
CFBundleCopyLocalizedString + 1506
2 com.apple.Foundation 0x00007fff927323eb -[NSBundle
localizedStringForKey:value:table:] + 64
3 libgtkmacintegration.2.dylib 0x000000010f81e5fd create_apple_menu +
925
4 libgtkmacintegration.2.dylib 0x000000010f81e104
gtkosx_application_set_menu_bar + 548
5 XBoard-bin 0x000000010eb0b3d3 GenericPopUp + 12221
6 XBoard-bin 0x000000010eaf1aa3 BoardPopUp + 695
7 XBoard-bin 0x000000010eb02e72 main + 3809
8 libdyld.dylib 0x00007fff90fc65fd start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff8f277e6a __workq_kernreturn +
10
1 libsystem_pthread.dylib 0x00007fff8caa5f08 _pthread_wqthread +
330
2 libsystem_pthread.dylib 0x00007fff8caa8fb9 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8f278662 kevent64 + 10
1 libdispatch.dylib 0x00007fff91ff4421 _dispatch_mgr_invoke
+ 239
2 libdispatch.dylib 0x00007fff91ff4136 _dispatch_mgr_thread
+ 52
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8f277e6a __workq_kernreturn +
10
1 libsystem_pthread.dylib 0x00007fff8caa5f08 _pthread_wqthread +
330
2 libsystem_pthread.dylib 0x00007fff8caa8fb9 start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8f277e6a __workq_kernreturn +
10
1 libsystem_pthread.dylib 0x00007fff8caa5f08 _pthread_wqthread +
330
2 libsystem_pthread.dylib 0x00007fff8caa8fb9 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010f8243a8 rcx: 0x00007fff75b91738
rdx: 0x0000000000000005
rdi: 0x00007fb460c34e40 rsi: 0x0000000000000000 rbp: 0x00007fff51184430
rsp: 0x00007fff51184400
r8: 0x00007fb460c34e40 r9: 0x000000010f824518 r10: 0x00007fb460c34e30
r11: 0x000000010f822650
r12: 0x00007fb460d13140 r13: 0x000000010f8243e8 r14: 0x00007fb460c34e40
r15: 0x0000000000000000
rip: 0x00007fff88378be3 rfl: 0x0000000000000246 cr2: 0x00007fb460d2b000
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 3
Regards,
Josh Pettus
On Oct 2, 2014, at 7:48 PM, John Ralls <[email protected]> wrote:
>
> On Oct 2, 2014, at 4:37 PM, Kevin Bernhagen <[email protected]> wrote:
>
>> Maybe get_application_name() is failing in XBoard?
>
> Possible, but I don’t think it’s likely. It would require displayNameAtPath:
> to return nil, though I suppose if bundlePath returned nil that would make it
> do so or throw, but I don’t think it would cause a memory pool error.
>
> Regards,
> John Ralls
>
_______________________________________________
Gtk-osx-users-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list