bge.logic.libLoad makes the game crash (sometimes)

Can someone tell me how to properly load a map from an external .blend ? I want to load a map into the current scene and then, later, be able to liberate all the memory and space before libloading another external .blend. I don’t want to load everything at start.

I tried to pause the scene before libLoading a new .blend … it crashs
I tried to libFree a .blend (i loaded when booting the game) … it crashs
The only thing that seems to work ok is to Libload at boot.

I think this field in Range Engine is a complete mess and badly documented … what is the parameter “Data” ? We don’t know how we add .blend with multiple scenes … Can Range/Upbge put some order and finally understand that a game engine is meant to handle many maps and not only about sketching some pbr materials on balls ?

If i put everything in my main .range file and try to use addScene that stuff is useless since it has the camera lost … so except adding a Scene as overlay, adding a background or setting a new Scene is completely useless … no ?

the data (or buffer) parameter is used to load a .blend file using its binary data, that is, directly from memory without necessarily needing a file saved on disk. And what would you use it for? Maybe to add an extra layer of protection to your game, encrypting the external .blend file and decrypting it in memory to load with LibLoad or whatever… it was a feature added by moguri.