-
-
Notifications
You must be signed in to change notification settings - Fork 50
JDK 11.0.7+ shows blank screen with P2D and P3D on macOS (workaround) #124
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
Comments
Created by: sampottinger Hey @benfry! Sorry if this is a duplicate but the latest JOGL RC (the same one in use in Processing) does render correctly on a Mac with 11.0.8. I'll turn my attention to within our codebase to see what we can do. |
Created by: benfry Aha… well, also certainly possible that I broke something else while fiddling around… |
Created by: benfry i.e. the changes for disabling awt… (#55) |
Created by: sampottinger Thanks Ben! I'll review #55. Been digging around and haven't quite sorted it yet... Will keep you updated though |
Created by: sampottinger Looks like there may be an issue in JOGL's |
Created by: sampottinger Just a quick summary of what I've set up here... Mac 10.14.6. Screenshot down below. Here's the sketch code:
I modified PSurfaceJOGL with the following:
|
Created by: sampottinger Well... heck. Alright, so, it's hard to say exactly what about Processing is causing an issue for Pros for replacing NEWT with Swing:
Cons for replacing NEWT with Swing:
A practical consideration: On AWT in P3D |
Created by: sampottinger Started a proposal at #126. |
Created by: sampottinger Hey there @benfry... So, still working on a few things (like fullscreen) but I got a working version with JFrame! I'm also happy to report that it reduces amount of logic through re-use from PSurfaceAWT. I need to check but JEP 263 might have also cut down a bit on what's needed. Anyway, that's over at #126. Demo below. Just LMK if this direction is OK. |
Created by: benfry Yeah, unfortunately the @codeanticode might have thoughts; we may need to require the |
Created by: sampottinger Ah that’s a shame. Just to be clear, I think the problem is in NEWT itself. Could you say more about why you think —disable-awt and -XStartOnFirstThread would help? Or are you hoping to jump to LWJGL right away?
|
Created by: sampottinger Also let me know @benfry and @codeanticode if there’s anything I can do to help. I’ll pause for now though. |
unassigned @processing-bot |
Created by: benfry Yeah, NEWT doesn't like AWT either, so throwing it out there as a possibility for headaches. (NEWT was part of the reason that the AWT separation process began in the first place. And the non-AWT approach in JavaFX was an accelerant.) I don't suppose there's a newer JOGL release? Anyone else having issues on the JOGL forums/issue tracker? Other things I would try:
|
Created by: sampottinger Hey there! No, unfortunately, we are on the latest and didn’t see anything in forums or bug tracker (though another look wouldn’t hurt). Those are great questions! I’ll try to look into them probably late this week. Thanks,
|
Created by: sampottinger Hey @benfry! I ran the tests you requested.
Unfortunately, no. Please see attached.
Again, unfortunately, no. See https://github.com/processing/processing4/tree/alpha_1_jogl_test. |
Created by: sampottinger @benfry / @codeanticode, let me know if there's any more I can do! |
Created by: benfry Maybe it's LWJGL time. Heh, heh. Heh. Cough. Hrmph. |
Created by: benfry Ok, found a really ugly hack that gets around things for now. On macOS, setting a flag to toggle the resizability of the window, which seems to revalidate it or recreate it internally. I'm still guessing that we're doing something wrong on window init, but haven't been able to track that down. For folks using It's super gross, but at least this will work for the vast majority of others. Not marking this as resolved, since a real solution needs to be found. |
Created by: benfry For what it's worth, when testing on an M1 laptop, was seeing some persistent flickering, so now I'm wondering if there's a buffer swapping/offscreen buffer issue happening here. Similar to what we run into with offscreen buffer issues with weird graphics drivers or limited VRAM. Not certain, but worth checking into… |
Created by: benfry Fixed with the latest RC of JOGL (v2.4.0-rc-20210111) in 4.0 alpha 3. |
Created by: sampottinger
Rendering is blank. Continuation of #123 / #121.
The text was updated successfully, but these errors were encountered: