fluttercommunity / chewie

The video player for Flutter with a heart of gold
MIT License
1.94k stars 1.01k forks source link

[iOS] Crash when zooming in on videos in Flutter 3.10.0 #724

Open hukusuke1007 opened 1 year ago

hukusuke1007 commented 1 year ago

I'm experiencing a crash issue when zooming in on videos in Flutter 3.10.0, but this problem is specific to iOS. The crash occurs on both physical devices and simulators. Below is the error log:

Lost connection to device.
Exception: Unable to terminate xxx on yyy:
ProcessException: Process exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Simulator device returned an error for the requested operation.
found nothing to terminate
Underlying error (domain=NSPOSIXErrorDomain, code=3):
    The operation couldn’t be completed. found nothing to terminate
    found nothing to terminate
  Command: /usr/bin/arch -arm64e xcrun simctl terminate xxx yyy

[Additional Information]

The crash only occurs when zooming in on videos within the Flutter 3.10.0 framework on iOS. The issue is not reproducible on Android devices or simulators. I have tried running the app on different iOS devices and simulators, but the crash consistently occurs. I have verified that this problem is not specific to my codebase by testing with a minimal Flutter project that only includes video zooming functionality.

Thank you for your attention to this matter. I look forward to a resolution to this issue.

https://github.com/fluttercommunity/chewie/assets/29278033/0b8bc287-42a2-477c-8a16-4eccb1f6ac3c

diegotori commented 1 year ago

@hukusuke1007 thank you for bringing this to our attention:

In order to help you further, we will need the version of chewie that you were using.

Also, I will need a reproducible example, since so far, I have not been able to reproduce it using the same iOS simulator and the library's example app.

hukusuke1007 commented 1 year ago

@diegotori I found the difference point. The problem seems to occur when using google_mobile_ads to display banner ads.....

This is a video of the operation when banner ads are hidden.

https://github.com/fluttercommunity/chewie/assets/29278033/a41b544a-9cf4-4f7e-bdd9-ed4349a1f92c

diegotori commented 1 year ago

@hukusuke1007 Then I think you may have to bring this up with the Flutter Team.

There also might be a conflict with the VideoController that's being used, since you may have to keep only one controller open/active at a given time, since google_mobile_ads probably uses video_player under the hood to render video ads.

Either way, please create a reproducible example that you can submit to the Flutter Team, since chewie for all intents and purposes, uses video_player underneath. They're gonna want one in order to help you diagnose this issue further.