<div dir="ltr">Thanks for the reply quozl, I understand now and this will also help me when porting simulate to python3 which is also a part of my proposal, I'll also specify sugargame in my proposal, thanks.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 1, 2023 at 4:54 PM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Apr 01, 2023 at 04:21:59PM +0530, Spandan Barve wrote:<br>
> Thanks for the feedback Ibiam.<br>
> [...]<br>
> > Simulate activity sometimes crashes Sugar, what do you mean by crashing<br>
> Sugar?<br>
> I was not able to reproduce it but I do have the error saved. by<br>
> crash, I mean that the activity stops responding completely,<br>
> including the stop button and pressing CTRL+Q, I had to go back to<br>
> the journal and then remove the activity, after that I got an error<br>
> in the terminal. <br>
> here is the error : <a href="https://pastebin.com/1RcTvYHc" rel="noreferrer" target="_blank">https://pastebin.com/1RcTvYHc</a> <br>
<br>
It's a bug.<br>
<br>
The error showed Python 2.7.  Simulate is yet to be ported to Python<br>
3.  The traceback can be ignored until that port is done.<br>
<br>
Simulate also needs a port to later Sugargame.  During the port of<br>
Sugargame a complete review of the event loop should be done, as<br>
Sugargame changed substantially.<br>
<br>
Simulate contains many inner event loops, with calls to wait, update,<br>
and tick, yet without checking for the stop button or Control/Q.<br>
That's probably the bug you saw.<br>
<br>
Simulate also uses an unconventional exit method.<br>
<br>
The Sugargame sample code shows how to do it instead.<br>
<br>
Simulate window can also vanish but the system process persist, which<br>
was first reported in 2018.<br>
<br>
<a href="https://github.com/devAbnull/simulate_sugargame/issues/1" rel="noreferrer" target="_blank">https://github.com/devAbnull/simulate_sugargame/issues/1</a><br>
<br>
I could not tell if you used git HEAD or the latest release of<br>
Simulate, which predates git HEAD by some years.<br>
<br>
<a href="http://activities.sugarlabs.org/en-US/sugar/addon/4778" rel="noreferrer" target="_blank">http://activities.sugarlabs.org/en-US/sugar/addon/4778</a><br>
</blockquote></div>