DatalogiForAlle / AgentsPy

Agent-based simulation for education in Python
GNU General Public License v3.0
5 stars 0 forks source link

Fixed some mysterious ui-issues #58

Closed JensKanstrupLarsen closed 4 years ago

JensKanstrupLarsen commented 4 years ago

Certain combinations of UI-setup (adding/not adding buttons etc.) were causing segfaults and making the program stuck.

As far as I can tell, it was caused by this line in ui.py: Application(model) Since the application was not assigned to a variable, part of it would be garbage-collected, which would cause the segfaults. It has been fixed (hacked?) with the following change: app = Application(model)

dybber commented 4 years ago

Good catch!