I just finished a project I have been working on and exported it to a macOS application. When I tried to run it the app didn’t open and the system threw the following error:
Process: DungeonCrawler [21042]
Path: /Users/USER/Documents/*/DungeonCrawler.app/Contents/MacOS/DungeonCrawler
Identifier: DungeonCrawler
Version: 1 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: DungeonCrawler [21042]
User ID: 501
Date/Time: 2020-08-04 22:13:20.841 -0500
OS Version: Mac OS X 10.14.6 (18G4032)
Report Version: 12
Bridge OS Version: 3.0 (14Y906)
Anonymous UUID: numbers and letters
Sleep/Wake UUID: numbers and letters
Time Awake Since Boot: 290000 seconds
Time Since Wake: 1200 seconds
System Integrity Protection: enabled
Crashed Thread: 4
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘NSWindow drag regions should only be invalidated on the Main Thread!’
terminating with uncaught exception of type NSException
abort() called
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff484d2acd __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff72bb1a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff484ec629 -[NSException raise] + 9
3 AppKit 0x00007fff45a915ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
4 AppKit 0x00007fff45a8e9f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
5 AppKit 0x00007fff45a8e42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
6 libnativewindow_macosx.jnilib 0x000000012cb553fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
7 ??? 0x000000011922b667 0x0 + 4716672615
There is a very long trace of different threads that follow the above error information.
I use Processing’s thread() function quite a bit and this is the first time I have used it. Could it be the issue after exporting the app?
I’m using the following libraries:
import java.util.*;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.FileReader;
import processing.sound.*;
This is my first time using processing.sound. Could it be the problem?
The specific thread that crashed has these error messages.
Thread 5 Crashed:
0 libsystem_kernel.dylib 0x00007fff744bb2c2 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff74576bf1 pthread_kill + 284
2 libsystem_c.dylib 0x00007fff744256a6 abort + 127
3 libc++abi.dylib 0x00007fff71600641 abort_message + 231
4 libc++abi.dylib 0x00007fff716007df default_terminate_handler() + 267
5 libobjc.A.dylib 0x00007fff72bb3ee3 _objc_terminate() + 97
6 libc++abi.dylib 0x00007fff7160c19e std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff7160bf86 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27
8 libc++abi.dylib 0x00007fff715fef99 __cxa_throw + 113
9 libobjc.A.dylib 0x00007fff72bb1b51 objc_exception_throw + 362
10 com.apple.CoreFoundation 0x00007fff484ec629 -[NSException raise] + 9
11 com.apple.AppKit 0x00007fff45a915ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
12 com.apple.AppKit 0x00007fff45a8e9f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
13 com.apple.AppKit 0x00007fff45a8e42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
14 libnativewindow_macosx.jnilib 0x00000001219f03fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
15 ??? 0x0000000103ee0667 0 + 4360898151
16 ??? 0x0000000103ecfdd0 0 + 4360830416
17 ??? 0x0000000103ecfdd0 0 + 4360830416
18 ??? 0x0000000103ed0302 0 + 4360831746
19 ??? 0x0000000103ed0302 0 + 4360831746
20 ??? 0x0000000103ed0302 0 + 4360831746
21 ??? 0x0000000103ed0040 0 + 4360831040
22 ??? 0x0000000103ed0040 0 + 4360831040
23 ??? 0x0000000103ed0040 0 + 4360831040
24 ??? 0x0000000103ecfa90 0 + 4360829584
25 ??? 0x0000000103ecfa90 0 + 4360829584
26 ??? 0x0000000103ecfa90 0 + 4360829584
27 ??? 0x0000000103ecfa90 0 + 4360829584
28 ??? 0x0000000103ed02bd 0 + 4360831677
29 ??? 0x0000000103ed02bd 0 + 4360831677
30 ??? 0x0000000103ec87a7 0 + 4360800167
31 libjvm.dylib 0x000000010255ed1e JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710
32 libjvm.dylib 0x00000001025bf60e JVM_DoPrivileged + 1208
33 ??? 0x0000000103ee0667 0 + 4360898151
34 ??? 0x0000000103ed0040 0 + 4360831040
35 ??? 0x0000000103ed02bd 0 + 4360831677
36 ??? 0x0000000103ed0040 0 + 4360831040
37 ??? 0x0000000103ed0040 0 + 4360831040
38 ??? 0x0000000103ed0040 0 + 4360831040
39 ??? 0x0000000103ed02bd 0 + 4360831677
40 ??? 0x0000000103ed0302 0 + 4360831746
41 ??? 0x0000000103ed0040 0 + 4360831040
42 ??? 0x0000000103ed02bd 0 + 4360831677
43 ??? 0x0000000103ed02bd 0 + 4360831677
44 ??? 0x0000000103ec87a7 0 + 4360800167
45 libjvm.dylib 0x000000010255ed1e JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 1710
46 libjvm.dylib 0x0000000102595cc5 jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) + 447
47 libjvm.dylib 0x000000010258ea51 jni_CallStaticVoidMethod + 349
48 libjli.dylib 0x00000001021d7d56 JavaMain + 2500
49 libsystem_pthread.dylib 0x00007fff745742eb _pthread_body + 126
50 libsystem_pthread.dylib 0x00007fff74577249 _pthread_start + 66
51 libsystem_pthread.dylib 0x00007fff7457340d thread_start + 13
Update:
I decided to change the renderer from P2D to processings built-in renderer and it is working just fine now. I’m still not sure what the exact problem was, but I’m glad it’s working now.
I’m getting this exact error for my application too… Need a solution 