Hey guys, I found another problem/bug while my current project “NAFS-Race”.
Could someone test it too?
I’d tried to load a scene and some meshes via libload, everything works fine until I’m ending the game engine.
Blender ends in a crash and stops working.
(Load-Test.blend loads the other two .blends)
Blender only crashes when both libload operations were executed before.
Only load scene or only load meshes doesn’t cause it.
Using LibLoad in a own Python tread is not a common usage. I think Moguri never tested it against that.
If you use threads you must synchronize (Semaphor) each threaded against the other (Blender thread <> Python thread). In your script the memory will be freed and then the main Blender thread try’s to set the freed lod object (ZLOD_MT.py line 124).
You need to capture the ESC key or use the Python class destructor. If the game stopped then stop your thread and then stop blender.