flutter_to_airplay icon indicating copy to clipboard operation
flutter_to_airplay copied to clipboard

Unexpectedly found nil while unwrapping an Optional value Lost connection to device.

Open ThakarRajesh opened this issue 9 months ago • 1 comments

Once we load video from a local file, then app crashes every-time. We used the most recent version 2.0.4, and when we tried the preview versions, the same problem occurred.

Local asset video file are working fine. But if we download and save video on document directory(getApplicationDocumentsDirectory()) then we load document directory path app crash.

here is log

flutter_to_airplay/FlutterAVPlayer.swift:34: Fatal error: Unexpectedly found nil while unwrapping an Optional value Lost connection to device. Error: Unable to terminate com.xxx on EE5BC5C6-4C03-4748-9B4C-3679047D98D6: ProcessException: Process exited abnormally with exit code -2: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3): Simulator device failed to terminate com.xxx. found nothing to terminate Underlying error (domain=NSPOSIXErrorDomain, code=3): The request to terminate "com.xxx" failed. found nothing to terminate found nothing to terminate Command: /usr/bin/arch -arm64e xcrun simctl terminate EE5BC5C6-4C03-4748-9B4C-3679047D98D6 the Dart compiler exited unexpectedly.

ThakarRajesh avatar May 09 '24 07:05 ThakarRajesh

issue has been fixed Accept pull request https://github.com/MrJai/flutter_to_airplay/pull/30

ThakarRajesh avatar May 10 '24 12:05 ThakarRajesh