getnamo / MachineLearningRemote-Unreal

Machine Learning plugin for the Unreal Engine, encapsulating calls to remote python servers running e.g. Tensorflow/Pytorch.
MIT License
138 stars 41 forks source link

Consistent crashing when using the editor "Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000030" #7

Open JadenTravnik opened 4 years ago

JadenTravnik commented 4 years ago

Hi, I am a big fan of the repository and think that the idea is really powerful however I am running into some issues.

I am using Unreal 4.25-1 and have made sure to follow the examples and documentation as much as possible. I now have (what I think) is a working ML training loop where I start the server and play a map from the editor. However, the longer that the script runs, the more likely that Unreal will crash with the below information. The frequency of the update loop is ~0.1 seconds so perhaps this is related.

Do you have any pointers as to why this is happening and how it may be avoided? Is 4.25-1 supported by the plugin?

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000030

UE4Editor_SIOJson
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_AIModule
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll
getnamo commented 4 years ago

Interesting, do you have a crash log that goes with that? I'm suspecting some kind of race condition potentially. It does seem to be related to the frequency of the calls. You can also try https://github.com/getnamo/tensorflow-ue4/releases/tag/1.0.0alpha2 which uses this repository for 4.25 (I will port a release back here when I get something more stable)