René's URL Explorer Experiment


Title: OpenGL/3D sketches crash with `UnsatisfiedLinkError` on Linux when the bundled sketch JDK cannot fork+exec · Issue #1537 · processing/processing4 · GitHub

Open Graph Title: OpenGL/3D sketches crash with `UnsatisfiedLinkError` on Linux when the bundled sketch JDK cannot fork+exec · Issue #1537 · processing/processing4

X Title: OpenGL/3D sketches crash with `UnsatisfiedLinkError` on Linux when the bundled sketch JDK cannot fork+exec · Issue #1537 · processing/processing4

Description: Most appropriate sub-area of Processing 4? OpenGL Processing version 4.5.5 Operating system EndeavourOS x86_64 Linux 7.0.5 Bug description Every 3D/OpenGL sketch (P3D, P2D, Lights, OBJ-loading sketches, or anything that using JOGL) fails...

Open Graph Description: Most appropriate sub-area of Processing 4? OpenGL Processing version 4.5.5 Operating system EndeavourOS x86_64 Linux 7.0.5 Bug description Every 3D/OpenGL sketch (P3D, P2D, Lights, OBJ-loading sket...

X Description: Most appropriate sub-area of Processing 4? OpenGL Processing version 4.5.5 Operating system EndeavourOS x86_64 Linux 7.0.5 Bug description Every 3D/OpenGL sketch (P3D, P2D, Lights, OBJ-loading sket...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenGL/3D sketches crash with `UnsatisfiedLinkError` on Linux when the bundled sketch JDK cannot fork+exec","articleBody":"### Most appropriate sub-area of Processing 4?\n\nOpenGL\n\n### Processing version\n\n4.5.5 \n\n### Operating system\n\nEndeavourOS x86_64 Linux 7.0.5\n\n### Bug description\n\nEvery 3D/OpenGL sketch (P3D, P2D, `Lights`, OBJ-loading sketches, or anything that using JOGL) fails at launch:\n\n```\nWarning: Caught Exception while retrieving executable temp base directory:\njava.io.IOException: Could not determine a temporary executable directory\n    at com.jogamp.common.util.IOUtil.getTempDir(IOUtil.java:1401)\n    at com.jogamp.common.util.cache.TempFileCache.\u003cclinit\u003e(TempFileCache.java:84)\n    at com.jogamp.common.os.Platform$1.run(Platform.java:313)\n    ...\njava.lang.UnsatisfiedLinkError: 'boolean jogamp.common.jvm.JVMUtil.initialize(java.nio.ByteBuffer)'\n    at jogamp.common.jvm.JVMUtil.initialize(Native Method)\n    at com.jogamp.common.os.Platform.\u003cclinit\u003e(Platform.java:290)\n    at com.jogamp.opengl.GLProfile.\u003cclinit\u003e(GLProfile.java:151)\n    at processing.opengl.PSurfaceJOGL.initGL(PSurfaceJOGL.java:204)\n    ...\nA library used by this sketch relies on native code that is not available.\n```\n\n2D (Java2D) sketches run fine.\n\n## Findings using Ai Agents\n\nJOGL's `IOUtil.testDirExec()` writes a tiny test script into a temp directory, sets `+x`, and **actually `execve()`s it** to verify the temp dir allows execution. If that exec fails, JOGL's native-lib cache (`TempFileCache`) never starts, and subsequent `JVMUtil.initialize` (a native method) fails with `UnsatisfiedLinkError`.\n\nThe bundled sketch JDK at `resources/jdk` (Temurin 17.0.19) cannot `fork+exec` **anything** even `/bin/true` as a child process, while the system's own JDK on the same machine/user succeeds.\n\nThis was confirmed by running the exact same Java program on both JDKs (Build-in and System):\n\n```\n# bundled Temurin 17 (Build-In):\nnew ProcessBuilder(\"/bin/true\").start()\n→ IOException: Cannot run program \"/bin/true\": error=13, Permission denied\n\n# system OpenJDK 21 (System):\nnew ProcessBuilder(\"/bin/true\").start()\n→ OK exit 0\n```\n\n`error=13` is `EACCES`. This is a per-process exec denial affecting only the bundled binary (same uid, same caps, no seccomp, no AppArmor/SELinux). The exact mechanism applying the denial is unconfirmed (likely a Landlock restriction from the environment, not from the JVM itself, perhaps the bundled libjvm does not reference landlock symbols).\n\n## Why `Platform.getJavaHome()` can't recover\n\n`processing/app/Platform.getJavaHome()` either returns `resources/jdk` (the broken bundle) or falls back to `java.home` (the IDE's own runtime at `lib/runtime/`). On the jpackage-based Linux install the IDE runtime has **no `bin/java`** (the launcher loads the JVM in-process via `libjli.so`, so a standalone `java` binary is not shipped in that tree). The fallback is therefore dead on Linux: removing `resources/jdk` gives a \"file not found\" error instead of working.\n\nNo preference or environment variable is read for the sketch JDK path — confirmed by decompiling `Platform`, `Runner`, and `JavaBuild`.\n\n## Affected file(s)\n\n- `processing/app/Platform.java` — `getJavaHome()` and `getJavaPath()`\n\n## Suggested fix direction\n\nBefore returning the bundled `resources/jdk` from `getJavaHome()`, validate it can launch a child process (one-shot `Runtime.exec(\"/bin/true\")`). When it fails:\n\n1. Honor `JAVA_HOME` / `JDK_HOME` env vars or a `runtime.java.path` preference **before** the bundled JDK, so users can override a broken bundle.\n2. On Linux, probe a system JDK (`/usr/lib/jvm/default-runtime`, `update-alternatives --list java`, `archlinux-java`) as the fallback before giving up.\n3. Report a clear message when no working JDK is found, instead of letting the crash surface as an opaque `UnsatisfiedLinkError` from JOGL.\n\n## Verified workaround\n\n```bash\nsudo mv resources/jdk resources/jdk.broken\nsudo ln -s /usr/lib/jvm/{any installed JDK} resources/jdk\n```\n\nAfter this, JOGL initializes cleanly (`GLProfile init OK`, GL 4.6 hardware detected) and all 3D sketches render.\n\n### Steps to reproduce this\n\n1. Run any 3D/OpenGL sketch (P3D, P2D, `Lights`, OBJ-loading sketches, or anything that using JOGL\n\n2. Crash\n\n### snippet\n\nUsing OnOff sketch template\n```processing\n\n/**\n * On/Off.  \n * \n * Uses the default lights to show a simple box. The lights() function\n * is used to turn on the default lighting. Click the mouse to turn the\n * lights off.\n */\n \nfloat spin = 0.0;\n\nvoid setup() {\n  size(640, 360, P3D);\n  noStroke();\n}\n\nvoid draw() {\n  background(51);\n  \n  if (!mousePressed) {\n    lights();\n  }\n  \n  spin += 0.01;\n  \n  pushMatrix();\n  translate(width/2, height/2, 0);\n  rotateX(PI/9);\n  rotateY(PI/5 + spin);\n  box(150);\n  popMatrix();\n}```\n\n\n### Additional context\n\n## Environment\n\n- Arch Linux, kernel 7.0.5-arch1-1-g14\n- Processing 4.5.5, bundled sketch JDK Temurin 17.0.19+10\n- System JDK: OpenJDK 21.0.11 at `/usr/lib/jvm/java-21-openjdk`\n- `/tmp`: `tmpfs (rw,noatime)` — not `noexec`\n\n\n### Would you like to work on the issue?\n\nYes, I’d like to help with this","author":{"url":"https://github.com/ZanDev32","@type":"Person","name":"ZanDev32"},"datePublished":"2026-07-06T04:22:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1537/processing4/issues/1537"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2f00b33c-7185-71ce-a1a9-cbd80bd0a741
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9196:B1D4C:49A3BA3:5FFA7BB:6A5D48FA
html-safe-nonced386f3cf432b2744905a33f40509adfc0809d3938dfe21f802fdc70632a58477
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTk2OkIxRDRDOjQ5QTNCQTM6NUZGQTdCQjo2QTVENDhGQSIsInZpc2l0b3JfaWQiOiI4MDE5MjM0NDYyMDcxODY3NjQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaceb843e9f1ecf97d0009f693608cf6094a0cbf4645c46a5a9783092e95272dc82
hovercard-subject-tagissue:4815927252
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/1537/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1449a59bbcebe32ccb58fab78ce5aa8d8088639aba4ce6367a1e02e4812221c4/processing/processing4/issues/1537
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1449a59bbcebe32ccb58fab78ce5aa8d8088639aba4ce6367a1e02e4812221c4/processing/processing4/issues/1537
og:image:altMost appropriate sub-area of Processing 4? OpenGL Processing version 4.5.5 Operating system EndeavourOS x86_64 Linux 7.0.5 Bug description Every 3D/OpenGL sketch (P3D, P2D, Lights, OBJ-loading sket...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameZanDev32
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/processing4/issues/1537#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1537
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Fprocessing4%2Fissues%2F1537
Sign up https://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/1537
Reloadhttps://github.com/processing/processing4/issues/1537
Reloadhttps://github.com/processing/processing4/issues/1537
Please reload this pagehttps://github.com/processing/processing4/issues/1537
processing https://github.com/processing
processing4https://github.com/processing/processing4
Please reload this pagehttps://github.com/processing/processing4/issues/1537
Notifications https://github.com/login?return_to=%2Fprocessing%2Fprocessing4
Fork 175 https://github.com/login?return_to=%2Fprocessing%2Fprocessing4
Star 442 https://github.com/login?return_to=%2Fprocessing%2Fprocessing4
Code https://github.com/processing/processing4
Issues 248 https://github.com/processing/processing4/issues
Pull requests 26 https://github.com/processing/processing4/pulls
Actions https://github.com/processing/processing4/actions
Projects https://github.com/processing/processing4/projects
Wiki https://github.com/processing/processing4/wiki
Security and quality 0 https://github.com/processing/processing4/security
Insights https://github.com/processing/processing4/pulse
Code https://github.com/processing/processing4
Issues https://github.com/processing/processing4/issues
Pull requests https://github.com/processing/processing4/pulls
Actions https://github.com/processing/processing4/actions
Projects https://github.com/processing/processing4/projects
Wiki https://github.com/processing/processing4/wiki
Security and quality https://github.com/processing/processing4/security
Insights https://github.com/processing/processing4/pulse
#1542https://github.com/processing/processing4/pull/1542
OpenGL/3D sketches crash with UnsatisfiedLinkError on Linux when the bundled sketch JDK cannot fork+exechttps://github.com/processing/processing4/issues/1537#top
#1542https://github.com/processing/processing4/pull/1542
https://github.com/ZanDev32
bugSomething isn't workinghttps://github.com/processing/processing4/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/ZanDev32
ZanDev32https://github.com/ZanDev32
on Jul 6, 2026https://github.com/processing/processing4/issues/1537#issue-4815927252
ZanDev32https://github.com/ZanDev32
bugSomething isn't workinghttps://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

Viewport: width=device-width


URLs of crawlers that visited me.