René's URL Explorer Experiment


Title: FX2D crashes on macOS: bundled JavaFX 17.0.2 has a known libglass bug (`NSTrackingRectTag`); fix is updating JavaFX · Issue #1593 · processing/processing4 · GitHub

Open Graph Title: FX2D crashes on macOS: bundled JavaFX 17.0.2 has a known libglass bug (`NSTrackingRectTag`); fix is updating JavaFX · Issue #1593 · processing/processing4

X Title: FX2D crashes on macOS: bundled JavaFX 17.0.2 has a known libglass bug (`NSTrackingRectTag`); fix is updating JavaFX · Issue #1593 · processing/processing4

Description: Most appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.5.7 Operating system macOS 27.2.1 Bug description On macOS, any sketch using size(w, h, FX2D) crashes when its window is created. This started aro...

Open Graph Description: Most appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.5.7 Operating system macOS 27.2.1 Bug description On macOS, any sketch using size(w, h, FX2D) crashes when...

X Description: Most appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.5.7 Operating system macOS 27.2.1 Bug description On macOS, any sketch using size(w, h, FX2D) crashes when...

Opengraph URL: https://github.com/processing/processing4/issues/1593

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FX2D crashes on macOS: bundled JavaFX 17.0.2 has a known libglass bug (`NSTrackingRectTag`); fix is updating JavaFX","articleBody":"### Most appropriate sub-area of Processing 4?\n\nCore/Environment/Rendering\n\n### Processing version\n\n4.5.7\n\n### Operating system\n\nmacOS 27.2.1\n\n### Bug description\n\nOn macOS, any sketch using `size(w, h, FX2D)` crashes when its window is created. This started around Processing 4.5.2. The JavaFX library from the Contribution Manager (version 1280, \"4.0 beta 5\") still bundles **JavaFX 17.0.2**, and that version has a known macOS bug in its native glass layer.\n\n```\n*** 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.'\n*** First throw call stack:\n(\n\t0   CoreFoundation                      0x00000001932917b0 __exceptionPreprocess + 176\n\t1   libobjc.A.dylib                     0x000000018eeec65c objc_exception_throw + 88\n\t2   Foundation                          0x000000018f7a0538 -[NSCalendarDate initWithCoder:] + 0\n\t3   AppKit                              0x00000001995562a0 -[_NSTrackingAreaAKViewHelper removeTrackingRect:] + 196\n\t4   libglass.dylib                      0x000000014ca1f03c -[GlassViewDelegate setFrameSize:] + 360\n\t5   libglass.dylib                      0x000000014ca24134 -[GlassView3D setFrameSize:] + 92\n\t6   AppKit                              0x0000000198f04134 -[NSView setFrame:] + 320\n\t7   libglass.dylib                      0x000000014ca24194 -[GlassView3D setFrame:] + 76\n\t8   AppKit                              0x0000000198f10bd0 -[NSView resizeWithOldSuperviewSize:] + 496\n\t9   AppKit                              0x0000000198f10564 -[NSView resizeSubviewsWithOldSize:] + 380\n\t10  AppKit                              0x0000000198ef63d4 -[NSView setFrameSize:] + 968\n\t11  AppKit                              0x0000000198f04134 -[NSView setFrame:] + 320\n\t12  AppKit                              0x0000000198f10bd0 -[NSView resizeWithOldSuperviewSize:] + 496\n\t13  AppKit                              0x0000000198f10564 -[NSView resizeSubviewsWithOldSize:] + 380\n\t14  AppKit                              0x0000000198ef63d4 -[NSView setFrameSize:] + 968\n\t15  AppKit                              0x0000000198f0f6d0 -[NSThemeFrame setFrameSize:] + 268\n\t16  AppKit                              0x0000000198f0f018 -[NSWindow _oldPlaceWindow:fromServer:] + 632\n\t17  AppKit                              0x0000000198f0e440 -[NSWindow _setFrameCommon:display:fromServer:] + 1888\n\t18  libglass.dylib                      0x000000014ca2f150 Java_com_sun_glass_ui_mac_MacWindow__1setBounds2 + 416\n\t19  ???                                 0x000000011ab63c20 0x0 + 4743117856\n\t20  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t21  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t22  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t23  ???                                 0x000000011ab5f09c 0x0 + 4743098524\n\t24  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t25  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t26  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t27  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t28  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t29  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t30  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t31  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t32  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t33  ???                                 0x000000011ab5f09c 0x0 + 4743098524\n\t34  ???                                 0x000000011ab5e270 0x0 + 4743094896\n\t35  ???                                 0x00000001137a9278 0x0 + 4621767288\n\t36  ???                                 0x000000011ab5e270 0x0 + 4743094896\n\t37  ???                                 0x000000011ab5e6ac 0x0 + 4743095980\n\t38  ???                                 0x000000011ab5f09c 0x0 + 4743098524\n\t39  ???                                 0x000000011ab58140 0x0 + 4743070016\n\t40  libjvm.dylib                        0x000000010af39cf4 _ZN9JavaCalls11call_helperEP9JavaValueRK12methodHandleP17JavaCallArgumentsP10JavaThread + 984\n\t41  libjvm.dylib                        0x000000010af98f74 _ZL20jni_invoke_nonstaticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP10JavaThread + 916\n\t42  libjvm.dylib                        0x000000010af9d690 jni_CallVoidMethod + 312\n\t43  libglass.dylib                      0x000000014ca1aa58 -[GlassRunnable run] + 92\n\t44  Foundation                          0x000000018f70aea0 __NSThreadPerformPerform + 264\n\t45  CoreFoundation                      0x0000000193221920 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28\n\t46  CoreFoundation                      0x00000001932218b4 __CFRunLoopDoSource0 + 224\n\t47  CoreFoundation                      0x00000001932215ec __CFRunLoopDoSources0 + 232\n\t48  CoreFoundation                      0x00000001932201bc __CFRunLoopRun + 832\n\t49  CoreFoundation                      0x00000001932fac10 _CFRunLoopRunSpecificWithOptions + 536\n\t50  HIToolbox                           0x000000019d9d85e0 RunCurrentEventLoopInMode + 320\n\t51  HIToolbox                           0x000000019d9db96c ReceiveNextEventCommon + 492\n\t52  HIToolbox                           0x000000019db61db8 _BlockUntilNextEventMatchingListInMode + 48\n\t53  AppKit                              0x000000019920c8c0 _DPSBlockUntilNextEventMatchingListInMode + 292\n\t54  AppKit                              0x0000000198ecb59c _DPSNextEvent + 576\n\t55  AppKit                              0x00000001996625f8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 832\n\t56  AppKit                              0x00000001996620e8 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 344\n\t57  libosxapp.dylib                     0x0000000109ec7708 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 136\n\t58  AppKit                              0x0000000198ebe920 -[NSApplication run] + 396\n\t59  libosxapp.dylib                     0x0000000109ec7528 +[NSApplicationAWT runAWTLoopWithApp:] + 132\n\t60  libawt_lwawt.dylib                  0x000000010a1cf524 +[AWTStarter starter:headless:] + 380\n\t61  libosxapp.dylib                     0x0000000109ec8d40 +[ThreadUtilities invokeBlockCopy:] + 28\n\t62  Foundation                          0x000000018f70aea0 __NSThreadPerformPerform + 264\n\t63  CoreFoundation                      0x0000000193221920 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28\n\t64  CoreFoundation                      0x00000001932218b4 __CFRunLoopDoSource0 + 224\n\t65  CoreFoundation                      0x00000001932215ec __CFRunLoopDoSources0 + 232\n\t66  CoreFoundation                      0x00000001932201bc __CFRunLoopRun + 832\n\t67  CoreFoundation                      0x00000001932fac10 _CFRunLoopRunSpecificWithOptions + 536\n\t68  libjli.dylib                        0x0000000105039174 CreateExecutionEnvironment + 404\n\t69  libjli.dylib                        0x0000000105035188 JLI_Launch + 1232\n\t70  java                                0x0000000104ff3b9c main + 408\n\t71  dyld                                0x000000018ef88d7c start + 6652\n)\nlibc++abi: terminating due to uncaught exception of type NSException\nCould not run the sketch (Target VM failed to initialize).\nFor more information, read Help → Troubleshooting.\n```\n\nThe key line is:\n`NSInternalInconsistencyException: 0x0 is an invalid NSTrackingRectTag`\n\n### Root cause\n\n- The bug is in JavaFX's `GlassViewDelegate.m` (`libglass.dylib`), not in Processing or the JDK. It crashes only when the running JDK was built against the macOS 13+ SDK. See [JDK-8296654](https://bugs.openjdk.org/browse/JDK-8296654) / [JDK-8297131](https://bugs.openjdk.org/browse/JDK-8297131).\n- Processing 4.5.x now bundles Temurin 17.0.20.1, which is built that way, so the library's old JavaFX 17.0.2 crashes.\n- Other projects hit the same crash and fixed it by updating JavaFX. Upgrading the JDK did not help them. See [adoptium-support#1043](https://github.com/adoptium/adoptium-support/issues/1043) and [openjfx/javafx-gradle-plugin#182](https://github.com/openjfx/javafx-gradle-plugin/pull/182).\n\n### Proposed fix\n\nIn [processing4-javafx `build.xml`](https://github.com/processing/processing4-javafx/blob/main/build.xml), change `gluon.version` from `17.0.2` to `17.0.21`, the current 17 LTS release, then rebuild and republish the library.\n\nStaying on 17.x keeps the API that `javafx.jar` was compiled against, including its `com.sun.*` usage (processing4-javafx#14). JavaFX 21.0.x should also work with JDK 17 if a bigger jump is preferred.\n\n### Workaround (tested)\n\nIn `libraries/javafx/library/macos-aarch64/`, replace the old JavaFX files with the ones from the Gluon [OpenJFX 17.0.21 SDK](https://gluonhq.com/products/javafx/) for macOS aarch64:\n- the 7 `javafx.*.jar` files in `modules/`\n- all of the `.dylib` files\n\n`javafx.jar` does not need rebuilding. After this change, FX2D sketches run normally.\n\n\n### Steps to reproduce this\n\n1. Use FX2D renderer\n\n\n### snippet\n\n```processing\nimport processing.javafx.*;\n\nvoid setup() {\n  size(400, 400, FX2D);\n}\n\nvoid draw() {\n  ellipse(200, 200, 100, 100);\n}\n```\n\n\n### Additional context\n\nThis issue is separate from earlier JavaFX module and classpath work, but it comes up right after it. Once [#1345](https://github.com/processing/processing4/pull/1345) let FX2D load its modules, sketches now get far enough to create a window and hit this native crash.\n- processing/processing4-javafx#17: Add modules for JavaFX\n- #1327: JavaFX Requires 'code' Folder to Run (closed by #1345)\n\n\n### Would you like to work on the issue?\n\nNo, I’m just reporting the issue","author":{"url":"https://github.com/azalea666","@type":"Person","name":"azalea666"},"datePublished":"2026-11-13T03:12:25Z","url":"https://github.com/processing/processing4/issues/1593"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c4029a4b-828f-0f3b-8766-0e7cbe4f13e6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD508:2F9BC:12DD68:1948E8:6B05F791
html-safe-nonce15ad4d6353926e5f5093425d056dffb5dee9438450c3dad1d0c361b02d1a3312
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTA4OjJGOUJDOjEyREQ2ODoxOTQ4RTg6NkIwNUY3OTEiLCJ2aXNpdG9yX2lkIjoiMjEyMTMxMDAwNzQyNDU3OTQ3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1428c7a64bc657ad93f7cbb16735ca486b27d4888ea71d935b5d7ec8779d28c0
hovercard-subject-tagissue:6363884892
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/processing/processing4/1593/issue_layout
twitter:imagehttps://opengraph.githubassets.com/50b54bedf918f0322747baef63c721cdac1e196eae4b3879a0535194d2b68ec1/processing/processing4/issues/1593
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/50b54bedf918f0322747baef63c721cdac1e196eae4b3879a0535194d2b68ec1/processing/processing4/issues/1593
og:image:altMost appropriate sub-area of Processing 4? Core/Environment/Rendering Processing version 4.5.7 Operating system macOS 27.2.1 Bug description On macOS, any sketch using size(w, h, FX2D) crashes when...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameazalea666
hostnamegithub.com
expected-hostnamegithub.com
Nonec214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece
turbo-cache-controlno-preview
go-importgithub.com/processing/processing4 git https://github.com/processing/processing4.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id844382769
octolytics-dimension-repository_nwoprocessing/processing4
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id844382769
octolytics-dimension-repository_network_root_nwoprocessing/processing4
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7d164a4e71eb333b2b17fd5b17e18efb7855505c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/processing/processing4/issues/1593#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1593
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1593
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=processing%2Fprocessing4
Reloadhttps://github.com/processing/processing4/issues/1593
Reloadhttps://github.com/processing/processing4/issues/1593
Reloadhttps://github.com/processing/processing4/issues/1593
processinghttps://github.com/processing
processing4https://github.com/processing/processing4
Codehttps://github.com/processing/processing4
Issues265 (265)https://github.com/processing/processing4/issues
Pull requests22 (22)https://github.com/processing/processing4/pulls
Actionshttps://github.com/processing/processing4/actions
Projectshttps://github.com/processing/processing4/projects
Wikihttps://github.com/processing/processing4/wiki
Security and qualityhttps://github.com/processing/processing4/security
Insightshttps://github.com/processing/processing4/insights
https://github.com/processing/processing4
New issuehttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1593
New issuehttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1593
FX2D crashes on macOS: bundled JavaFX 17.0.2 has a known libglass bug (NSTrackingRectTag); fix is updating JavaFXhttps://github.com/processing/processing4/issues/1593#top
bughttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/azalea666
azalea666https://github.com/azalea666
on Nov 13, 2026https://github.com/processing/processing4/issues/1593#issue-6363884892
JDK-8296654https://bugs.openjdk.org/browse/JDK-8296654
JDK-8297131https://bugs.openjdk.org/browse/JDK-8297131
adoptium-support#1043https://github.com/adoptium/adoptium-support/issues/1043
openjfx/javafx-gradle-plugin#182https://github.com/openjfx/javafx-gradle-plugin/pull/182
processing4-javafx build.xmlhttps://github.com/processing/processing4-javafx/blob/main/build.xml
OpenJFX 17.0.21 SDKhttps://gluonhq.com/products/javafx/
#1345https://github.com/processing/processing4/pull/1345
Add modules for JavaFX processing4-javafx#17https://github.com/processing/processing4-javafx/issues/17
JavaFX Requires 'code' Folder to Run #1327https://github.com/processing/processing4/issues/1327
Also look into the modules folder for native jars #1345https://github.com/processing/processing4/pull/1345
azalea666https://github.com/azalea666
bughttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22bug%22
on Nov 13, 2026https://github.com/processing/processing4/issues/1593#event-35988268798
https://github.com/vsquared
vsquaredhttps://github.com/vsquared
on Nov 14, 2026https://github.com/processing/processing4/issues/1593#issuecomment-6870225569
https://github.com/azalea666
azalea666https://github.com/azalea666
on Nov 14, 2026https://github.com/processing/processing4/issues/1593#issuecomment-6871350051
https://github.com/vsquared
vsquaredhttps://github.com/vsquared
on Nov 14, 2026https://github.com/processing/processing4/issues/1593#issuecomment-6871603244
Sign up for freehttps://github.com/signup?return_to=https://github.com/processing/processing4/issues/1593
Sign in to commenthttps://github.com/login?return_to=https://github.com/processing/processing4/issues/1593
bughttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.