Skip to content

[Library Models] Turning global facet torus to true messes up agents display with certain models  #3783

Closed
@chapuisk

Description

@chapuisk

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:

  1. Go to Library models > Toy models > Ants (Foraging and Sorting) > Ant Foraging.gaml (same with soccer.gaml)
  2. Put torus: true in global definition
  3. Run classic simulation experiment
  4. 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

With torus off:
Screen Shot 2023-04-17 at 11 58 18

With torus on:
Screen Shot 2023-04-17 at 11 57 08

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.

Metadata

Metadata

Assignees

Labels

About GAMLThis issue concerns the GAML languageAbout Models LibraryThis issue or request concerns the models shipped with GAMAV. 1.9.1Bug specific to the 1.9.1 release🖥 Display OpenGLThis issue or request concerns only OpenGL displays😱 BugThe issue reveals a bug in GAMA

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions