gama-platform / gama.old

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

Java2D graph chart crashes if model runs too fast #3442

Closed RoiArthurB closed 2 years ago

RoiArthurB commented 2 years ago

Describe the bug Not sure of the source of this bug, but some charts crash after some time (not fixed) while the simulation goes too fast. It didn't been reproduced (yet?) with a Mac M1 laptop, but does on some lower-grade ones.

To Reproduce Steps to reproduce the behavior:

  1. Open the step latest step (step 5) of the BDI tutorial
  2. Start the simulation
  3. See error as on screenshot below

Expected behavior No crash 🤷🤷🤷

Screenshots image

Desktop (please complete the following information):

Additional context

  1. If displays are synchronized, this bug seems to never occured (which lead me to think that the problem comes from the too fast model running and charts aren't able to follow).
  2. Build version doesn't display any errors from running logs when charts crash.
hqnghi88 commented 2 years ago

Hi, Not only lower-grade (asus rog g14), i can have it with 3 simulations on that model

image
AlexisDrogoul commented 2 years ago

I dont get it on MBP 16" M1. It's running fast, but w/o freezing. W/o errors, though, it is difficult to know what's happening.

AlexisDrogoul commented 2 years ago

Additional information : the problem doesn't occur with OpenGL displays.

AlexisDrogoul commented 2 years ago

Tested on macOS, Windows and Linux. The charts are much more stable, or so it seems. Case closed in my opinion.