Hello all, I have discovered a problem in my code (bug in panda?) that causes a silent crash at the line I call time.sleep() inside a thread. I forgot exactly what the code was because I removed the broken lines, but if there is anyone who knows more about threading than me please let me know what I could be doing wrong. I am using the direct.stdpy.threading Thread() function instead of Python’s default module, and I am running multiple threads simultaneously in the program.
[EDIT]: My tired brain forgot to mention that the error only happens when the application is compiled into an exe, it works fine in the editor.
Huh, this is odd. Maybe there is a race condition somewhere else that now happens because the timing between threads is different. Hard to say without a stack trace.
How would I find that? As I mentioned, in the logs it just shows my normal startup sequence then crashes silently without putting out an error whenever I start the thread.
You would need to use a debugger such as Visual Studio, attach it to the process before it crashes.
It may be useful to create a non-optimized build to get more useful debugging output. This is done by setting the use_optimized_wheels option to False in setup.py. That will also allow you to set the notify-level to debug or spam.