PIE finishes then crashes editor

PIE in either viewport or separate window, press ESC or ` quit, window closes, and editor thinks it is still playing (icon for Stop is still on screen) and becomes unresponsive.

I tried this on different computers, using 4.2 preview build.

Tom

I am trying to make a function library function ‘CallAnyBP’ which casts to the base classes, that I can then use throughout the project (on BeginPlay), to set the vars in each class without having to the do casts each time.

When I tried it out, just in the level blueprint, it works. When I close the editor there’s no freeze exiting PIE. When I tried it in PlayerController only, it worked, and there’s no freeze exiting PIE. When I have both of them executing, they work, then PIE freezes (window closes but Stop remains on) and editor closes.

[I also put a closed gate before the return node, opened by the last cast, but that made no difference]

The error occurs still in the public release of 4.2

Hello Tomofnz,

Thank you for your report. I was able to reproduce your issue and have submitted a bug report on it. I expect it to be fixed in a future update.

Thanks again!

~Sam

Hello Tomofnz,

The problem is, that BlueprintFunctionLibrary cannot have any (non-local) variables. All ways of adding a variable should be blocked, but currently one can add a variable using ‘Promote to Variable’ pin action. It is a bug :frowning:

The only proper way to fix the problem is to remove all variables (or change them into local function variables) from CallAnyBP library.

Cheers,
M

That is great to know about… I’ll have another try with library functions!