Media Player (which is not used) crashes Android build on startup

Hello,

I posted this on the forums but I figured it’d be a safe bet to post here too. I’ve recently been attemting to get my project working on my android device and it seems to crash everytime on startup on any build due to the following error:

12-16 23:41:45.067: E/MediaPlayer(32319): stop called in state 1
12-16 23:41:45.067: E/MediaPlayer(32319): error (-38, 0)

I have also attached the rest of the log here.

Is there a way to get rid of this? I’m not sure what to do due to the error. I should mention also the device is running android version 4.3. I am not using any media player assets in the project. This error only seems to occur on a packaged android build - iOS has been building fine.

Thanks,
Lucas

Hi Lucas,

If you don’t have a media player created it doesn’t try to use it. Are you using a startup movie, maybe?

I need to see a raw log (not UE4 tag filtered) to see more, but you can try disabling r.DisjointTimerQueries in the DefaultDeviceProfiles.ini for [Android_Adreno330_Ver53] and see if it helps; this is where the stack is showing it was at the sig 11.

Hey Chris,

I dont have a startup movie either.

Ill try what you mentioned but Ill get you a full log soon as I get home tonight (at work currently). By a raw log, you just mean the entire unfiltered log from logcat?

Thanks!
Lucas

Ok, if you don’t have any movies there shouldn’t be anything happening with media player from your APK; this might be a message from something else.

Yes, a full unfiltered log. I recommend clearing the log then starting your APK. Soon as you’ve crashed, save the log.

Looking in BaseDeviceProfiles.ini, it looks like it only turns it on for that one profile so you should be good turning it off. A log with it enabled to see why you see the crash would be helpful; I’d like to make sure no one else will see this.

Hey Chris - so disabling the r.DisjointTimerQueries in the DefaultDeviceProfiles.ini did the trick! Thanks for the information. I can still provide the log if you would like, but my last question would be - would I need to disable this for other devices that potentially have it as well? I am a bit unfamiliar as to how that .ini operates exactly, more so with Android. Thanks!