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

Multi-level Exceptions in displays #2345

Closed benoitgaudou closed 6 years ago

benoitgaudou commented 6 years ago

Steps to reproduce

  1. Run the model: Library models / Features / Multi Level Usage / Balls, Groups and Clouds

  2. Run each experiment

Expected behavior

Works without Exception

Actual behavior

The model seems to work perfectly, but in the console many Exception appears (ion both experiments):

System and version

GAMA Git Mars & Oxygen, MAcOSX

hqnghi88 commented 6 years ago

It still have some concurrency must be fixed. But I realized the mechanism of multi level have so many adding/removing object in a simulation step (migrate, capture statement of macro micro agents). So most of these errors come from the fact that opengl (or display) cannot draw or access the geometry of a dead agent (which is capture in macro agent or migrated, released macro agent). I ve try with the synchronize button in display , which mean no gap of "living agents" and "drawing agents", it would eliminate some execption.