RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

[Bug] v3 Android play video crash. #1927

Open zzimagination opened 5 days ago

zzimagination commented 5 days ago

Describe the issue Play the video while the game is running, and then the game crashes. An error was found in the java code.

Your Setup (please complete the following information):

Logs java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.Collection.isEmpty()' on a null object reference
at com.renderheads.AVPro.Video.Player_Base.UpdateCommandQueue(Unknown Source:14)
at com.renderheads.AVPro.Video.Player_Base.Update(Unknown Source:100)
at com.renderheads.AVPro.Video.Manager$1.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:223)
at android.os.Looper.loop(Looper.java:324)
at android.app.ActivityThread.main(ActivityThread.java:8382)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1059)

Chris-RH commented 5 days ago
  1. Can you make sure you are using the latest version of AVPro Vide (3.0.5) and retest please.
  2. Can you reproduce this in a new project running only AVPro Video mediaplayer demo scene?
  3. Can you supply a full, unfiltered logcat in txt form of the above
  4. Is the video streamed or played locally?
  5. Can you supply a sample of the video/stream URL. Either here or to unitysupport@renderheads.com
  6. Have you tested it on any other devices?
Ste-RH commented 4 days ago

We fixed a bug that looks very similar to this a release or two ago. Please update to check @zzimagination .

EDIT: That said, I have just had another look at that part of the plugin code, and I can see a potential edge case that I have now fixed up. This will make it into the next version (v3.0.6).

zzimagination commented 4 days ago
  1. Can you make sure you are using the latest version of AVPro Vide (3.0.5) and retest please.
  2. Can you reproduce this in a new project running only AVPro Video mediaplayer demo scene?
  3. Can you supply a full, unfiltered logcat in txt form of the above
  4. Is the video streamed or played locally?
  5. Can you supply a sample of the video/stream URL. Either here or to unitysupport@renderheads.com
  6. Have you tested it on any other devices?
  1. We are in close beta, I will try to upgrade later.
  2. (3) Sorry. This is error occurred on the player's device, No further information is available
  3. Local,streamingAssets and persistentData
  4. Sorry, the original video cannot be provided at the moment, but this video should be a very normal mp4.
  5. Some phones had similar problems, but no further information was available.

We will run more tests and provide new information as it becomes available

Chris-RH commented 5 hours ago

AVPro Video version 3.0.6 has been released. Please let us know if it has not fixed your issue.