4.23 Unreal Andriod Successfully Packaged Game Crash on opening | FMOD 2.00.06

Dear dev team,
I am using FMOD in UE 4.23 to develope for andriod platform. The game can work and even launch from the editor with the "launch in device"mode. However, when i succesfully packaged and installed it on phone and try to open it, it keeps crashing, and the critial msg is something like this:

 AudioStreamInternal_Client: onEventFromServer - got AAUDIO_SERVICE_EVENT_STARTED

03-31 12:21:29.232 8777 8806 D UE4 : [2020.03.31-19.21.29:232][ 0]LogFMOD: Loading Banks
03-31 12:21:29.275 8777 8887 D UE4 : Assertion failed: IsValid() [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Public\Templates/SharedPointer.h] [Line: 840]
03-31 12:21:29.275 8777 8887 D UE4 :
03-31 12:21:29.276 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]Assertion failed: IsValid() [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Public\Templates/SharedPointer.h] [Line: 840]
03-31 12:21:29.276 8777 8887 D UE4 :
03-31 12:21:29.276 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]LogAndroid: Error: === Critical error: ===
03-31 12:21:29.276 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]LogAndroid: Error:
03-31 12:21:29.276 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]LogAndroid: Error: Assertion failed: IsValid() [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Public\Templates/SharedPointer.h] [Line: 840]
03-31 12:21:29.276 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]LogAndroid: Error:
03-31 12:21:29.276 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]LogAndroid: Error: [Callstack] 0x00000000BE808270 libUE4.so(0x0000000003C7B270)!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, …) []
03-31 12:21:29.276 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]LogAndroid: Error: [Callstack] 0x00000000C2BAF810 libUE4.so(0x0000000008022810)!void FDebug::CheckVerifyFailed<char16_t [1]>(char const*, char const*, int, char16_t const (&) [1]) []
03-31 12:21:29.277 8777 8887 D UE4 : [2020.03.31-19.21.29:276][ 0]LogAndroid: Error: [Callstack] 0x00000000BE653918 libUE4.so(0x0000000003AC6918)!FAndroidPlatformFile::OpenRead(char16_t const*, bool, bool) []
03-31 12:21:29.277 8777 8887 D UE4 : [2020.03.31-19.21.29:277][ 0]LogAndroid: Error: [Callstack] 0x00000000C0860284 libUE4.so(0x0000000005CD3284)!FPakPlatformFile::OpenRead(char16_t const*, bool) []
03-31 12:21:29.277 8777 8887 D UE4 : [2020.03.31-19.21.29:277][ 0]LogAndroid: Error: [Callstack] 0x00000000BE6B0A14 libUE4.so(0x0000000003B23A14)!FFileManagerGeneric::CreateFileReaderInternal(char16_t const*, unsigned int, unsigned int) []
03-31 12:21:29.277 8777 8887 D UE4 : [2020.03.31-19.21.29:277][ 0]LogAndroid: Error: [Callstack] 0x00000000BE013070 libUE4.so(0x0000000003486070)!FFMODFileSystem::OpenInternal(char const*, unsigned int*, void**) []
03-31 12:21:29.277 8777 8887 D UE4 : [2020.03.31-19.21.29:277][ 0]LogAndroid: Error: [Callstack] 0x00000000BE013914 libUE4.so(0x0000000003486914)!FFMODFileSystem::Run() []
03-31 12:21:29.277 8777 8887 D UE4 : [2020.03.31-19.21.29:277][ 0]LogAndroid: Error: [Callstack] 0x00000000BE6EB7C8 libUE4.so(0x0000000003B5E7C8)!FRunnableThreadPThread::Run() []
03-31 12:21:29.277 8777 8887 D UE4 : [2020.03.31-19.21.29:277][ 0]LogAndroid: Error: [Callstack] 0x00000000BE65A8D4 libUE4.so(0x0000000003ACD8D4)!FRunnableThreadPThread::_ThreadProc(void*) []
03-31 12:21:29.278 8777 8887 D UE4 : [2020.03.31-19.21.29:277][ 0]LogAndroid: Error: [Callstack] 0x00000000F139B614 libc.so(0x00000000000A6614)Unknown []
03-31 12:21:29.278 8777 8887 D UE4 : [2020.03.31-19.21.29:278][ 0]LogAndroid: Error: [Callstack] 0x00000000F1355B9E libc.so(0x0000000000060B9E)Unknown []
03-31 12:21:29.278 8777 8887 D UE4 : [2020.03.31-19.21.29:278][ 0]LogAndroid: Error:
03-31 12:21:29.278 8777 8887 I chatty : uid=10004(com.YourCompany.AndriodTest) FMOD Fi-dinator identical 2 lines
03-31 12:21:29.278 8777 8887 D UE4 : [2020.03.31-19.21.29:278][ 0]LogAndroid: Error:
03-31 12:21:29.286 8777 8887 D UE4 : [2020.03.31-19.21.29:286][ 0]LogAndroid: FAndroidMisc::RequestExit(1)
03-31 12:21:29.288 8777 8887 I any.AndriodTes: System.exit called, status: 0

I am developing on Mac and I followed the instruction of copying all the so. files to the andriod binary folder(I got them from the Windows build), so I want to know what is the problem and how I can fix this as soon as possible, it seems something is happening at the file mangement for fmod but I do have the mobile bank build for the game. Thanks!

Does this have something to do with the similar missing dylib problem for the mac platform build?

It is possible but difficult to say, I haven’t tested building for Android from Mac but I can build and run Android from Windows without any issue.

Thanks for the reply! I understand the andriod integration may native on windows but I currently dont have access for a window computer. If the dev team can test the andriod binary files from windows build and build it on mac for any UE 4.23 project with 2.00.06 or 2.00.08 to see if they can be intergrated that would be great help!

Again, thanks!

At this time we are not setup to build or deploy Android from UE4 on Mac. I have created a task for investigating this, but at this point I am unable to give an ETA.

Thanks, any update would be great!

We’ve been able to reproduce and fix this issue. The fix will be included in the next release of the FMOD Studio UE4 integration.

The change is already pushed to GitHub (https://github.com/fmod/ue4integration) so you can grab it from there if you’d like it immediately.

Otherwise you can work around the issue by enabling “Built bank file separation” in your FMOD Studio project - changing it to either “Build metadata and assets to separate banks” or “Build metadata, non-streaming assets, and streaming assets to separate banks” and rebuilding your banks should avoid the issue.