Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[headless] a model containing a non-blocking error breaks headless but works fine in GUI #301

Closed
lesquoyb opened this issue Aug 28, 2024 · 1 comment
Labels
About Headless This issue or request concerns GAMA headless mode 😱 Bug The issue reveals a bug in GAMA

Comments

@lesquoyb
Copy link
Contributor

Describe the bug
Some errors in gama are non-blocking, meaning that the simulation will continue anyway even though the error view is open in the GUI.
The problem is that those same errors are completely stopping the experiment when run through headless, whether it's batch or server.

To Reproduce
Steps to reproduce the behavior:

  1. In GUI mode run this model:
model errors

global{
	
	reflex i{
		let i <- ln(0);
		write "I'm still working";
	}
}

experiment a type:batch until:cycle=10;
  1. See that the error window opens but the simulation continues
  2. now run it in headless (gama-headless -batch a /path/to/file.gaml or through gama-server)
  3. See error

Expected behavior
The error is shown but the simulation continues as it's the case for GUI mode

Additional context
In previous versions of gama it was looping forever over the exception, filling the console but recent changes in batch changed that to stopping the execution of the simulation.
Gama doesn't completely close though and the simulation's thread is still running here is gama's state once the error happen:
image

@lesquoyb lesquoyb added 😱 Bug The issue reveals a bug in GAMA About Headless This issue or request concerns GAMA headless mode labels Aug 28, 2024
lesquoyb added a commit that referenced this issue Sep 23, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in GAMA 2024-11 Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
About Headless This issue or request concerns GAMA headless mode 😱 Bug The issue reveals a bug in GAMA
Projects
Status: Done
Development

No branches or pull requests

2 participants
@lesquoyb and others