gama-platform / gama.old

Main repository for developing the 1.x versions of GAMA
GNU General Public License v3.0
304 stars 99 forks source link

Latest release crashes at splash screen #3636

Closed lesquoyb closed 1 year ago

lesquoyb commented 1 year ago

Describe the bug After installing the latest release (37ddbb8f) I'm unable to run it, GAMA crashes immediately at splash screen even before picking the workspace. I have that problem on my windows 11 computer, but it's also present on @RoiArthurB's computer which runs linux. Here is the log when running GAMA from a console:

$ GDK_BACKEND=x11 GTK_THEME=Adwaita:dark /home/roiarthurb/.local/share/gama-alpha/Gama

> FLAG: enable_debug                                    set to________ true
> FLAG: enable_logging                                  set to________ true
> FLAG: use_global_preference_store                     set to________ true
> FLAG: read_only                                       set to________ false
> FLAG: use_old_tabs                                    set to________ true
> FLAG: use_legacy_drawers                              set to________ false
> FLAG: use_delayed_resize                              set to________ false
> FLAG: use_native_opengl_window                        set to________ true
> GAMA: version 1.9.0                                   loading on____ linux 6.1.12-arch1-1, x86_64, JDK 17.0.6
> JAI : ImageIO extensions                              loaded for____ jpg||tiff|bmp|gif|arx|tf8|TF8|png|ppm|jp2|tif|TIF|asc|TIFF|btf|BTF|pgm|jpeg|wbmp|pbm
> GAMA: Plugin msi.gama.core                            loaded in_____ 1520ms

****************************************************************************************************

The initialization of GAML artifacts went wrong. If you use the developer version, please clean and recompile all plugins. 
Otherwise report an issue at https://github.com/gama-platform/gama/issues

****************************************************************************************************

Error in loading plugin msi.gama.core: Unable to acquire the state change lock for the module: osgi.identity; type="osgi.bundle"; version:Version="1.9.0.202302220414"; osgi.identity="msi.gama.lang.gaml"; singleton:="true" [id=21] STARTED [STARTED]

In my case, on windows, if I delete the folder .eclipse\306334380_win32_win32_x86_64 in my user's home, I'm able to start GAMA once, but the next run will fail in the same way. In linux that trick doesn't work

AlexisDrogoul commented 1 year ago

Two reference bugs : https://bugs.eclipse.org/bugs/show_bug.cgi?id=490744 https://bugs.eclipse.org/bugs/show_bug.cgi?id=487842

Probably the second is the closest cause, and I will try to make the plugin start in the osgi thread (rather than GAMA's one).