betterplayer icon indicating copy to clipboard operation
betterplayer copied to clipboard

[BUG] Screen is not showing picture on IOS just black box appeared.

Open DK070202 opened this issue 2 years ago • 8 comments

Describe the bug Video screen is not showing picture on ios just audio is playing.

To Reproduce Steps to reproduce the behavior:

  1. Create flutter project and add better_player as dependencie.
  2. Run the project and analyze the behaviour.

Expected behavior Screen should show picture inspite of black box.

Screenshots

Flutter doctor [✓] Flutter (Channel stable, 2.10.3, on macOS 12.3 21E230 darwin-x64, locale en-GB) • Flutter version 2.10.3 at /Users/nileshmsd/developer/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 7e9793dee1 (5 weeks ago), 2022-03-02 11:23:12 -0600 • Engine revision bd539267b4 • Dart version 2.16.1 • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at /Users/nileshmsd/Library/Android/sdk • Platform android-32, build-tools 32.1.0-rc1 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.3

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2021.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] Connected device (1 available) • iPhone 13 (mobile) • 1501A2D5-138A-4FF2-8173-91C80250DAB6 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator)

[✓] HTTP Host Availability • All required HTTP hosts are available Better Player version

  • Version: 0.0.81

Smartphone (please complete the following information):

  • Device: Simulator Iphone 13
  • OS: iOS 15.4

DK070202 avatar Apr 08 '22 10:04 DK070202

I had this issue only on my iOS Simulator. Try using a physical device.

nathantew14 avatar Apr 10 '22 02:04 nathantew14

i have same issue on physical android device and simulators

AhmedAbogameel avatar Apr 13 '22 00:04 AhmedAbogameel

Any solution please? I have the same issue on Physical Iphone and Simulator. the Video is progressing, but it only shows black screen and the loading indicator on top of the video.

On Android it works normally.

EDIT: I was using the latest version of better_player 0.0.81 but i changed to better_player 0.0.80 and now everything works. The problem was with the latest .81 version. Roll back to .80 until it's fixed.

FlatCodeIq avatar Apr 14 '22 19:04 FlatCodeIq

Any solution to this problem, I am facing this issue on both real devices and simulator, my app is crashing with error NSInvalidArgumentException error, Error message says:-

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x1118c8fb0'

Downgrading to 0.0.80 is also not working. If am not playing any video then my app is working without any issues. Here is error log:

2022-04-18 14:59:39.347148+0530 Runner[97509:1994412] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x4014b70c 8322afc9 dfb06ed8 13148b48 ... b6adae0d b2637192 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x073253e6 9a9b67cc 089d6640 ca4fdb3e ... 46b00d8b bca98999 }} 2022-04-18 14:59:39.347304+0530 Runner[97509:1994412] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x4014b70c 8322afc9 dfb06ed8 13148b48 ... b6adae0d b2637192 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x073253e6 9a9b67cc 089d6640 ca4fdb3e ... 46b00d8b bca98999 }} 2022-04-18 14:59:39.532574+0530 Runner[97509:1993678] -[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x1118c8fb0 2022-04-18 14:59:39.729041+0530 Runner[97509:1993678] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull _fastCStringContents:]: unrecognized selector sent to instance 0x1118c8fb0' *** First throw call stack: ( 0 CoreFoundation 0x00000001115d6d44 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000010f958a65 objc_exception_throw + 48 2 CoreFoundation 0x00000001115e5cfa +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0 3 CoreFoundation 0x00000001115db2ff forwarding + 1471 4 CoreFoundation 0x00000001115dd488 _CF_forwarding_prep_0 + 120 5 libswiftCore.dylib 0x0000000111e2602e $ss18_bridgeCocoaStringys01_C4GutsVyXlF + 158 6 libswiftCore.dylib 0x0000000111e260e2 $sSS12_cocoaStringSSyXl_tcfC + 18 7 libswiftFoundation.dylib 0x0000000113f3ec7c $sSS10FoundationE36_unconditionallyBridgeFromObjectiveCySSSo8NSStringCSgFZ + 28 8 better_player 0x000000010f8a3775 $s13better_player12CacheManagerC07stopPreC0_8cacheKey17completionHandlery10Foundation3URLV_SSSgySbcSgtFTo + 165 9 better_player 0x000000010f89fdf6 -[BetterPlayerPlugin handleMethodCall:result:] + 9110 10 Flutter 0x000000011ce21571 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 104 11 Flutter 0x000000011c8b06df _ZNK7flutter21PlatformMessageRouter21HandlePlatformMessageENSt3__110unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE + 193 12 Flutter 0x000000011c8b5df9 _ZN7flutter15PlatformViewIOS21HandlePlatformMessageENSt3__110unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE + 35 13 Flutter 0x000000011ccf609b _ZNSt3__110__function6__funcIN3fml8internal14CopyableLambdaIZN7flutter5Shell29OnEngineHandlePlatformMessageENS_10unique_ptrINS5_15PlatformMessageENS_14default_deleteIS8_EEEEE4$_15EENS_9allocatorISD_EEFvvEEclEv + 81 14 Flutter 0x000000011cbf5ef0 _ZN3fml15MessageLoopImpl10FlushTasksENS_9FlushTypeE + 164 15 Flutter 0x000000011cbfc324 ZN3fml17MessageLoopDarwin11OnTimerFireEP16__CFRunLoopTimerPS0 + 26 16 CoreFoundation 0x00000001115440fa CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20 17 CoreFoundation 0x0000000111543bc8 __CFRunLoopDoTimer + 915 18 CoreFoundation 0x0000000111543189 __CFRunLoopDoTimers + 265 19 CoreFoundation 0x000000011153d76d __CFRunLoopRun + 2016 20 CoreFoundation 0x000000011153ca90 CFRunLoopRunSpecific + 562 21 GraphicsServices 0x0000000115460c8e GSEventRunModal + 139 22 UIKitCore 0x000000012585190e -[UIApplication _run] + 928 23 UIKitCore 0x0000000125856569 UIApplicationMain + 101 24 Runner 0x000000010274778f main + 63 25 dyld 0x000000010b084f21 start_sim + 10 26 ??? 0x0000000202ce051e 0x0 + 8636990750 27 ??? 0x0000000202cdb000 0x0 + 8636968960 ) libc++abi: terminating with uncaught exception of type NSException

harmeet-rgyan avatar Apr 18 '22 09:04 harmeet-rgyan

Facing same issue

gvsakhil avatar May 10 '22 10:05 gvsakhil

Facing same issue

AyberkAhmet avatar May 29 '22 17:05 AyberkAhmet

Same issue

LarYoungruu avatar Jun 24 '22 16:06 LarYoungruu

Hello, I did a fork of v0.0.83 and did a rollback of a feature that caused black screen on iOS simulator, in order to fix issue #1029, and probably will work for this too.

Please, I will be glad if you can, follow the instructions in this comment and help me to verify if this solves your black screen.

NOTE: The fork is not a fix and is only intended for issue verification purpose. The idea is to use the fork to check if you can see your videos with it (no black screen), this can give us hints about the problem. The fix can cause segmentation faults so do not use in production.

marioloko avatar Jun 28 '22 23:06 marioloko