Open lesquoyb opened 6 months ago
These crashes are more than probably linked to JOGL and there is almost nothing we can do to "fix" them on GAMA side.
1) What are the symptoms of the crash (fatal error as in the comment ? on the same stack ? others ?) 2) Please take a look at https://forum.jogamp.org/jogl-f782158.html and https://jogamp.org/bugzilla/ to find maybe corresponding bugs or reports.
It is exactly the same kind of crash as described in gama-platform/gama.old#3425 with the same kind of log and stack error in eclipse which is something pointing to an error in the dll of the amd driver of the computer (completely external to gama). In addition, after some tests I found out that gama-platform/new.gama#10 is also linked to this driver crash/incompatibility with our 3d displays
Describe the bug It is a well known issue that AMD integrated chipsets are not always compatible with opengl displays in gama and can make them crash. A known workaround is to force the use of a dedicated other gpu if available or play with the drivers in AMD software, but this is not always enough. A recent example is the one in this issue or this one. In addition, as recently reported in this comment it also happens with some intel integrated chipsets.
Unfortunately not everybody has a second gpu or can make the amd software workaround to work, and even then, it's some tedious work just to have normal displays showing. So I think we should spend some time to see what we can do to fix that.
If we cannot track down the opengl calls that are causing this problem, which is very probable, maybe we could offer an alternative backend for 3d: either vulkan, which would benefit all platforms but seems very complex, or directx, which would benefit only windows users (but alternately it seems that it's only a windows problem). In that case we could use the software angle to generate a vulkan/directx translation of gama and then reverse engineer the calls thanks to apitrace or gfxreconstruct to build the backend class.
Expected behavior opengl displays work without crashing on all computers