Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[camera] iOS crash under [FLTCam onCancelWithArguments:] #76297

Closed
carman247 opened this issue Feb 18, 2021 · 24 comments
Closed

[camera] iOS crash under [FLTCam onCancelWithArguments:] #76297

carman247 opened this issue Feb 18, 2021 · 24 comments
Labels
a: release Challenges faced when attempting to productionize an app c: crash Stack traces logged to the console c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. p: camera The camera plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-ios iOS applications specifically waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@carman247
Copy link

carman247 commented Feb 18, 2021

I'm not quite sure what's causing this crash but it only seem to have started happening after upgrading flutter from 1.17.2 to 1.22.6.

Seem to happen when a user opens a screen with camera preview

I have been using the same version of camera package (camera: ^0.5.6) before and after upgrading flutter.

My methods for initialising and taking pictures have remained the same.

I'm unable to force the crash on my device but I can see quite of lot of crashes occuring on iOS devices since the new verison built with Flutter 1.22.6

Really hope someone can make some sense out of this..

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x19de580f8 objc_msgSend + 24
1  Flutter                        0x105105a24 (Missing)
2  camera                         0x1076e3a94 -[FLTCam onCancelWithArguments:] + 48
3  Flutter                        0x10565ea80 (Missing)
4  Flutter                        0x10512941c (Missing)
5  Flutter                        0x105400454 (Missing)
6  Flutter                        0x105132844 (Missing)
7  Flutter                        0x1051347b0 (Missing)
8  CoreFoundation                 0x188dbdfa0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
9  CoreFoundation                 0x188dbdba0 __CFRunLoopDoTimer + 1064
10 CoreFoundation                 0x188dbcffc __CFRunLoopDoTimers + 328
11 CoreFoundation                 0x188db6ee4 __CFRunLoopRun + 1936
12 CoreFoundation                 0x188db621c CFRunLoopRunSpecific + 600
13 GraphicsServices               0x1a0982784 GSEventRunModal + 164
14 UIKitCore                      0x18b7f6ee8 -[UIApplication _run] + 1072
15 UIKitCore                      0x18b7fc75c UIApplicationMain + 168
16 Runner                         0x104cb8558 main + 6 (AppDelegate.swift:6)
17 libdyld.dylib                  0x188a766b0 start + 4
[✓] Flutter (Channel stable, 1.22.6, on macOS 11.2.1 20D75 darwin-x64, locale en-GB)
    • Flutter version 1.22.6 at /Users/chris/Developer/flutter
    • Framework revision 9b2d32b605 (4 weeks ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/chris/Library/Android/sdk
    • Platform android-30, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0

[!] Connected device
    ! No devices available
@mraleph
Copy link
Member

mraleph commented Feb 18, 2021

@flutter-symbolizer-bot force ios arm64 #76297 (comment) engine#2f0af37152

@flutter-symbolizer-bot
Copy link

crash from #76297 (comment) symbolized using symbols for 2f0af3715217a0c2ada72c717d4ed9178d68f6ed ios-arm64-release

#00 000000019de580f8 libobjc.A.dylib objc_msgSend + 24
#01 0000000105105a24 Flutter Flutter + 55844
                             -[FlutterEngine setMessageHandlerOnChannel:binaryMessageHandler:]
                             flutter/shell/platform/darwin/ios/framework/Source/FlutterEngine.mm:731:51
#02 00000001076e3a94 camera -[FLTCam onCancelWithArguments:] + 48
#03 000000010565ea80 Flutter Flutter + 5663360
                             ___ZL39SetStreamHandlerMessageHandlerOnChannelPU31objcproto20FlutterStreamHandler8NSObjectP8NSStringPU33objcproto22FlutterBinaryMessengerS_PU29objcproto18FlutterMethodCodecS__block_invoke
                             flutter/shell/platform/darwin/common/framework/Source/FlutterChannels.mm:339:29
#04 000000010512941c Flutter Flutter + 201756
                             flutter::PlatformMessageRouter::HandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>) const
                             flutter/shell/platform/darwin/ios/framework/Source/platform_message_router.mm:27:5
                             flutter::PlatformViewIOS::HandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)
                             flutter/shell/platform/darwin/ios/platform_view_ios.mm:62:0
#05 0000000105400454 Flutter Flutter + 3179604
                             flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33::operator()() const
                             flutter/shell/common/shell.cc:1081:17
                             decltype(std::__1::forward<flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33&>(fp)()) std::__1::__invoke<flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33&>(flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33&)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4425:0
                             void std::__1::__invoke_void_return_wrapper<void>::__call<flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33&>(flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33&)
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__functional_base:348:0
                             std::__1::__function::__alloc_func<flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33, std::__1::allocator<flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33>, void ()>::operator()()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1533:0
                             std::__1::__function::__func<flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33, std::__1::allocator<flutter::Shell::OnEngineHandlePlatformMessage(fml::RefPtr<flutter::PlatformMessage>)::$_33>, void ()>::operator()()
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1707:0
#06 0000000105132844 Flutter Flutter + 239684
                             std::__1::__function::__value_func<void ()>::operator()() const
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1860:16
                             std::__1::function<void ()>::operator()() const
                             /opt/s/w/ir/cache/osx_sdk/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2419:0
                             fml::MessageLoopImpl::FlushTasks(fml::FlushType)
                             flutter/fml/message_loop_impl.cc:130:0
#07 00000001051347b0 Flutter Flutter + 247728
                             fml::MessageLoopImpl::RunExpiredTasksNow()
                             flutter/fml/message_loop_impl.cc:143:3
                             fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)
                             flutter/fml/platform/darwin/message_loop_darwin.mm:75:0
#08 0000000188dbdfa0 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
#09 0000000188dbdba0 CoreFoundation __CFRunLoopDoTimer + 1064
#10 0000000188dbcffc CoreFoundation __CFRunLoopDoTimers + 328
#11 0000000188db6ee4 CoreFoundation __CFRunLoopRun + 1936
#12 0000000188db621c CoreFoundation CFRunLoopRunSpecific + 600
#13 00000001a0982784 GraphicsServices GSEventRunModal + 164
#14 000000018b7f6ee8 UIKitCore -[UIApplication _run] + 1072
#15 000000018b7fc75c UIKitCore UIApplicationMain + 168
#16 0000000104cb8558 Runner main + 6 (AppDelegate.swift:)
#17 0000000188a766b0 libdyld.dylib start + 4

(Load address missing from the report, detected heuristically: 00000001050f8000)

@carman247
Copy link
Author

carman247 commented Feb 18, 2021

P.S. I was on a previous version of xcode when this was built - it was 11.3.1 (11C505).

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Feb 18, 2021
@darshankawar
Copy link
Member

@carman247
Curious to know that you upgraded stable version, but not the camera plugin version ? The plugin has gone through many fixes since then, https://pub.dev/packages/camera/changelog
Is there a way for you to upgrade to latest and check if you still get similar crashes ?

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 18, 2021
@carman247
Copy link
Author

@carman247
Curious to know that you upgraded stable version, but not the camera plugin version ? The plugin has gone through many fixes since then, https://pub.dev/packages/camera/changelog
Is there a way for you to upgrade to latest and check if you still get similar crashes ?

I'm currently updating to latest version of camera package 0.7.0+2 but won't find out if this has solved issues until new app version is released, which will probably be later next week

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 18, 2021
@darshankawar
Copy link
Member

Labeling this for further investigation, since there's no reproducible use case that crashes the app.
@carman247 Please update us when you release new app version to confirm if upgrading plugin version fixes the issue or issue persists.

@darshankawar darshankawar added a: release Challenges faced when attempting to productionize an app platform-ios iOS applications specifically c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. p: camera The camera plugin p: first party and removed in triage Presently being triaged by the triage team labels Feb 18, 2021
@carman247
Copy link
Author

Labeling this for further investigation, since there's no reproducible use case that crashes the app.
@carman247 Please update us when you release new app version to confirm if upgrading plugin version fixes the issue or issue persists.

Will do :)

@cyanglaz cyanglaz added the P2 Important issues not at the top of the work list label Feb 18, 2021
@hossiiii
Copy link

hossiiii commented Feb 23, 2021

The crash message is different, but when I take a picture of the camera, the flash fires and iOS crashes. Is it the same problem?

flutter 1.22.6
camera ^ 0.7.0 + 2

----------------flutter doctor -v --------------

[✓] Flutter (Channel stable, 1.22.6, on macOS 11.2.1 20D74 darwin-arm, locale ja-JP)
• Flutter version 1.22.6 at /Users/xxxxxxxxxx/Documents/flutter
• Framework revision 9b2d32b (5 weeks ago), 2021-01-22 14:36:39 -0800
• Engine revision 2f0af37152
• Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/xxxxxxxxxxxx/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1

[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin installed
• Dart plugin version 201.9317
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[!] VS Code (version 1.53.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
• XXXXのiPhone (mobile) • xxxxxxxxxxxxxxxxxxx • ios • iOS 14.4

-------------crash repo----------------

EXC_BAD_ACCESS: isEqual: > UTF8String >
Attempted to dereference garbage pointer 0x71fedeed0.
libobjc.A 0x1993e3474 objc_msgSend
Flutter 0x105436634 -[FlutterEngine setMessageHandlerOnChannel:binaryMessageHandler:]
camera 0x1032ce0c0 -[FLTCam onCancelWithArguments:]
Flutter 0x105c9dce8 SetStreamHandlerMessageHandlerOnChannel
Flutter 0x10545c144 flutter::PlatformViewIOS::HandlePlatformMessage
Flutter 0x105735bd8 std::__1::__function::__func::operator()
Flutter 0x105465670 fml::MessageLoopImpl::FlushTasks
Flutter 0x105467d7c fml::MessageLoopDarwin::OnTimerFire
CoreFoundation 0x184fe23dc CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
CoreFoundation 0x184fe1fe0 __CFRunLoopDoTimer
CoreFoundation 0x184fe14c0 __CFRunLoopDoTimers
CoreFoundation 0x184fdb84c __CFRunLoopRun
CoreFoundation 0x184fdab9c CFRunLoopRunSpecific
GraphicsServices 0x19bd43594 GSEventRunModal
UIKitCore 0x1878cc2f0 -[UIApplication _run]
UIKitCore 0x1878d1870 UIApplicationMain
Runner 0x102bd0620 main
libdyld 0x184cb9564 start

----------------pubspec.yaml--------------

name: tflite_demo
description: A new Flutter project.

version: 1.0.0+1

environment:
sdk: ">=2.1.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
tflite: 1.1.1
image: ^2.1.4
image_picker: ^0.6.7+4
camera: ^0.7.0+2
path_provider: ^1.6.14
firebase_core: ^0.7.0
cloud_firestore: ^0.16.0
firebase_auth: ^0.20.0+1
firebase_storage: ^7.0.0
intl: ^0.16.1
screen: ^0.0.5
flutter_webview_plugin: ^0.3.11
in_app_purchase: ^0.3.4+16
flutter_native_splash: ^0.1.9
shared_preferences: ^0.5.12+4
flutter_sliding_tutorial: ^0.1.0
sentry_flutter: ^4.0.4
battery: ^1.0.11
device_info: ^1.0.0

cupertino_icons: ^0.1.2

dev_dependencies:
flutter_test:
sdk: flutter

flutter_native_splash:
image: "assets/image/splash_250.png"
color: "FFFFFF"

flutter:
uses-material-design: true
assets:
- assets/tflite/ssd_mobilenet_v3_large.txt
- assets/tflite/ssd_mobilenet_v3_large.tflite
- assets/tflite/ssd_mobilenet_v3_large_ios.tflite
- assets/tflite/01_face.txt
- assets/tflite/01_face.tflite
- assets/tflite/ssd_mobilenet.txt
- assets/tflite/ssd_mobilenet.tflite
- assets/image/ninja_84005.png
- assets/image/ninja_84005_r.png
- assets/image/splash.png
- assets/image/ninja_icon_login.png
- assets/image/ninja_icon_new.png
- assets/image/dot1.png
- assets/image/dot2.png
- assets/image/tutorial1.png
- assets/image/tutorial2.png
- assets/image/tutorial3.png
- assets/image/tutorial4.png
- assets/image/tutorial5.png
- assets/image/tutorial6.png

@hossiiii
Copy link

sorry.
In my case, after saving the photo, it seems that it crashed because I specified a file name that does not exist and made a call. Therefore, I think it is different from the case here.

@dayron9110
Copy link

Labeling this for further investigation, since there's no reproducible use case that crashes the app.
@carman247 Please update us when you release new app version to confirm if upgrading plugin version fixes the issue or issue persists.

Will do :)

Any news?

@carman247
Copy link
Author

Labeling this for further investigation, since there's no reproducible use case that crashes the app.
@carman247 Please update us when you release new app version to confirm if upgrading plugin version fixes the issue or issue persists.

Will do :)

Any news?

Hi, yes! Sorry for late response.

I upgraded from camera: ^0.5.6 to 0.6.0 and it seems to have fixed the problem.

I wasn't able to update to the latest version, due to some weird behaviour with orientation on iOS but that's ok and not related to this issue.

@deepak786
Copy link

deepak786 commented Apr 2, 2021

The same issue is logged in Crashlytics from our app:
Crash log:

Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010
Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1a96740f8 objc_msgSend + 24
1  Flutter                        0x1034d6b40 (Missing)
2  Flutter                        0x1034de5cc (Missing)
3  Flutter                        0x1037fab40 (Missing)
4  Flutter                        0x1037967a8 (Missing)
5  Flutter                        0x103798608 (Missing)
6  CoreFoundation                 0x1945d9fa0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
7  CoreFoundation                 0x1945d9ba0 __CFRunLoopDoTimer + 1064
8  CoreFoundation                 0x1945d8ffc __CFRunLoopDoTimers + 328
9  CoreFoundation                 0x1945d2ee4 __CFRunLoopRun + 1936
10 CoreFoundation                 0x1945d221c CFRunLoopRunSpecific + 600
11 GraphicsServices               0x1ac19e784 GSEventRunModal + 164
12 UIKitCore                      0x197012ee8 -[UIApplication _run] + 1072
13 UIKitCore                      0x19701875c UIApplicationMain + 168
14 Agenda BOA                     0x10285f084 main + 5 (AppDelegate.swift:5)
15 libdyld.dylib                  0x1942926b0 start + 4
List of dependencies from pubspec.yml of our app:
  flutter_keyboard_visibility: ^4.0.2
  provider: ^4.3.3
  url_launcher: ^5.7.5
  bot_toast: ^3.0.5
  visibility_detector: ^0.1.5
  flutter_svg: ^0.19.3 #web support pending, pre-release version supports web so they are preparing it for web
  firebase_core: ^0.7.0
  firebase_auth: ^0.20.0+1
  firebase_analytics: ^7.0.1
  firebase_crashlytics: ^0.4.0+1 #web support pending
  firebase_database: ^6.0.0 #web support pending
  firebase_storage: ^7.0.0
  cloud_functions: ^0.9.0
  flutter_switch: ^0.2.2
  shared_preferences: ^0.5.12+2
  json_annotation: ^3.1.0
  collection: ^1.14.13
  flutter_masked_text: ^0.8.0
  cpfcnpj: ^1.0.3
  image_picker: ^0.6.7+12 #web support pending, add image_picker_for_web
  image_cropper: ^1.3.1 #web support pending, alternate package crop
  cached_network_image: ^2.3.3
  flutter_cache_manager: ^2.0.0
  diacritic: ^0.1.1
  flutter_sticky_header: ^0.5.0
  intercom_flutter: ^2.3.3 #web support pending
  device_info_plus: ^0.6.0
  crypto: ^2.1.5
  encrypt: ^4.1.0
  numberpicker: ^1.3.0
flutter doctor -v
[✓] Flutter (Channel dev, 2.1.0-12.1.pre, on Mac OS X 10.15.6 19G2021
    darwin-x64, locale en-US)
    • Flutter version 2.1.0-12.1.pre at /Library/flutter
    • Framework revision 8264cb3e8a (3 weeks ago), 2021-03-10 12:37:57 -0800
    • Engine revision 711ab3fda0
    • Dart version 2.13.0 (build 2.13.0-116.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/appleapple/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/appleapple/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.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
      1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2019.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.55.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.114

• No issues found!

I don't have the reproducible steps.
I will try to reproduce the issue by taking the picture from the camera according to this comment #76297 (comment). We are not using the camera plugin but we have the image_picker.

@stuartmorgan stuartmorgan added the c: fatal crash Crashes that terminate the process label Apr 5, 2021
@deepak786
Copy link

deepak786 commented Apr 7, 2021

update: I tried to pick the image from the camera and working fine.
So I don't know what is the reason and reproducible steps for this issue.

@deepak786
Copy link

@darshankawar is it similar to #79335?

@stuartmorgan stuartmorgan added this to To Do in Plugin 2021Q2 Hotlist via automation May 26, 2021
@stuartmorgan stuartmorgan changed the title iOS crash EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x0000000fe2d7e990 [camera] iOS crash under [FLTCam onCancelWithArguments:] May 26, 2021
@mvanbeusekom
Copy link

As the OP confirmed that the issue doesn't occur anymore after upgrading to version 0.6.0 (coming from 0.5.6) I think we can close this issue.

The issue mentioned by @deepak786 is not related to the camera plugin (as he doesn't use the camera plugin in his project) and seems (although not directly clear from the stack trace) related to the image_picker which is a separate plugin and is therefore unrelated. @deepak786 if you are still experiencing this issue with the image_picker plugin, please create a new issue.

@stuartmorgan do you agree with closing the issue?

@mvanbeusekom mvanbeusekom moved this from To Do to In Progress in Plugin 2021Q2 Hotlist May 27, 2021
@deepak786
Copy link

@mvanbeusekom I think for me the issue was #79335 which is already solved. I don't have new crashes.

@stuartmorgan
Copy link
Contributor

@mvanbeusekom #76297 (comment) is the same stack, but with 0.7.0, so I'm skeptical that it's actually fixed.

@mvanbeusekom
Copy link

@mvanbeusekom #76297 (comment) is the same stack, but with 0.7.0, so I'm skeptical that it's actually fixed.

Yes I also noticed that issue, however the same user mentions in this comment that he was specifying a none existing file name that caused the crash.

@stuartmorgan
Copy link
Contributor

We shouldn't crash the entire app if someone provides an incorrect filename; if that's indeed the cause, that means we have a repro case to work from.

@mvanbeusekom
Copy link

You are right something definitely is going wrong, I will start a further investigation.

@mvanbeusekom mvanbeusekom moved this from In Progress to To Do in Plugin 2021Q2 Hotlist Jun 2, 2021
@mvanbeusekom mvanbeusekom moved this from To Do to In Progress in Plugin 2021Q2 Hotlist Jun 2, 2021
@renefloor
Copy link
Contributor

sorry.
In my case, after saving the photo, it seems that it crashed because I specified a file name that does not exist and made a call. Therefore, I think it is different from the case here.

Since 0.6.0 it is not possible anymore to supply a file name yourself when starting the camera for video or taking a picture.
@hossiiii Can you explain in more detail how you did set the file name, how you can set it wrong and how you fixed it in your app?

For everybody else it looks like this issue was fixed in 0.7.0

@mvanbeusekom mvanbeusekom added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 8, 2021
@darshankawar
Copy link
Member

@mvanbeusekom Hi, Should this issue be kept open or can be closed ? #76297 (comment)

@mvanbeusekom
Copy link

mvanbeusekom commented Jul 9, 2021

@darshankawar I feel we can close this issue. We are unable to reproduce it after version 0.7.0 and also didn't receive any feedback from the community the problem still exists.

According to this I will now close this issue. However if this issue still occurs on version 0.7.0 please let us know and provide the necessary details and we'd be happy to re-open the issue and get it solved.

Plugin 2021Q2 Hotlist automation moved this from In Progress to Done Jul 9, 2021
iOS Platform - first party plugin and package review automation moved this from Awaiting triage to Engineer reviewed Jul 9, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: release Challenges faced when attempting to productionize an app c: crash Stack traces logged to the console c: fatal crash Crashes that terminate the process engine flutter/engine repository. See also e: labels. p: camera The camera plugin P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-ios iOS applications specifically waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Development

No branches or pull requests