While using Android Preview , if I set a background as “Video”, the app will crash just after “Host is loading project…” As soon as the preview starts, the app crashes. Im using Android 5.1 in my Sony C5 Ultra, and an .mp4 video
What type of video is it? MP4 is just a container format and can contain almost anything. The Video
-tag only plays videos supported natively by the operating systems. It could be that you’re trying to play a video that the device can’t decode properly. Or, it can be a bug of course If you can provide a test-case we can take a look at it in a few days, once the Easter holidays are over.
You can use this link to send a project to the Fuse team (it will not be public or shared with anyone else): https://www.dropbox.com/request/ZgndLtJQm5eGzG9cicGK
The thing is that if I Build & Run (No live preview) the video will play just fine. It crashes only when live previewing
That sounds like a bug indeed - can you upload a test case that demonstrates this behavior (if you haven’t already?) so it can be debugged?
I get the same effect using the example found here: https://www.fusetools.com/learn/fuse#video-example
Running “fuse preview -t=android” I get this output.
03-31 15:05:15.115 7810 7810 I art : Late-enabling -Xcheck:jni
03-31 15:05:15.116 757 1403 I ActivityManager: Start proc 7810:com.unkproto/u0a191 for activity com.unkproto/.unkproto
03-31 15:05:15.219 7810 7810 D unkproto: SUT: false CML: false SDK: 23
03-31 15:05:15.281 7810 7810 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 10/21/15, 369a2ea, I96aee987eb
03-31 15:05:15.478 7810 7842 D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
03-31 15:05:15.522 7810 7842 I OpenGLRenderer: Initialized EGL, version 1.4
03-31 15:05:18.355 7810 7881 W MediaPlayer: info/warning (801, 0)
03-31 15:05:18.355 7810 7810 D MediaPlayer: setSubtitleAnchor in MediaPlayer
03-31 15:05:18.370 7810 7881 W MediaPlayer: info/warning (801, 0)
03-31 15:05:18.373 7810 7810 D MediaPlayer: setSubtitleAnchor in MediaPlayer
03-31 15:05:18.377 7810 7810 D unkproto: Uno.Exception:
03-31 15:05:18.377 7810 7810 D unkproto: at Uno.Threading.POSIXMutex.Lock()
03-31 15:05:18.377 7810 7810 D unkproto: at Uno.Threading.Future1.InternalResolve(T)
03-31 15:05:18.377 7810 7810 D unkproto: at Uno.Threading.Promise1.Resolve(T)
03-31 15:05:18.377 7810 7810 D unkproto: at Fuse.Video.Graphics.Android.VideoLoader.VideoPromise.OnPrepared(object,Uno.EventArgs)
03-31 15:05:18.377 7810 7810 D unkproto: at Fuse.Video.Graphics.Android.MediaPlayer.OnPrepared()
03-31 15:05:18.377 7810 7810 D AndroidRuntime: Shutting down VM
03-31 15:05:18.378 7810 7810 E AndroidRuntime: FATAL EXCEPTION: main
03-31 15:05:18.378 7810 7810 E AndroidRuntime: Process: com.unkproto, PID: 7810
03-31 15:05:18.378 7810 7810 E AndroidRuntime: java.lang.RuntimeException: Uno.Exception:
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at Uno.Threading.POSIXMutex.Lock()
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at Uno.Threading.Future1.InternalResolve(T)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at Uno.Threading.Promise1.Resolve(T)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at Fuse.Video.Graphics.Android.VideoLoader.VideoPromise.OnPrepared(object,Uno.EventArgs)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at Fuse.Video.Graphics.Android.MediaPlayer.OnPrepared()
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at com.Bindings.ExternedBlockHost.callUno_Fuse_Video_Graphics_Android_MediaPlayer_OnPrepared1(Native Method)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at com.foreign.Fuse.Video.Graphics.Android.MediaPlayer$1.onPrepared(MediaPlayer.java:32)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2815)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
03-31 15:05:18.378 7810 7810 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-31 15:05:25.521 7810 7810 I Process : Sending signal. PID: 7810 SIG: 9
03-31 15:05:25.597 757 18898 I ActivityManager: Process com.unkproto (pid 7810) has died
Process com.unkproto terminated.
Hi!
This bug has been fixed and will be included in the upcoming release