-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGL sketches crash on the aarch64
(Apple Silicon) version
#370
Comments
Created by: benfry Thanks for looking into it, good to know… That could be a problem in the JOGL build that I made not properly supporting NEWT. Which could be good news in some ways (maybe I did something dumb), or bad news in others (NEWT may need more complicated changes for |
Created by: benfry Confirming the crash inside NEWT for us (this is
That's inside |
Created by: benfry Though perhaps interestingly, public static void setWindowIcons(ClassResources var0) {
defaultWindowIcons = var0;
} …so it seems there's something in the static initialization of the NEWT code that's causing trouble. Which also means it could be pretty early in loading the native library. |
Created by: benfry The And the result of that is also in a Maven repository:
However, swapping these in still leaves a crash in the same place when initializing a Processing sketch. I'd have to check whether it's the same for NEWT demos. |
Created by: benfry Ok, and confirming that the NEWT demos crash the same way, using my build and the jzy3d builds. Start the debugger:
Commands given to the debugger:
And finally:
…as the last line before the crash. Or for the full trace:
also CCing @codeanticode for the progress update… |
Created by: benfry Oh, and when run with appbundler, we get the full macOS crash thing, with this possible clue in the details:
|
Created by: benfry Sounds like good progress! Though fragile :) |
Created by: benfry Hm, also seeing similar framebuffer errors when running the Intel version on an M1 Max:
|
Created by: benfry @jaegonlee Does the |
Created by: jaegonlee @benfry some errors occur (as you mentioned above) when launching, but codes are running without problems.
|
Created by: benfry And I'm guessing keys are disabled as well (or at least keys that aren't just a-z and 0-9) because it's skipping the function to set up the mappings? |
Created by: jaegonlee Calling MacNewtNSWindow.m(jogl/src/newt/native)
key mapping is ok now. |
Created by: jaegonlee I could fix the problem with newt window. MacOSXWindowSystemInterface.m(jogl/src/jogl/native/macosx/)
no need to |
Created by: benfry Fantastic! This is exactly what we're looking for. I'll take a look at patching that up and if it works, maybe we'll push out a new beta. This would be huge! |
Created by: codeanticode Nice, I have been following this issue looks you have made great progress. Thanks a lot @jaegonlee !! |
Created by: benfry Ok, with the help of @jaegonlee's patches: …I was able to hack together a working JOGL for ARM for 4.0 beta 8. 🎉 |
Created by: benfry To build from an (already existing) git clone, you'll need to clear out the old JOGL libraries:
then do a fresh build:
|
Created by: github-actions[bot] This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs. |
Created by: benfry
From the release notes for 4.0 beta 4:
This may simply be due to #284 which itself may be a known upstream bug: TheInfiniteKind/appbundler#70
The text was updated successfully, but these errors were encountered: