Closed LBIRE closed 2 years ago
To add more information: I tried the example on Ubuntu with an AMD RADEON and everything worked well
Hi, I explain something in https://github.com/gama-platform/gama/issues/3398#issuecomment-1120661720 regard my experience on windows, some case of using GPU can cause crash. Hope it help.
Can you try testing again with the new changes made to the display infrastructure in the 1.8.2 branch ? Thanks
I tried on Windows+amd radeon and it's still crashing
I did some changes in #3442 to the way charts are displayed and compute their images. Can you try if it changes anything ?
Tested again on Windows, it's still crashing. I tried with and without AMD software: adrenalin edition
as it solved some problems related to my radeon before, but no difference.
In eclipse I get this error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffce03a4486, pid=1636, tid=12044
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.2+8 (17.0.2+8) (build 17.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (17.0.2+8, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C 0x00007ffce03a4486
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Program Files\eclipse\hs_err_pid1636.log
#
# If you would like to submit a bug report, please visit:
# https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
And here is the log: hs_err_pid1636.log
Things to test :
Here is a minimal (non-)working experiment:
model crash_radeon
experiment main_experiment {
output {
display chart type:java2D {
chart "hop" {}
}
}
}
The problem really seem to come from the chart + opengl as commenting the chart inside the display or switching to java2D solves the problem.
to sum up what was already tried:
use_old_animator
and use_native_opengl_window
: no differenceAMD software: adrenalin edition
that solves other radeon related crashes: no differenceFor the question about memory used by gama : no more memory usage than usual
A few updates on that issue: there seem to have been a windows update that makes things a bit better (maybe also helped by the changes in the code), in my particular case most models work now at the exception of displaying an empty chart (adding data fixes it) and zooming. I conducted a few different test on my computer and @LBIRE's and the issue seems to be related to performances, as it's still not working on leo's computer (which is less performant than mine) though it can now work a few seconds in some cases. Another thing that makes me think it's performance related is that it crashes way less on the release than on the git version run through eclipse
After further investigations the bug really seems to be rooted in the code of the gpu driver, so not much we can do on our side. And other softwares having the same issue all just recommend the user to play with the computer settings (energy settings, switch to an other gpu etc.) to try and make the software more stable, but none seem to have solved it.
The good news is that last week AMD released a new update of AMD software: adrenaline edition
and it solved the bug completely on my computer. So I'll wait a bit to try more complex models and scenarios, but it's possible that the solution to it could simply be "download the latest AMD software version".
@lesquoyb that would be a fantastic good news !
Tried on another computer with the same issue, installing AMD Software: Adrenalin edition
version 22.10.1 solved it. I thus consider the problem solved and added a few lines about it in the Troubleshooting
page of the wiki.
In https://github.com/gama-platform/gama/wiki/Troubleshooting/b4b827633ef4aa7567d94442fbd0b3e5dc24a1ca "solved the problem but at the cost of very slower rendering". If it is slow rendering, it is not using 3D card or even the installation is not right.
Yes, it is slow precisely because it is not using a proper gpu but an integrated chipset. Basically that's a last resort solution
Yes, that's what i want to say: installing the Adrenalin supposed to fix the GPU driver, not to prevent OS to use properly the GPU.
Describe the bug When running an experiment which displays a chart using opengl, GAMA crashes.
To Reproduce Run the following code, which is
incremental model 2
from Library models with the display changed toopengl
:Desktop (please complete the following information):
Additional context We tried the 4 values for the flags :
use_old_animator
use_native_opengl_window
with no difference