-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Embedded Python dll Error) Project crashes on startup after installing plugins #42
Comments
Sounds like you didn't install the plugins into your new project make sure to click on https://github.com/getnamo/tensorflow-ue4/releases/tag/0.11.0 and e.g. |
Folders look good. So I just tried this: Then create new C++ class, close unreal editor, compile project from visual studio (making sure it didn't build the hotreloaded dlls, might need to hit compile again until it shows target up to date). Once compiled, I start with the debugger and project runs as expected. Can't seem to replicate your issue. Make sure you close the editor when you recompile your project once done hitting f5 should work. Also make sure you recompile from visual studio using the .sln. Make sure you use the cpu version before you use the gpu version to ensure everything works normally. Gpu setup requires additional steps (https://www.tensorflow.org/install/gpu). |
Those warning are normal and do not impact build. The crash itself points to https://github.com/getnamo/UnrealEnginePython/blob/3099703c54f8c582a255aa3ea56f2e1a73df5bc3/Source/UnrealEnginePython/Private/UnrealEnginePython.cpp#L466, which according to https://www.linuxjournal.com/article/3641 says
Silly suggestion but maybe restart the computer? Seems like the python36dll has issues on you computer |
You can maybe try to change from using the embedded python to one auto-located on your computer via changing https://github.com/getnamo/UnrealEnginePython/blob/master/Source/UnrealEnginePython/UnrealEnginePython.Build.cs#L13 |
Following your advice, I seem to have fixed it! It was a Python 3.6 problem - for some reason it wasn't enjoying the embedded Python version with the plugin. I still have no clue why, but it seems to be working now as far as I can tell. To fix, I changed the https://github.com/getnamo/UnrealEnginePython/blob/master/Source/UnrealEnginePython/UnrealEnginePython.Build.cs#L13 as you said: Then added my local Python install location to the windowsKnownPaths string array, if not already there: I found changing the PythonHome to be the location anywhere else but the windowsKnownPaths to cause errors finding the pyconfig.h file (assuming it wasn't finding the Python path correctly). Thanks for helping fix the issue, it's greatly appreciated! |
I'm pretty new to UE4, so I'm not sure if I'm being dumb or if there actually is a bug.
I've installed the Plugins following the instructions, then copied the Content folder from the examples into a clean project. Running the project the first time works. I then restart and can access things like the TensorflowComponent in Blueprint. However, when I build my Visual Studio project and then restart UE4, it fails to load UnrealEnginePython and UE4 crashes at 71%.
I've noticed a few things, which may or may not be useful:
When loading up the project for the second time, I can access TensorFlow in the Editor however, none of the plugins appear under the Edit>Plugins tab.
If I build the solution from Visual Studio and try to launch through the debugger there, it crashes when running PyEval_InitThreads on line 466 of UnrealEnginePython.cpp. When building the VS project, it seems to run through all the UnrealEnginePython cpp files and builds them.
The error for this is: Unhandled exception at 0x00007FFD9ECF5A4E (ucrtbase.dll) in UE4Editor.exe: Fatal program exit requested.
Removing the UnrealEnginePython folder allows UE4 to load.
The call stack of UE4 starting up leads to ucrtbase.dll (image attached)
The text was updated successfully, but these errors were encountered: