I have a project which has been working fine for some time, and after making non-functional changes to the code I was surprised to see that the application was now crashing when I use the Launch button to deploy the application, with the following appearing in the Android Log:
D/UE4 (24522): [2016.01.12-05.03.11:997][ 0]LogInit: Object subsystem initialized
D/UE4 (24522): Assertion failed: PImplData->eglSurface != EGL_NO_SURFACE [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.10\Engine\Source\Runtime\OpenGLDrv\Private\Android\AndroidEGL.cpp] [Line: 233]
D/UE4 (24522): eglCreateWindowSurface error : 0x3003
D/UE4 (24522): [2016.01.12-05.03.11:997][ 0]Assertion failed: Assertion failed: PImplData->eglSurface != EGL_NO_SURFACE [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.10\Engine\Source\Runtime\OpenGLDrv\Private\Android\AndroidEGL.cpp] [Line: 233]
D/UE4 (24522): eglCreateWindowSurface error : 0x3000
I/AndroidRuntime(24522): VM exiting with result code 0, cleanup skipped.
I/ActivityManager( 893): Process com.MyCompany.MyProject (pid 24522) has died.
I’ve tested this repeatedly, and when using the Launch button, the above crash occurs. I’ve also tried stripping out the Saved, Binaries and Intermediate folders, generating new VS project files and rebuilding- same result. The bug does not appear in this folder when using the full packaging pipeline- only when using the ‘Launch’ button.
The strangest thing is that I can get that same project to work by copying and pasting the entire project directory elsewhere on my computer- no other changes are made to the code at all, I regenerate VS files and recompile the project as with above, except this time the application works perfectly!
If this behavior changes even when the project is copied wholesale into another folder, could this be an issue with the DerivedDataCache of the engine itself?
Would really appreciate any theories as to what’s going on in this puzzling situation. Thanks!