Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7190

VideoPlayer Crash on Android

$
0
0

The video I am loading in my Unity game crashes on Android. It seems to work fine on iOS but every now and then, there is a crash on Android which is not specific at all.The essential part of the log is:

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0

Cause: null pointer dereference

And the backtrace is consisted of 8 addresses in libunity.so. I tried using addr2line with the very same addresses and the information I retrieved was: JNI_OnUnload, UnitySendMessage and UnitySwappy_injectTracer in that order. I could not find anything specific that includes these functions and video crashes.

The log also contains:

AndroidVideoMedia::OpenExtractor could not translate archive:/CAB-numbers and letters/CAB-numbers and letters. resource to a local file.

Make sure the file exists, is on disk (not in memory), and not compressed.

However, this message appears in the log even when the video is played and there is no crash.

I am loading the video from resources, not from a URL. It is not compressed, nor in an AssetBundle. I have spent the last few days trying everything I have found from people with similar problems:

  1. Update Unity to the latest 2019.4.33f1
  2. Used VideoPlayer.Prepare() and when the successfully prepared event is fired, then I play the video
  3. Disabled Multithreading Rendering
  4. Different videos than the original ones
  5. Tried using VideoPlayer.ErrorRecieved but no error is fired
  6. When we use VideoPlayer.Play the video player does not play the video (the debugging process included subscribing to an even when the video is played, the code did not enter the event)
  7. Made different builds with the videos` Transcode enabled and disabled and without audio
  8. Removed Vulkan in Graphics APIs and only used OpenGLES3
  9. Disabled Strip Engine Code

Unfortunately, none of these seems to work and the crash still appears at least once every 40 times the video is played.


Viewing all articles
Browse latest Browse all 7190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>