Unable to run JavaFX in Processing 4.5.6 MacOS
還沒有人認領這個 Issue。
評估
研究方向
該報告沒有提供可供開始的原始檔、測試或可重現的草圖。使用 Processing 4.5.6 在 macOS 上重現 JavaFX 故障,然後追蹤報告中的 GlassView3D、MacWindow 和 NSTrackingRectTag 堆疊框架。完成的標準是 JavaFX 草圖能夠在不發生所報告的原生當機的情況下執行,且該行為由適當的回歸檢查涵蓋。
由索引模型根據 Issue 內容生成。
描述
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
- 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
- 主要語言
- Java
- 星號
- 497
- 分支
- 183
- 平均合併
- 4 小時 39 分鐘
- 30 天內合併 PR
- 3
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
processing/processing4 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 64/100
processing/processing4#1554 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
processing/processing4#1515 · 1 個 reaction ·
-
bug
難度 3/5 1-2 天 新手友好度 55/100
processing/processing4#1573 ·
-
startup error 未關閉
難度 4/5 3-5 天 新手友好度 25/100
processing/processing4#1569 · 7 則留言 ·
-
Binaries under bin directory lack executable permissions for the snap and .deb packages for Linux 未關閉bug
processing/processing4#1567 · 3 則留言 · 1 個 reaction · 已指派 1 人 ·
查看 processing/processing4 的全部 Issue
相似的 Issue
-
documentation
難度 2/5 1-3 小時 新手友好度 65/100
inu-appcenter/memorIN-backend#288 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
-
frontend maui-pilot pilot-ask question
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
area/plugin
難度 2/5 1-3 小時 新手友好度 75/100
kestra-io/plugin-kestra#190 ·