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

display of dead/nil agents #1056

Closed pcaillou closed 9 years ago

pcaillou commented 9 years ago
What steps will reproduce the problem?
1. Import the following model https://drive.google.com/file/d/0BxvMwvAG0APzRDk2MXJVODg4MFE/edit?usp=sharing
2. Run the "main_experiment" experiment
3. Run the simulation

What is the expected output? What do you see instead?
If you have a computer powerful enough, you will have errors during the simulation
(nullPointerException).
Indeed, in this model,the agents tends to disapear quite often often due to the use
of multi-level modeling (capture and release). As the display and the simulation are
not synchronized, a error is trown.

If you synchronize the 3D display with the simulation, you would not have any error
anymore.

Is it possible, in case of dead/null agents to just not display them instead of trowing
an error message?

Original issue reported on code.google.com by patrick.taillandier on 2014-06-11 15:00:08

pcaillou commented 9 years ago
This issue was closed by revision r11316.

Original issue reported on code.google.com by alexis.drogoul on 2014-06-12 18:19:16

pcaillou commented 9 years ago
I do not if it is linked, but I still have an error due to the display when running
the model (MAC OS X 64 bits):

java.lang.NullPointerException
    at msi.gama.runtime.exceptions.GamaRuntimeException.create(GamaRuntimeException.java:53)
    at msi.gama.runtime.exceptions.GamaRuntimeException.create(GamaRuntimeException.java:48)
    at msi.gaml.expressions.UnaryOperator.value(UnaryOperator.java:62)
    at msi.gaml.expressions.NAryOperator.value(NAryOperator.java:78)
    at msi.gaml.statements.DrawStatement$ShapeExecuter.getLocation(DrawStatement.java:324)
    at msi.gaml.statements.DrawStatement$ShapeExecuter.executeOn(DrawStatement.java:331)

Original issue reported on code.google.com by patrick.taillandier on 2014-06-14 18:21:35


pcaillou commented 9 years ago
Which error do you have ? The exception displayed ? The error displayed in the screenshot
? Both ? For the first one, it is normal: errors, even if they are not displayed, are
nevertheless logged in the console. The second one is more intriguing, but shouldn't
be displayed (unless it happens in a section of the code that is not guarded by a try/catch).

And you have this error systematically ? Because I can't reproduce it on my computer.

Original issue reported on code.google.com by alexis.drogoul on 2014-06-14 18:48:16

pcaillou commented 9 years ago
I have both (the first one on Eclipse and the second one (bug display) in GAMA).

I have (almost) always this error with my computer (mac OS X 10.7.5, java.version=1.6.0_65).

Original issue reported on code.google.com by patrick.taillandier on 2014-06-14 19:22:07

pcaillou commented 9 years ago
This issue was closed by revision r11322.

Original issue reported on code.google.com by alexis.drogoul on 2014-06-15 15:12:51