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

[iOS] Crash when starting playback on devices running iOS 14 #1880

Closed buoutuanzi closed 2 weeks ago

buoutuanzi commented 3 weeks ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue play video on ios crash, debug on xcode know that trigger EXC_BAD_ACCESS

Your Setup (please complete the following information):

To Reproduce just add a mediaPlayer and a displayUGUI to play a video

Logs can see the avproVideo started event

Screenshots If applicable, add screenshots to help explain your problem. 1717415161339

Chris-RH commented 3 weeks ago

EXC_BAD_ACCESS is caused because you are trying to access an object that has already been released from memory.

Which version of xcode are you using? Is it reproducible in a new project, only running the AVPro Video mediaplayer demo scene?

buoutuanzi commented 3 weeks ago

EXC_BAD_ACCESS is caused because you are trying to access an object that has already been released from memory.

Which version of xcode are you using? Is it reproducible in a new project, only running the AVPro Video mediaplayer demo scene?

15.3

buoutuanzi commented 3 weeks ago

EXC_BAD_ACCESS is caused because you are trying to access an object that has already been released from memory.

Which version of xcode are you using? Is it reproducible in a new project, only running the AVPro Video mediaplayer demo scene?

yes, it's a new 2dURP project only import AVPro

Chris-RH commented 3 weeks ago

Have you got any further error messages (if so, please copy and paste rather than screenshot)? Have you been able to test on any other iOS devices?

buoutuanzi commented 3 weeks ago

Have you got any further error messages (if so, please copy and paste rather than screenshot)? Have you been able to test on any other iOS devices?

no, it just crash, so there is no more log

buoutuanzi commented 3 weeks ago

Have you got any further error messages (if so, please copy and paste rather than screenshot)? Have you been able to test on any other iOS devices?

the started event is trigger, and crash

buoutuanzi commented 3 weeks ago

Have you got any further error messages (if so, please copy and paste rather than screenshot)? Have you been able to test on any other iOS devices?

I tested this issue on an iPhone 14 Pro running iOS 16.2.1, and the video plays normally.

Chris-RH commented 3 weeks ago

When using your iphone 11 pro max. Do you get the same result when building a new project in 3d built-in renderer?

MorrisRH commented 3 weeks ago

Reproduced on iPhone X running iOS 14.8. Will get this fixed for the next release.

MorrisRH commented 3 weeks ago

Fixed. This will make it into version 3.0.2

Chris-RH commented 3 weeks ago

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