I am trying to use panda’s threading module, however, it will freeze with loaders.
I have made this snippet that will always freeze at the freezepoint:
from direct.stdpy import threading from direct.showbase.ShowBase import ShowBase from pandac.PandaModules import * class Thread(threading.Thread): def run(self): while True: pass class Test(ShowBase): def __init__(self): ShowBase.__init__(self) Thread().start() test = Test() print "freezepoint" mod = loader.loadModel("models/mod.egg") print "freezepoint" text = loader.loadTexture("textures/text.png") mod.setTexture(text, 0) mod.reparentTo(test.render) test.run()
Can anyone tell me why? Or how to fix it?
//Edit: looks like it will freeze even without loaders…
Looks like insane bug in panda threading
Also, I do have threading enabled, so I dont get why does it happen.