rmawatson / flutter_isolate

Launch an isolate that can use flutter plugins.
MIT License
262 stars 80 forks source link

Calling FlutterIsolate.kill() crashes an iphone 12 pro max in release mode #122

Open rlueders opened 1 year ago

rlueders commented 1 year ago

I opened the same issue a few days ago. Yesterday, I thought I would I would try a few of the PRs to see if they happened to fix the crash. I thought PR93 fixed the crash, so we closed the original issue yesterday. However, I must have been running in debug, because the issue is still happening in release mode. To be clear, this issue is still happening in master after all of the merges of late. See content from the original issue below.

Calling FlutterIsolate.kill()or FlutterIsolate.killAll() crashes the entire app on a iphone 12 pro max in release mode (but works fine in debug or profile). No errors in the log because it only happens in release. I have also tested on an iphone 7 and kill/killAll works fine in release (as well as debug and profile). Both iphones are running ios 15.7. I don't see the crash on any of my android devices (pixel 2, 3, 4 5a, or 6a).

Also, I tried running the example app but I am getting the following error when running. Im not sure what to do with this. flutter_isolate/example/ios/Runner/AppDelegate.m:4:9: error build: 'path_provider/FLTPathProviderPlugin.h' file not found

tneotia commented 1 year ago

I'm getting a crash in release mode but on Android - Flutter 3.3.4.

maherjaafar commented 1 year ago

@rlueders @tneotia I'm facing the same issue, any updates?