wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
126 stars 20 forks source link

App crash on IOS and iPad 17 , #82

Open someshswami9 opened 2 months ago

someshswami9 commented 2 months ago

Describe the bug My flutter app crashed due to fvp , for registerwith used in main(),

fvp ^0.16.0

crashed 3 to 4 times for different different scenarios but in report got same error .

first crashed when open the app. second when closed from background app, and once when I am watching the video and changed the screen

Expected behavior App should not be crashed

Log

Full log will be attached to attachment testflight_feedback-9.zip

[testflight_feedback-9.zip](https://github.com/wang-bin/fvp/files/15126790/testflight_feedback-9.zip)

add the following lines before registerWith()

  Logger.root.level = Level.ALL;
  final df = DateFormat("HH:mm:ss.SSS");
  Logger.root.onRecord.listen((record) {
    print('${record.loggerName}.${record.level.name}: ${df.format(record.time)}: ${record.message}');
  });
import 'package:fvp/fvp.dart' as fvp;

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  fvp.registerWith();

and

9   fvp                             0x00000001058a96e0 std::__1::__throw_bad_function_call[abi:v160006]() + 52 (function.h:72)
10  fvp                             0x00000001058aab84 std::__1::__function::__value_func<bool (mdk::MediaStatus, mdk::MediaStatus)>::operator()[abi:v160006](mdk::MediaStatus&&, mdk::MediaStatus&&) const + 4 (function.h:509)
wang-bin commented 2 months ago

the crash is fixed recently. please upgrade fvp, and run

flutter clean 
pod cache clean mdk 
find . -name Podfile.lock -delete

and build again

someshswami9 commented 2 months ago

Still crashed on v0.17.0

wang-bin commented 2 months ago

show me crash log

someshswami9 commented 2 months ago

Sorry for late reply. but same as above.

wang-bin commented 2 months ago

i need the log. if same crash log, then you dependecy is not upgraded.

wang-bin commented 1 month ago

try master branch