-
Notifications
You must be signed in to change notification settings - Fork 237
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
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 |
Confirming the crash inside NEWT for us (this is
That's inside |
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. |
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. |
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… |
Oh, and when run with appbundler, we get the full macOS crash thing, with this possible clue in the details:
|
Sounds like good progress! Though fragile :) |
Hm, also seeing similar framebuffer errors when running the Intel version on an M1 Max:
|
@jaegonlee Does the |
@benfry some errors occur (as you mentioned above) when launching, but codes are running without problems.
|
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? |
Calling MacNewtNSWindow.m(jogl/src/newt/native)
key mapping is ok now. |
I could fix the problem with newt window. MacOSXWindowSystemInterface.m(jogl/src/jogl/native/macosx/)
no need to |
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! |
Nice, I have been following this issue looks you have made great progress. Thanks a lot @jaegonlee !! |
Ok, with the help of @jaegonlee's patches:
…I was able to hack together a working JOGL for ARM for 4.0 beta 8. 🎉 |
To build from an (already existing) git clone, you'll need to clear out the old JOGL libraries:
then do a fresh build:
|
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. |
From the release notes for 4.0 beta 4:
This may simply be due to processing/processing4#284 which itself may be a known upstream bug: TheInfiniteKind/appbundler#70
The text was updated successfully, but these errors were encountered: