UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.45k stars 180 forks source link

libload from previously libloaded scene - EXCEPTION_ACCESS_VIOLATION (testfiles) #1518

Open spamandeggs opened 3 years ago

spamandeggs commented 3 years ago

Hi,

I think there's an important bug in the upbge (stable 0.2.5b) libload() function that did not exist in the bge279b.

so the first scene can act as an 'overlay', 'game management','ui' scene, and the other below manage the actual game and assets. its for me an important limitation for projects with lots of assets / game screens / level management, be able to reuse assets files as is with no modifications from one project to another etc.

here are the testfiles. see the README and the text block in the main.blend file for more info : several libload with two scenes.zip start main.blend for the fail, or scene2.blend for one scene/no fail

Maybe I forgot something simple, or a whitepaper about it.. but I already fight with this kind of violent fail during years in the bge then finally found something reliable, viable way, and this is sadly appening again.

thanks to give it a look !

spamandeggs commented 3 years ago

here is a (bit) more reliable alternative testfile (0.2.5b) :

several libload with two scenes alt.zip

it's ok on my laptop. green monkey, then a pink sphere in the background

but well. Now we want to load two assets files :

I added Delays so wait a bit - it seems cant confirm anything, too mush randomness, cant systematically reproduce.., it seems to help for consecutive libload. (asynchronous is default, False)

so far with upbge I got no way :

I didn't try to use scene actuator bricks.. yet..