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

Freeze when letting model run #15

Open
patrickkidd opened this issue May 19, 2022 · 4 comments
Open

Freeze when letting model run #15

patrickkidd opened this issue May 19, 2022 · 4 comments

Comments

@patrickkidd
Copy link

Describe the bug
I am seeing freezes when letting a model run on it's own.

Expected behavior
The model would continue to run at any number of agents and any frame rate.

To Reproduce
It isn't yet clear how to reproduce this. I also can't figure out if it's frozen in the javascript or python interpreter. I've tried setting breakpoints in both and no success yet. So for now just posting in case others have observed this.

Model in question: https://github.com/patrickkidd/systems-models
To run: $ python run.py --models mythematical

@Corvince
Copy link

Interesting. Have you tried letting the model run without the server? That way we can at least exclude the possibility that it is a model issue

@patrickkidd
Copy link
Author

How would that work since each step makes a request to the server?

@Corvince
Copy link

I meant just a script a la

import MyModel 
model = MyModel()
while True:
    model.step()

But I haven't really looked at your model to see if you are doing something special with the server

@patrickkidd
Copy link
Author

I suspect this is in the browser. The page won't redraw when it's stuck, and I can't get model.step() to freeze in a loop. Plus, model.step() doesn't hit any I/O so it would have to be an infinite loop, and I'm seeing this just as sporadically on the examples as well. Hitting pause in the server debugger steps out on the select() call which tells me tornado was waiting on the socket.

@rht rht transferred this issue from projectmesa/mesa Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants