[Ipe-discuss] Segfault on OSX in page changer
Tim Hutt
tdhutt at gmail.com
Fri Jul 21 12:37:38 CEST 2017
When randomly pressing buttons I was happy to find the new (or not?)
page selection interface when you press 'J'. Unfortunately when I try
to use it it reliably crashes.
To reproduce:
1. Open IPE
2. Pages -> New Page
3. Press J
4. Click the first page.
The information from Apple's crash dialog (IPE and OSX versions
included) is below. Looking at the backtrace it seems like it might be
something to do with the touchbar.
Here's the same bug in another program:
https://github.com/racket/racket/issues/1520
And their fix: https://github.com/racket/gui/commit/b9e94f9c45e070beca79b286c6c47a325b38dbdb
I would guess the fix for IPE is to change main_cocoa.cpp:118 from this:
@interface AppDelegate : NSObject <NSApplicationDelegate>
to this:
@interface AppDelegate : NSObject
It compiles, but unfortunately I can't test it because IPE gives me an
error about a missing Info.plist when I try to run it.
Cheers,
Tim
--------------------------------------------------------
Process: ipe [96865]
Path: /Applications/Ipe.app/Contents/MacOS/ipe
Identifier: org.otfried.ipe.Ipe
Version: 7.2.7 (7.2.7)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: ipe [96865]
User ID: 501
Date/Time: 2017-07-21 11:08:58.012 +0100
OS Version: Mac OS X 10.12.5 (16F73)
Report Version: 12
Anonymous UUID: EACDAC31-981D-DF13-7B36-DE7BE4874695
Sleep/Wake UUID: 461DC259-0014-4274-A8A0-A205284B94AE
Time Awake Since Boot: 100000 seconds
Time Since Wake: 67000 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000041a5e1debec0
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x41a5e1debec0:
CG backing stores 000000011495c000-00000001150e9000 [ 7732K]
rw-/rw- SM=PRV
-->
MALLOC_NANO 0000600000000000-0000600000c00000 [ 12.0M]
rw-/rwx SM=PRV
Application Specific Information:
objc_msgSend() selector name: hash
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fffc0dff05d objc_msgSend + 29
1 com.apple.CoreFoundation 0x00007fffabefcd01
CFBasicHashFindBucket + 705
2 com.apple.CoreFoundation 0x00007fffabfea636
-[__NSOrderedSetM containsObject:] + 38
3 com.apple.AppKit 0x00007fffaa11a287 addProviders + 112
4 com.apple.AppKit 0x00007fffaa11a105
+[NSTouchBarFinder _currentProviders] + 263
5 com.apple.AppKit 0x00007fffaa11abf5
-[NSTouchBarFinder _update] + 302
6 com.apple.AppKit 0x00007fffaa11b28e
__36-[NSTouchBarFinder __setNeedsUpdate]_block_invoke + 56
7 com.apple.CoreFoundation 0x00007fffabf97d37
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
8 com.apple.CoreFoundation 0x00007fffabf97ca7
__CFRunLoopDoObservers + 391
9 com.apple.CoreFoundation 0x00007fffabf780f9 CFRunLoopRunSpecific + 393
10 com.apple.HIToolbox 0x00007fffab4d9ebc
RunCurrentEventLoopInMode + 240
11 com.apple.HIToolbox 0x00007fffab4d9bf9
ReceiveNextEventCommon + 184
12 com.apple.HIToolbox 0x00007fffab4d9b26
_BlockUntilNextEventMatchingListInModeWithFilter + 71
13 com.apple.AppKit 0x00007fffa9a72a54 _DPSNextEvent + 1120
14 com.apple.AppKit 0x00007fffaa1ee7ee
-[NSApplication(NSEvent)
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
15 com.apple.AppKit 0x00007fffa9a673db -[NSApplication run] + 926
16 com.apple.AppKit 0x00007fffa9a31e0e NSApplicationMain + 1237
17 libdyld.dylib 0x00007fffc16f2235 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fffc182144e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffc190b621 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffc190b07d start_wqthread + 13
Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fffc181934a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffc1818797 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffabf79434
__CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffabf788c1 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffabf78114 CFRunLoopRunSpecific + 420
5 com.apple.AppKit 0x00007fffa9bbff02 _NSEventThread + 205
6 libsystem_pthread.dylib 0x00007fffc190b93b _pthread_body + 180
7 libsystem_pthread.dylib 0x00007fffc190b887 _pthread_start + 286
8 libsystem_pthread.dylib 0x00007fffc190b08d thread_start + 13
Thread 3:: com.apple.coreanimation.render-server
0 libsystem_kernel.dylib 0x00007fffc181934a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffc1818797 mach_msg + 55
2 com.apple.QuartzCore 0x00007fffb1b59bf0
CA::Render::Server::server_thread(void*) + 272
3 com.apple.QuartzCore 0x00007fffb1c0a3af thread_fun + 25
4 libsystem_pthread.dylib 0x00007fffc190b93b _pthread_body + 180
5 libsystem_pthread.dylib 0x00007fffc190b887 _pthread_start + 286
6 libsystem_pthread.dylib 0x00007fffc190b08d thread_start + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fffc182144e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffc190b621 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffc190b07d start_wqthread + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fffc182144e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffc190b621 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffc190b07d start_wqthread + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fffc182144e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffc190b621 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffc190b07d start_wqthread + 13
Thread 7:
0 libsystem_kernel.dylib 0x00007fffc182144e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffc190b621 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffc190b07d start_wqthread + 13
Thread 8:
0 libsystem_pthread.dylib 0x00007fffc190b070 start_wqthread + 0
1 ??? 0x3eaaaaaa3eaaaaaa 0 + 4515609224564877994
Thread 9:
0 libsystem_kernel.dylib 0x00007fffc182144e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffc190b48e _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fffc190b07d start_wqthread + 13
Thread 10:
0 libsystem_pthread.dylib 0x00007fffc190b070 start_wqthread + 0
1 ??? 0x3eaaaaaa3eaaaaaa 0 + 4515609224564877994
Thread 11:
0 libsystem_kernel.dylib 0x00007fffc182144e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffc190b621 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffc190b07d start_wqthread + 13
Thread 12:
0 libsystem_pthread.dylib 0x00007fffc190b070 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007fffabf88250 rbx: 0x00007fff5c05aee0 rcx:
0x0000000000000001 rdx: 0x00007fffc6fa29e0
rdi: 0x000061800001e940 rsi: 0x00007fffaa69121e rbp:
0x00007fff5c05aed0 rsp: 0x00007fff5c05ae48
r8: 0x000060000024d710 r9: 0x0000000000000001 r10:
0x000041a5e1debea8 r11: 0x00007fffaa69121e
r12: 0x0000000000000003 r13: 0x000061800001e940 r14:
0x0000000000000001 r15: 0x000060000024d710
rip: 0x00007fffc0dff05d rfl: 0x0000000000010202 cr2: 0x000041a5e1debec0
Logical CPU: 0
Error Code: 0x00000004
Trap Number: 14
More information about the Ipe-discuss
mailing list