Closed RoiArthurB closed 2 years ago
Huh, java2D on my machine works fine. Which model did you try?
@minhduc0711 The last build of GAMA 1.8.2 with JDK ? Otherwise, the git and the built without JDK both works fine to me ! :)
Ah sorry, I just ran the release version and have the same issue. I suppose something is wrong with the embedded JDK.
To display (it's the same with any java2D displays, just have to replace opengl in any toymodel) the problem, here's running the Library Moel/Visualization and User Interaction/Visualization/Charts/models/Distribution.gaml
Just confirming the bug
It didn't work for me in git build. I saw someone posted the same log on StackOverflow saying that this was caused by mixing AWT with SWT? I'm not sure, just hope this is not due to the previous patch on OpenGL, somehow.
Edit: There seems to be a memory leak when running simulation for a long time, too.
As said previously, the java2D issue appears only on the version with the Embedded JDK. Maybe we can try to update the JDK version to resolve this issue (the JDK is older than the Eclipse version) :
$ # Embedded JDK 15 version
$ ./GAMA_1.8.2_Alpha_withJDK_Linux_09.10.21_ead98a2a/jdk/bin/java -version
java version "15.0.1" 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
$ # My default JDK 15 version
$ java -version
openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)
If using this solution, we can use the latest released version from the Github Repo instead of freezing one version on our server (same as what Github Action is doing, which makes it use the exact same version as my laptop)
@AlexisDrogoul We've found the problem traces back to the versions of Jogl and JDK and. We need your help with that.
So these are what we discussed and some related search results:
version 'SUNWprivate_1.1' not found (required by /home/roiarthurb/.local/share/GAMA_1.8.2_Linux_with_JDK/configuration/org.eclipse.osgi/161/0/.cp/libswt-awt-gtk-4942r22.so)
.so
file can be found in this repo, but the stack trace said something very specific, so the .so
might already be installedJOGL is already 2.4.0 (otherwise nothing would work). And it is normally not involved in the Java2D processes... Have you tried the simple solution of building GAMA without the OpenGL plugin ? To see if the problem persists ?
I trigger a new build, please feel free to test this issue with the new JDK :)
EDIT : New build works for me :+1:
Missing library on GAMA 1.8.2 with JDK on Linux happening on java2D and charts display :
Originally posted by @RoiArthurB in https://github.com/gama-platform/gama/issues/3090#issuecomment-865508619