jhomlala / betterplayer

Better video player for Flutter, with multiple configuration options. Solving typical use cases!
Apache License 2.0
932 stars 1.04k forks source link

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Corrupted standard message' #1288

Open Pinturaj opened 10 months ago

Pinturaj commented 10 months ago

Hi, am facing the issue in iOS only, When we exit from better player full screen, the application crash(only on iOS) but working fine in Android. I getting the below logs:- Assertion failure in -[FlutterStandardReader readValueOfType:], FlutterStandardCodec.mm:478 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Corrupted standard message' *** First throw call stack: (0x18f33e69c 0x1875f3c80 0x18e89cdd8 0x10d51d654 0x10d51d7ec 0x10d51e1ac 0x10d51b3bc 0x10cfc9554 0x10a9a8f50 0x10a9aab34 0x10a9bafec 0x10a9baba0 0x18f28901c 0x18f285d28 0x18f285478 0x1d28064f8 0x1916a962c 0x1916a8c68 0x104e9a930 0x1b1fbedcc) <VdoFramework.CrashInfo: 0x28017d8c0> libc++abi: terminating due to uncaught exception of type NSException

below is the methods that cause of crash:- @optionalTypeArgs void pop<T extends Object?>([ T? result ]) { assert(!_debugLocked); assert(() { _debugLocked = true; return true; }()); final _RouteEntry entry = _history.lastWhere(_RouteEntry.isPresentPredicate); if (entry.pageBased) { if (widget.onPopPage!(entry.route, result) && entry.currentState == _RouteLifecycle.idle) { // The entry may have been disposed if the pop finishes synchronously. assert(entry.route._popCompleter.isCompleted); entry.currentState = _RouteLifecycle.pop; } } else { entry.pop(result); assert (entry.currentState == _RouteLifecycle.pop); } if (entry.currentState == _RouteLifecycle.pop) { _flushHistoryUpdates(rearrangeOverlay: false); } assert(entry.currentState == _RouteLifecycle.idle || entry.route._popCompleter.isCompleted); assert(() { _debugLocked = false; return true; }()); _afterNavigation(entry.route); }

abhinay12a commented 10 months ago

I am also facing the same issue... provide any solution asap @jhomlala

Pinturaj commented 10 months ago

@jhomlala Team please look into this.