Almost every function in the project writes log information when starting, exiting and several information while running.

In case of this crash the engine just crashes once the first wait(1) after the level_load is reached.

I'm already logging out all currently running functions between level_load and wait, something like:

Code:
level_load("xyz");
print_all_running_fct();
wait(1);



But that didn't help. I removed all of those functiona, but the crash still occured.

The only way to get rid of this crash was to add or remove a model in the level, but I'm sure that the crash will appear at another point of the game, because I did quite the same some months ago. I had exactly the same crash, just the starting level was another one, but the level that crashes was the same. Then I changed the order of the models in WED and the crash didn't occur anymore ... until now.