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
SolveSpace v3 empty black window (AMD Adrenalin 22.7.1 or Later Driver OpenGL 3 problem). Fixed in 23.4.1 #1278
Comments
Does one of these versions https://github.com/ruevs/solvespace/releases work? They are compiled for OpenGL 1. If they do you should update your video card drivers and this issue would be the same as #1036. |
it worked, I think the error is caused by AMD Adrenalin 22.7.1 Driver |
Hmm this is the latest... https://www.amd.com/en/support/kb/release-notes/rn-rad-win-22-7-1 I'm not sure how to proceed in troubleshooting this... |
Would you be willing to downgrade to 22.5.1 and try? |
Yikes! That hardware is newer than my solvespace development machine - Zen1+ Raven Ridge 2400G. Edit: I'm on Linux. |
Very intetesting! They do mention a huge OpenGL speed up (in Minecraft) in the release notes for 22.7.1. I wonder if someone else with an AMD video card/APU will have the same problem or it is specific to this system? |
I have the same issue with rx6400 card and adrenalin 22.8.1. Downgrading adrenalin to 22.5.1 does solve it. |
Hi I'm having the same issue, so have decided to get my cross compiler (Ubuntu Mate in a VirtualBox) going to help with testing. I just finished compiling (with debug) and tested it to confirm it has the same issue as the precompiled version. for the sake of it I load a file as was surprised to find the model showed up. The Property Browser and all tool menus are still missing but the shaded model show up and I can select surfaces. No error messages were printed to the console. So any suggestion on where to test would be appreciated |
This is very interesting. So no error messages appeared when you ran the debug version that you built from a command prompt? Another interesting test - if you run an OpenGL 1 version how does it behave? |
As for places to look at - if the OpenGL 1 version works then the offending code has to be in https://github.com/solvespace/solvespace/blob/master/src/render/rendergl3.cpp Maybe here: solvespace/src/render/rendergl3.cpp Line 481 in 50cbecb
and here: solvespace/src/render/rendergl3.cpp Line 544 in 50cbecb
Or perhaps something to do with the Z buffer and the layers? solvespace/src/render/rendergl3.cpp Line 154 in 50cbecb
https://registry.khronos.org/OpenGL-Refpages/gl4/html/glClearDepth.xhtml |
Hi. This same issue is plaguing several users of Blender and downgrading to the aforementioned 22.5.1 drivers fix it, so it is not restricted to only this software. The newest Adrenalin 22.11.1 release notes list "OpenGL applications using MSAA may see visual corruption." in its fixed issues, but I haven't tested to see if it affects solvespace or blender yet. This was the issue that the driver update references. |
It is unfortunately not fixed on 22.11.1. |
@Asdow Thanks for pointing out the problem in Blender. Also can those of you who currently have the problem try the Web version of SolveSpace? It uses the same OpenGL 3 renderer, so it would be interesting if the extra layer of indirection through the browser makes a difference. Maybe try all your browsers? |
I have the problem with 22.11.1. The web version works on Edge for me. |
On the Blender bug someone posted a possible solution. Can any (all) of you check if it solves the problem for SolveSpace?
|
This issue is affecting a lot more than Solvespace and Blender: https://www.reddit.com/r/Amd/comments/wabgn3/opengl_msaa_wireframe_bug_in_2271_driver/ It looks to me like AMD broke something and probably needs to revert a change, and someone is yelling "but performance!" Yeah, we all struggle to make things better without breaking stuff ;-) |
Setting Antialiasing to Use application settings fixes the bug on the newest drivers with Blender, but not with solvespace for me. I wonder if solvespace is using some sort of openGL call related MSAA by default that blender does not? Oh, and the web version of solvespace works for me on Firefox, albeit I didn't check whether changing the antialiasing setting could reproduce the glitch there as well |
To sum up:
This leads me to believe it may be related to our rather ancient (2016) fork of Angle that OpenGL 3 goes through on Windows. I tried to quickly update it but it is a pain to adjust the CMake configuration... If I find the time to do it I'll post a version with "modern" Angle to test. |
@ruevs it would be nice to use an upstream version of Angle too, and dump our old one. |
fyi: I've tested with driver 22.11.2 and got same result with black screen |
Same issue with Adrenaline driver 23.2.2 on Win10 and RX6800XT. Tried different custom AA settings for solvespace without luck. |
Same issue for me, Adrenalin driver 23.2.2, Win11, 6900XT, interestingly FreeCADLink is also borked, but if I select the "Experimental" render cache, it fixes the issue - in FreeCADLink its characterised by crazy random lines shooting from the geometry. OpenGL 1 SolveSpace works fine. |
Hey guys, solvespace/src/platform/guiwin.cpp Lines 635 to 651 in 50cbecb
You can comment out or remove this line solvespace/src/platform/guiwin.cpp Line 641 in 50cbecb
to disable OGL ES context creation and recompile the project. |
I'm way out of my teritory but questioning this code snippet from rendergl3.cpp:
Wondering if having Format::A set format = GL_RED in all cases helps. I don't think so though. Given the definitions here: |
Intel finally has released a new driver for the AMD Radeon™ RX Vega M GH in my i7-8809G so now I can reproduce the problem. Will post more when I have time to debug it. |
@ruevs
|
@Slaw6820 I did try your workaround (as soon as I could reproduce the problem) and it works. Thanks a lot! What is bothering me is why does it fail with "EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE" when on a browser the web version is probably using the same profile. I debugged it a bit and I think I narrowed it down to a missing extension that our (ancient) Angle expects but the driver does not provide. However I am not completely sure - this is the first time I am touching the OpenGL code. I'm not on that machine right now so I can not say what the extension was. |
AMD seems to have fixed the problem: After updating to Adrenalin 23.4.1 the 3.1 stable build is working again on my Radeon RX550. |
Curious if any progress on that. What extension is expected? |
Hope this can be helpful to anyone still facing this issue... A temporary solution (only for computers where the display is connected to the motherboard port and not directly to the GPU) is to disable the GPU from the Device Manager, forcing the whole system to run through CPU soft-rendering. Another less aggressive temporary solution is to use Mesa3D drivers for Windows, basically bypassing the GPU and using the CPU to soft-render everything. This is a per-app setting, thus it doesn't affect the whole system, and works well enough for me. This is my current approach. |
So I seem to be having the same problem with 23.9.1 on my G14 with an CPU |
This problem persists with 23.9.2 on AMD Radeon RX 6400. |
Seems that 23.10.2 fixed this issue again. |
System information
Expected behavior
show interface to use
Actual behavior
an empty black window
Additional information
The text was updated successfully, but these errors were encountered: