The UE4 editor sometimes crashes on the PlayerCharacterBP Blueprint and the editor does or does not (seems somewhat random) recognize my C++ methods. Sometimes I crash and upon restarting I get the error as seen below in bp.png (and I changed NOTHING in Visual Studio).
And yes I did restart both VS and the engine after successfully compiling it in VS the first time I implemented it.
After crashing the engine no error is displayed and no crash reporter. So I included a link to the latest logifles on pastebin.
Crash may occur while doing something random in the PlayerCharacterBP.
Very hard to reproduce but it does happen so now and then.
Then to fix it again I have to restart VS, UE4, recompile, launch the game, do various weird things and eventually the editor is like “oh, I found your exposed methods!” and all works fine again for a while.
Best way so far to get UE4 to see my functions is to make a useless change in VS (type a random character in any file and delete it again and press F7), then revert it and recompile VS and the hotreload will suddenly find my exposed methods. This can’t be intended.
Error log:
http://pastebin.com/yNqWng5X
At least this time I got a crash reporter. Crashed again while compiling that blueprint in UE4: link text
And yup after the crash again some exposed variables were not recognized by UE4 anymore. Had to do the usual trick again:
- Open Visual Studio
- Type random character in a random file
- Delete the above typed character
- Press F7 to build
- Restart UE4 and now it works again, until next crash.
This time it was an exposed variable from the Hud blueprint (which used an exposed variable from the BaseCharacterClass) and another one in the BaseCharacter blueprint… It seems to spread now. But all related to the BaseCharacter_C class.
Oh that was fast… Next crash:
[link text][1]
Also found another problem:
I compiled VS, restarted UE, did the above trick again to make it work, removed the CalculateHealth node entirely, compiled the blueprint, saved the blueprint, then added the CalculateHealth node again and it’s missing the IsOverflow pin… It keeps disappearing and I keep adding it again through various tricks but the engine keeps crashing and removing the pin…
I tried removing the default parameter but same problem, engine crashes again and then it resets the pin(s) to an older version that no longer exists… There is some desynch somewhere between UE4 and VS that I can’t seem to get rid of.
Deleted the Binaries and Intermediate folder and rebuild it all. Still same problem. I can’t get UE4 to recognize the updated method. Well sometimes it does but it will just crash again and go back to an older non-existent version of the CalculateHealth method… sigh…
Hey -
I’m not sure I can setup a sample project to investigate this crash / function node behavior. If possible, could you create a sample project that shows the behavior you’re talking about? Another option would be to send a copy of the project where this issue is occurring. If you’re able to zip the project folder you can either attach it to a post here or, for privacy, upload it to google drive or Dropbox and send me a PM on the forums with a link to download the project.
Cheers
I was hoping the logfiles somehow would explain what was causing it. I tried replicating it in another project but there it worked perfectly even without restarting UE4.
I rather not try it in my current project and I rather not strip it down for sending over Dropbox (my DropBox doesn’t even have enough space left anyway) and uploading such projects takes very long to upload. Stripping it down (like removing VS files and starter content and all sorts of models and such) may actually cause it to work properly again.
Next time I get this problem/bug again (hopefully never!) I will just zip the entire project and then if I find a way to upload such a large project I will (will take days of non-stop uploading). My upload is really really old and slow…
Hey -
Have you seen this issue again yes? I am closing this post for tracking purposes, however if you do get this problem again, feel free to post the project and we will continue to investigating.
Cheers