Skip to content

Unable to run JavaFX in Processing 4.5.6 MacOS #1561

Description

@vsquared

Most appropriate sub-area of Processing 4?

Core/Environment/Rendering

Processing version

4.5.6

Operating system

MacOS

Bug description

Test code:

Error Message:
Aug 05, 2026 1:14:08 PM com.sun.glass.ui.mac.MacApplication lambda$waitForReactivation$6 WARNING: Timeout while waiting for app reactivation *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '0x0 is an invalid NSTrackingRectTag. Common possible reasons for this are: 1. already removed this trackingRectTag, 2. Truncated the NSTrackingRectTag to 32bit at some point.' *** First throw call stack: ( 0 CoreFoundation 0x000000018e9a11c0 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000018e42a91c objc_exception_throw + 88 2 Foundation 0x000000019022f330 -[NSCalendarDate initWithCoder:] + 0 3 AppKit 0x00000001937ffb78 -[_NSTrackingAreaAKViewHelper removeTrackingRect:] + 200 4 libglass.dylib 0x000000010981703c -[GlassViewDelegate setFrameSize:] + 360 5 libglass.dylib 0x000000010981c134 -[GlassView3D setFrameSize:] + 92 6 AppKit 0x0000000192d98434 -[NSView setFrame:] + 300 7 libglass.dylib 0x000000010981c194 -[GlassView3D setFrame:] + 76 8 AppKit 0x0000000192da4f8c -[NSView resizeWithOldSuperviewSize:] + 488 9 AppKit 0x0000000192da4928 -[NSView resizeSubviewsWithOldSize:] + 360 10 AppKit 0x0000000192d8a9ac -[NSView setFrameSize:] + 920 11 AppKit 0x0000000192d98434 -[NSView setFrame:] + 300 12 AppKit 0x0000000192da4f8c -[NSView resizeWithOldSuperviewSize:] + 488 13 AppKit 0x0000000192da4928 -[NSView resizeSubviewsWithOldSize:] + 360 14 AppKit 0x0000000192d8a9ac -[NSView setFrameSize:] + 920 15 AppKit 0x0000000192da3a60 -[NSThemeFrame setFrameSize:] + 264 16 AppKit 0x0000000192da33a0 -[NSWindow _oldPlaceWindow:fromServer:] + 612 17 AppKit 0x0000000192da2868 -[NSWindow _setFrameCommon:display:fromServer:] + 1876 18 libglass.dylib 0x0000000109827150 Java_com_sun_glass_ui_mac_MacWindow__1setBounds2 + 416 19 ??? 0x0000000119eafbe0 0x0 + 4729797600 20 ??? 0x0000000119eaa6ac 0x0 + 4729775788 21 ??? 0x0000000119eaa6ac 0x0 + 4729775788 22 ??? 0x0000000119eaa6ac 0x0 + 4729775788 23 ??? 0x0000000119eab09c 0x0 + 4729778332 24 ??? 0x0000000119eaa6ac 0x0 + 4729775788 25 ??? 0x0000000119eaa6ac 0x0 + 4729775788 26 ??? 0x0000000119eaa6ac 0x0 + 4729775788 27 ??? 0x0000000119eaa6ac 0x0 + 4729775788 28 ??? 0x0000000119eaa6ac 0x0 + 4729775788 29 ??? 0x0000000119eaa6ac 0x0 + 4729775788 30 ??? 0x0000000119eaa6ac 0x0 + 4729775788 31 ??? 0x0000000119eaa6ac 0x0 + 4729775788 32 ??? 0x0000000119eaa6ac 0x0 + 4729775788 33 ??? 0x0000000119eab09c 0x0 + 4729778332 34 ??? 0x0000000119eaa270 0x0 + 4729774704 35 ??? 0x0000000112af3ef8 0x0 + 4608442104 36 ??? 0x0000000119eaa270 0x0 + 4729774704 37 ??? 0x0000000119eaa6ac 0x0 + 4729775788 38 ??? 0x0000000119eab09c 0x0 + 4729778332 39 ??? 0x0000000119ea4140 0x0 + 4729749824 40 libjvm.dylib 0x000000010a28a1f4 _ZN9JavaCalls11call_helperEP9JavaValueRK12methodHandleP17JavaCallArgumentsP10JavaThread + 984 41 libjvm.dylib 0x000000010a2e9574 _ZL20jni_invoke_nonstaticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP10JavaThread + 916 42 libjvm.dylib 0x000000010a2edc90 jni_CallVoidMethod + 312 43 libglass.dylib 0x0000000109812a58 -[GlassRunnable run] + 92 44 Foundation 0x000000019019aadc __NSThreadPerformPerform + 264 45 CoreFoundation 0x000000018e932f30 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 46 CoreFoundation 0x000000018e932ec4 __CFRunLoopDoSource0 + 172 47 CoreFoundation 0x000000018e932c30 __CFRunLoopDoSources0 + 232 48 CoreFoundation 0x000000018e931854 __CFRunLoopRun + 820 49 CoreFoundation 0x000000018ea041c4 _CFRunLoopRunSpecificWithOptions + 532 50 HIToolbox 0x000000019b717560 RunCurrentEventLoopInMode + 320 51 HIToolbox 0x000000019b71a8bc ReceiveNextEventCommon + 488 52 HIToolbox 0x000000019b8a414c _BlockUntilNextEventMatchingListInMode + 48 53 AppKit 0x000000019340c35c _DPSBlockUntilNextEventMatchingListInMode + 228 54 AppKit 0x0000000192d60084 _DPSNextEvent + 576 55 AppKit 0x00000001938f58b0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688 56 AppKit 0x00000001938f55bc -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 72 57 AppKit 0x0000000192d5313c -[NSApplication run] + 368 58 libglass.dylib 0x0000000109814be0 -[GlassApplication runLoop:] + 1996 59 Foundation 0x000000019019aadc __NSThreadPerformPerform + 264 60 CoreFoundation 0x000000018e932f30 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 61 CoreFoundation 0x000000018e932ec4 __CFRunLoopDoSource0 + 172 62 CoreFoundation 0x000000018e932c30 __CFRunLoopDoSources0 + 232 63 CoreFoundation 0x000000018e931854 __CFRunLoopRun + 820 64 CoreFoundation 0x000000018ea041c4 _CFRunLoopRunSpecificWithOptions + 532 65 libjli.dylib 0x00000001041a5174 CreateExecutionEnvironment + 404 66 libjli.dylib 0x00000001041a11a0 JLI_Launch + 1232 67 java 0x000000010415fb9c main + 408 68 dyld 0x000000018e4b7e00 start + 6992 ) 2026-08-05 13:14:08.182 java[5379:8111238] Apple AWT Internal Exception: 0x0 is an invalid NSTrackingRectTag. Common possible reasons for this are: 1. already removed this trackingRectTag, 2. Truncated the NSTrackingRectTag to 32bit at some point. 2026-08-05 13:14:08.182 java[5379:8111238] trace: ( 0 CoreFoundation 0x000000018e9a11c0 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000018e42a91c objc_exception_throw + 88 2 Foundation 0x000000019022f330 -[NSCalendarDate initWithCoder:] + 0 3 AppKit 0x00000001937ffb78 -[_NSTrackingAreaAKViewHelper removeTrackingRect:] + 200 4 libglass.dylib 0x000000010981703c -[GlassViewDelegate setFrameSize:] + 360 5 libglass.dylib 0x000000010981c134 -[GlassView3D setFrameSize:] + 92 6 AppKit 0x0000000192d98434 -[NSView setFrame:] + 300 7 libglass.dylib 0x000000010981c194 -[GlassView3D setFrame:] + 76 8 AppKit 0x0000000192da4f8c -[NSView resizeWithOldSuperviewSize:] + 488 9 AppKit 0x0000000192da4928 -[NSView resizeSubviewsWithOldSize:] + 360 10 AppKit 0x0000000192d8a9ac -[NSView setFrameSize:] + 920 11 AppKit 0x0000000192d98434 -[NSView setFrame:] + 300 12 AppKit 0x0000000192da4f8c -[NSView resizeWithOldSuperviewSize:] + 488 13 AppKit 0x0000000192da4928 -[NSView resizeSubviewsWithOldSize:] + 360 14 AppKit 0x0000000192d8a9ac -[NSView setFrameSize:] + 920 15 AppKit 0x0000000192da3a60 -[NSThemeFrame setFrameSize:] + 264 16 AppKit 0x0000000192da33a0 -[NSWindow _oldPlaceWindow:fromServer:] + 612 17 AppKit 0x0000000192da2868 -[NSWindow _setFrameCommon:display:fromServer:] + 1876 18 libglass.dylib 0x0000000109827150 Java_com_sun_glass_ui_mac_MacWindow__1setBounds2 + 416 19 ??? 0x0000000119eafbe0 0x0 + 4729797600 20 ??? 0x0000000119eaa6ac 0x0 + 4729775788 21 ??? 0x0000000119eaa6ac 0x0 + 4729775788 22 ??? 0x0000000119eaa6ac 0x0 + 4729775788 23 ??? 0x0000000119eab09c 0x0 + 4729778332 24 ??? 0x0000000119eaa6ac 0x0 + 4729775788 25 ??? 0x0000000119eaa6ac 0x0 + 4729775788 26 ??? 0x0000000119eaa6ac 0x0 + 4729775788 27 ??? 0x0000000119eaa6ac 0x0 + 4729775788 28 ??? 0x0000000119eaa6ac 0x0 + 4729775788 29 ??? 0x0000000119eaa6ac 0x0 + 4729775788 30 ??? 0x0000000119eaa6ac 0x0 + 4729775788 31 ??? 0x0000000119eaa6ac 0x0 + 4729775788 32 ??? 0x0000000119eaa6ac 0x0 + 4729775788 33 ??? 0x0000000119eab09c 0x0 + 4729778332 34 ??? 0x0000000119eaa270 0x0 + 4729774704 35 ??? 0x0000000112af3ef8 0x0 + 4608442104 36 ??? 0x0000000119eaa270 0x0 + 4729774704 37 ??? 0x0000000119eaa6ac 0x0 + 4729775788 38 ??? 0x0000000119eab09c 0x0 + 4729778332 39 ??? 0x0000000119ea4140 0x0 + 4729749824 40 libjvm.dylib 0x000000010a28a1f4 _ZN9JavaCalls11call_helperEP9JavaValueRK12methodHandleP17JavaCallArgumentsP10JavaThread + 984 41 libjvm.dylib 0x000000010a2e9574 _ZL20jni_invoke_nonstaticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP10JavaThread + 916 42 libjvm.dylib 0x000000010a2edc90 jni_CallVoidMethod + 312 43 libglass.dylib 0x0000000109812a58 -[GlassRunnable run] + 92 44 Foundation 0x000000019019aadc __NSThreadPerformPerform + 264 45 CoreFoundation 0x000000018e932f30 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 46 CoreFoundation 0x000000018e932ec4 __CFRunLoopDoSource0 + 172 47 CoreFoundation 0x000000018e932c30 __CFRunLoopDoSources0 + 232 48 CoreFoundation 0x000000018e931854 __CFRunLoopRun + 820 49 CoreFoundation 0x000000018ea041c4 _CFRunLoopRunSpecificWithOptions + 532 50 HIToolbox 0x000000019b717560 RunCurrentEventLoopInMode + 320 51 HIToolbox 0x000000019b71a8bc ReceiveNextEventCommon + 488 52 HIToolbox 0x000000019b8a414c _BlockUntilNextEventMatchingListInMode + 48 53 AppKit 0x000000019340c35c _DPSBlockUntilNextEventMatchingListInMode + 228 54 AppKit 0x0000000192d60084 _DPSNextEvent + 576 55 AppKit 0x00000001938f58b0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688 56 AppKit 0x00000001938f55bc -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 72 57 AppKit 0x0000000192d5313c -[NSApplication run] + 368 58 libglass.dylib 0x0000000109814be0 -[GlassApplication runLoop:] + 1996 59 Foundation 0x000000019019aadc __NSThreadPerformPerform + 264 60 CoreFoundation 0x000000018e932f30 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 61 CoreFoundation 0x000000018e932ec4 __CFRunLoopDoSource0 + 172 62 CoreFoundation 0x000000018e932c30 __CFRunLoopDoSources0 + 232 63 CoreFoundation 0x000000018e931854 __CFRunLoopRun + 820 64 CoreFoundation 0x000000018ea041c4 _CFRunLoopRunSpecificWithOptions + 532 65 libjli.dylib 0x00000001041a5174 CreateExecutionEnvironment + 404 66 libjli.dylib 0x00000001041a11a0 JLI_Launch + 1232 67 java 0x000000010415fb9c main + 408 68 dyld 0x000000018e4b7e00 start + 6992 ) libc++abi: terminating due to uncaught exception of type NSException Could not run the sketch (Target VM failed to initialize). Make sure that you haven't set the maximum available memory too high. For more information, read Help → Troubleshooting.

Steps to reproduce this

  1. Try running source code below.

snippet

import processing.javafx.*;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;

void setup(){
  size(1,1, FX2D);
  Stage stage = new Stage();
  stage.setTitle("JavaFX Demo");
  Pane pane = new Pane(); 
  Scene scene = new Scene(pane, 400, 400);
  stage.setScene(scene);
  stage.show();  
}

Additional context

No response

Would you like to work on the issue?

No, I’m just reporting the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions