Description
Describe the bug
I run into examples of models from the library (Ant Foraging.gaml and soccer.gaml) where turning global facet torus to true, makes display not displaying agent or env anymore. It also raises a NPE related to OpenGL: the two lines
Runtime error null in OpenGL loop
java.lang.NullPointerException
keeps repeating in eclipse console, even when the model is paused.
To Reproduce
Steps to reproduce the behavior:
- Go to Library models > Toy models > Ants (Foraging and Sorting) > Ant Foraging.gaml (same with soccer.gaml)
- Put
torus: true
inglobal
definition - Run
classic
simulation experiment - See main display fully black (with soccer.gaml agent do not show up anymore, and turning param "display marked player" to true raises the error)
Expected behavior
Displays run as if the environment was not a torus one. I do not know exactly how torus world should be considered, but there is example of models (boids.gaml for instance) that work like a charm with toroidal environment...
Screenshots
Desktop (please complete the following information):
- OS: MacOS Monterey
- PC Model: Apple M1
- GAMA version: Gama git 1.9.2
- Java version: JDK17
- Graphics cards / Display system: Apple M1 chipset
Additional context
The facet initially messes up with one of my model (agent appeared glitched, with part of drawn geometry missing, huge in size, etc.) , and then I investigate potential same behavior in model library. All models that feature torus global by default works as intended.