typemytype / drawbot

http://www.drawbot.com
Other
407 stars 63 forks source link

Hard crash when doing many cmd-R in succession #505

Open justvanrossum opened 1 year ago

justvanrossum commented 1 year ago

Likely related to #501.

When doing command-R on the attached script many times in quick succession the app will crash with "Illegal instruction: 4".

crash_test.py.zip

This is related to the userCancelledMonitor thread: disabling that code makes the problem disappear.

The actual script doesn't matter all that much, but if it does too little the problem is hard to reproduce. This one seems to crash quite reliably.

I assume (but didn't test) that this is somehow related to py2app (as is #501).

typemytype commented 1 year ago

The same crash happens with rapidly hitting cmd + arrow key. The crashreport is the same: Illegal instruction: 4.

I would opt for removing the userCancelledMonitor as this does not work for the moment.

justvanrossum commented 1 year ago

I would opt for removing the userCancelledMonitor as this does not work for the moment.

Yes, I'm afraid you are right.