flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

on iOS crash on first startup. OK on Android

Open WONDERJEWEL opened this issue 4 years ago • 7 comments

Hello, I added permissions request to my app. Its working OK on Android using Android Studio builder. On iOS + TestFlight crash on first time after install. On second time working OK I defined the required permission in the Podfile ( attached ) ) file and in main call to .request() It is crashing before TestFlight start the feedback explanation. What is missing?

permission_handler : 9.2.0

    await [
      Permission.camera,
      Permission.microphone,
      Permission.phone,
      Permission.photos,
      Permission.sms,
      Permission.storage,
      Permission.location,
      Permission.locationWhenInUse,
      Permission.locationAlways,
      ////add more permission to request here.
    ].request().then((statuses) async {

PodFile :

## Uncomment this line to define a global platform for your project
## platform :ios, '9.0'

## CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

# post_install do |installer|
#   installer.pods_project.targets.each do |target|
#     flutter_additional_ios_build_settings(target)
#   end
# end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

        target.build_configurations.each do |config|
      # You can remove unused permissions here
      # for more infomation: https://github.com/BaseflowIT/flutter-permission-handler/blob/master/permission_handler/ios/Classes/PermissionHandlerEnums.h
      # e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0'
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',

        ## dart: PermissionGroup.calendar
        'PERMISSION_EVENTS=0',

        ## dart: PermissionGroup.reminders
        'PERMISSION_REMINDERS=0',

        ## dart: PermissionGroup.contacts
        'PERMISSION_CONTACTS=0',

        ## dart: PermissionGroup.camera
        'PERMISSION_CAMERA=1',

        ## dart: PermissionGroup.microphone
        'PERMISSION_MICROPHONE=1',

        ## dart: PermissionGroup.speech
        'PERMISSION_SPEECH_RECOGNIZER=0',

        ## dart: PermissionGroup.photos
        'PERMISSION_PHOTOS=1',

        ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
        'PERMISSION_LOCATION=1',

        ## dart: PermissionGroup.notification
        'PERMISSION_NOTIFICATIONS=1',

        ## dart: PermissionGroup.mediaLibrary
        'PERMISSION_MEDIA_LIBRARY=0',

        ## dart: PermissionGroup.sensors
        'PERMISSION_SENSORS=0',

        ## dart: PermissionGroup.bluetooth
        'PERMISSION_BLUETOOTH=0',

        ## dart: PermissionGroup.appTrackingTransparency
        'PERMISSION_APP_TRACKING_TRANSPARENCY=0',

        ## dart: PermissionGroup.criticalAlerts
        'PERMISSION_CRITICAL_ALERTS=0',
      ]
    end
  end
end

Info.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>$(DEVELOPMENT_LANGUAGE)</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>WonderApp</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>$(FLUTTER_BUILD_NAME)</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>$(FLUTTER_BUILD_NUMBER)</string>
	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>tel</string>
		<string>https</string>
        <string>http</string>
	</array>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
	<key>NSBluetoothAlwaysUsageDescription</key>
	<string>Need BLE permission</string>
	<key>NSBluetoothPeripheralUsageDescription</key>
	<string>Need BLE permission</string>
	<key>NSContactsUsageDescription</key>
	<string>This app requires contacts access to function properly.</string>

	<key>UIBackgroundModes</key>
	<array>
		<string>audio</string>
		<string>bluetooth-central</string>
		<string>fetch</string>
		<string>location</string>
		<string>remote-notification</string>
	</array>
	<key>UILaunchStoryboardName</key>
	<string>LaunchScreen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main</string>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UISupportedInterfaceOrientations~ipad</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UIViewControllerBasedStatusBarAppearance</key>
	<false/>
	<key>io.flutter.embedded_views_preview</key>
	<true/>

    <!-- Permission options for the `location` group -->
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>Need location when in use</string>
    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>Always and when in use!</string>
    <key>NSLocationUsageDescription</key>
    <string>Older devices need location.</string>
    <key>NSLocationAlwaysUsageDescription</key>
    <string>Can I have location always?</string>

    <!-- Permission options for the `camera` group -->
    <key>NSCameraUsageDescription</key>
    <string>camera</string>

    <!-- Permission options for the `microphone` group -->
    <key>NSMicrophoneUsageDescription</key>
    <string>microphone</string>

    <!-- Permission options for the `photos` group -->
    <key>NSPhotoLibraryUsageDescription</key>
    <string>photos</string>

</dict>
</plist>

WONDERJEWEL avatar May 28 '22 08:05 WONDERJEWEL

Hi @WONDERJEWEL,

First check if you included the necessary entries in the ios/Runner/Info.plist file for each of the permissions you want to request.

If you are sure all entries are there, try requesting permissions one by one and see which one is causing this behavior. We are aware that requesting multiple permissions at once is not ideal and might result into unwanted behavior. In the near future we plan to deprecate this functionality as it was never to be intended use case by Apple and Google in the first place.

So my suggestion would be to request permissions one at a time using the Permission.<your_permission>.request method.

Please let me know if this works, or if you find a specific permission causing a problem. In the last case I would be happy to investigate further.

mvanbeusekom avatar May 28 '22 12:05 mvanbeusekom

Thanks, I uploaded the Info.plist file. I separated the location always to second phase because before the crash location WhenInUse was displayed. I saw the same crash even I don't call to the permission service, Is it OK? I you thing its a permission_handler.dart or PodFile issue? Do you suggest to test each request with the same PodFile that contains all the permissions?
Thanks you

WONDERJEWEL avatar May 28 '22 13:05 WONDERJEWEL

I Separated the request, request only camera & microphone and have the same problem. looking like the problem in the startup

WONDERJEWEL avatar May 28 '22 20:05 WONDERJEWEL

@WONDERJEWEL what makes you believe this is actually related to the permission_handler plugin?

Did you get some error message? What happens if you try debugging from xCode, sometimes that will give you more information (for example stack trace or iOS logs).

You can also use xCode to view logs on your test device:

  1. Connect your iOS to your computer with a USB or Lightning cable.
  2. Go to Window > Devices and select your device from the list.
  3. Click the "up" triangle at the bottom left of the right hand panel. All logs from all apps on the device will be displayed here. If the app is a production build, it is likely that only critical errors/crashes will be logged.

This might also provide you with useful information.

mvanbeusekom avatar Jun 10 '22 15:06 mvanbeusekom

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] avatar Jun 11 '22 12:06 github-actions[bot]

Hi, Attached iPhone log file

{"app_cohort":"2|date=1656577800000&sf=143491&tid=a578fdd4ea46e937c9e07f97c62a4bcf61705898772c1e9cc4dc406023261a43&ttype=i","app_name":"Runner","app_version":"1.0.2","timestamp":"2022-06-30 12:00:08.00 +0300","slice_uuid":"aca0bfb6-996c-3607-abc5-d097f113f8ca","adam_id":"1620704381","build_version":"208","platform":2,"bundleID":"com.wonderJewel001","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"iPhone OS 15.5 (19F77)","incident_id":"EAA95AA7-22A8-403B-B63E-2E2FDAFBEB97","name":"Runner","is_beta":1} { "uptime" : 570000, "procLaunch" : "2022-06-30 11:59:46.9164 +0300", "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "iPhone11,8", "procStartAbsTime" : 13741455420367, "coalitionID" : 2976, "osVersion" : { "isEmbedded" : true, "train" : "iPhone OS 15.5", "releaseType" : "User", "build" : "19F77" }, "captureTime" : "2022-06-30 12:00:07.8271 +0300", "incident" : "EAA95AA7-22A8-403B-B63E-2E2FDAFBEB97", "bug_type" : "309", "pid" : 85267, "procExitAbsTime" : 13741957188011, "cpuType" : "ARM-64", "procName" : "Runner", "procPath" : "\/private\/var\/containers\/Bundle\/Application\/61F75CBC-F25C-4857-B8AD-2DEDDE0F246D\/Runner.app\/Runner", "bundleInfo" : {"CFBundleShortVersionString":"1.0.2","CFBundleVersion":"208","CFBundleIdentifier":"com.wonderJewel001","DTAppStoreToolsBuild":"13F100"}, "storeInfo" : {"itemID":"1620704381","storeCohortMetadata":"2|date=1656577800000&sf=143491&tid=a578fdd4ea46e937c9e07f97c62a4bcf61705898772c1e9cc4dc406023261a43&ttype=i","entitledBeta":true,"deviceIdentifierForVendor":"43A94E71-C39F-43D0-B633-ACE441C6BF86","softwareVersionExternalIdentifier":"92478408","applicationVariant":"1:iPhone11,8:15","thirdParty":true}, "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "com.wonderJewel001", "isBeta" : 1, "basebandVersion" : "4.04.02", "isCorpse" : 1, "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGKILL"}, "termination" : {"code":2343432205,"flags":6,"namespace":"FRONTBOARD","reasons":["<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<com.wonderJewel001>:85267 exhausted real (wall clock) time allowance of 19.30 seconds","ProcessVisibility: Foreground","ProcessState: Running","WatchdogEvent: scene-create","WatchdogVisibility: Foreground","WatchdogCPUStatistics: (","\"Elapsed total CPU time (seconds): 31.070 (user 31.070, system 0.000), 26% CPU\",","\"Elapsed application CPU time (seconds): 1.226, 1% CPU\"",") reportType:CrashLog maxTerminationResistance:Interactive>"]}, "ktriageinfo" : "VM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\nVM - pmap_enter failed with resource shortage\n", "faultingThread" : 0, "threads" : [{"triggered":true,"id":9230872,"threadState":{"x":[{"value":268451845},{"value":117457422},{"value":0},{"value":16384},{"value":5123},{"value":0},{"value":29187},{"value":1792},{"value":4294966207},{"value":117440526},{"value":117456910},{"value":10791390936},{"value":65280},{"value":5123},{"value":256},{"value":10791390872},{"value":18446744073709551585},{"value":8062229920,"symbolLocation":0,"symbol":"OBJC_CLASS_$_OS_dispatch_mach_msg"},{"value":0},{"value":29187},{"value":0},{"value":5123},{"value":16384},{"value":6093129312},{"value":117457422},{"value":0},{"value":117457422},{"value":268451844},{"value":4388750944,"symbolLocation":224,"symbol":"_main_thread"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7500987108},"cpsr":{"value":536870912},"fp":{"value":6093129296},"sp":{"value":6093129216},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7500985504,"matchesCrashFrame":1},"far":{"value":4504978440}},"queue":"com.apple.main-thread","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":124536,"symbol":"_dispatch_mach_send_and_wait_for_reply","symbolLocation":540,"imageIndex":1},{"imageOffset":125440,"symbol":"dispatch_mach_send_with_result_and_wait_for_reply","symbolLocation":60,"imageIndex":1},{"imageOffset":57100,"symbol":"xpc_connection_send_message_with_reply_sync","symbolLocation":240,"imageIndex":2},{"imageOffset":261228,"symbol":"__NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__","symbolLocation":16,"imageIndex":3},{"imageOffset":286012,"symbol":"-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]","symbolLocation":2540,"imageIndex":3},{"imageOffset":564636,"symbol":"-[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:]","symbolLocation":152,"imageIndex":3},{"imageOffset":165292,"symbol":"_NSXPCDistantObjectSimpleMessageSend3","symbolLocation":84,"imageIndex":3},{"imageOffset":55628,"imageIndex":4},{"imageOffset":49204,"imageIndex":4},{"imageOffset":208624,"imageIndex":4},{"imageOffset":28612,"imageIndex":5},{"imageOffset":29860,"imageIndex":5},{"imageOffset":3299116,"symbol":"-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]","symbolLocation":340,"imageIndex":6},{"imageOffset":5293412,"symbol":"-[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:]","symbolLocation":3572,"imageIndex":6},{"imageOffset":5198104,"symbol":"-[UIApplication _runWithMainScene:transitionContext:completion:]","symbolLocation":1180,"imageIndex":6},{"imageOffset":3484980,"symbol":"-[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:]","symbolLocation":152,"imageIndex":6},{"imageOffset":1758132,"symbol":"_UIScenePerformActionsWithLifecycleActionMask","symbolLocation":104,"imageIndex":6},{"imageOffset":2981264,"symbol":"__101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke","symbolLocation":216,"imageIndex":6},{"imageOffset":4160160,"symbol":"-[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]","symbolLocation":248,"imageIndex":6},{"imageOffset":6514532,"symbol":"-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]","symbolLocation":772,"imageIndex":6},{"imageOffset":6036756,"symbol":"-[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]","symbolLocation":340,"imageIndex":6},{"imageOffset":1761696,"symbol":"__186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke","symbolLocation":196,"imageIndex":6},{"imageOffset":2547928,"symbol":"+[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]","symbolLocation":892,"imageIndex":6},{"imageOffset":1769636,"symbol":"_UISceneSettingsDiffActionPerformChangesWithTransitionContext","symbolLocation":276,"imageIndex":6},{"imageOffset":2728516,"symbol":"-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]","symbolLocation":384,"imageIndex":6},{"imageOffset":7466592,"symbol":"__64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.615","symbolLocation":776,"imageIndex":6},{"imageOffset":1959044,"symbol":"-[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]","symbolLocation":256,"imageIndex":6},{"imageOffset":2235588,"symbol":"-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]","symbolLocation":288,"imageIndex":6},{"imageOffset":3504952,"symbol":"-[UIApplication workspace:didCreateScene:withTransitionContext:completion:]","symbolLocation":584,"imageIndex":6},{"imageOffset":2721032,"symbol":"-[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]","symbolLocation":388,"imageIndex":6},{"imageOffset":168596,"symbol":"-[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:]","symbolLocation":440,"imageIndex":7},{"imageOffset":323728,"symbol":"__94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215","symbolLocation":128,"imageIndex":7},{"imageOffset":41736,"symbol":"-[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]","symbolLocation":240,"imageIndex":7},{"imageOffset":47448,"symbol":"__94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke","symbolLocation":372,"imageIndex":7},{"imageOffset":14896,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":1},{"imageOffset":29920,"symbol":"_dispatch_block_invoke_direct","symbolLocation":264,"imageIndex":1},{"imageOffset":48240,"symbol":"__FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__","symbolLocation":48,"imageIndex":7},{"imageOffset":45120,"symbol":"-[FBSSerialQueue _targetQueue_performNextIfPossible]","symbolLocation":220,"imageIndex":7},{"imageOffset":63232,"symbol":"-[FBSSerialQueue _performNextFromRunLoopSource]","symbolLocation":28,"imageIndex":7},{"imageOffset":766996,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":28,"imageIndex":8},{"imageOffset":836000,"symbol":"__CFRunLoopDoSource0","symbolLocation":208,"imageIndex":8},{"imageOffset":22164,"symbol":"__CFRunLoopDoSources0","symbolLocation":268,"imageIndex":8},{"imageOffset":45148,"symbol":"__CFRunLoopRun","symbolLocation":828,"imageIndex":8},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":8},{"imageOffset":4980,"symbol":"GSEventRunModal","symbolLocation":164,"imageIndex":9},{"imageOffset":5326408,"symbol":"-[UIApplication _run]","symbolLocation":1100,"imageIndex":6},{"imageOffset":2710928,"symbol":"UIApplicationMain","symbolLocation":364,"imageIndex":6},{"imageOffset":30944,"imageIndex":5},{"imageOffset":105700,"symbol":"start","symbolLocation":520,"imageIndex":10}]},{"id":9230882,"queue":"com.apple.UIKit.KeyboardManagement","frames":[{"imageOffset":8504,"symbol":"__ulock_wait","symbolLocation":8,"imageIndex":0},{"imageOffset":17440,"symbol":"_dlock_wait","symbolLocation":56,"imageIndex":1},{"imageOffset":16852,"symbol":"_dispatch_thread_event_wait_slow","symbolLocation":56,"imageIndex":1},{"imageOffset":77680,"symbol":"__DISPATCH_WAIT_FOR_QUEUE__","symbolLocation":356,"imageIndex":1},{"imageOffset":76584,"symbol":"_dispatch_sync_f_slow","symbolLocation":144,"imageIndex":1},{"imageOffset":3597740,"symbol":"__37-[_UIRemoteKeyboards startConnection]_block_invoke_3","symbolLocation":136,"imageIndex":6},{"imageOffset":138020,"symbol":"__invoking___","symbolLocation":148,"imageIndex":8},{"imageOffset":259600,"symbol":"-[NSInvocation invoke]","symbolLocation":468,"imageIndex":8},{"imageOffset":219448,"symbol":"__NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__","symbolLocation":24,"imageIndex":3},{"imageOffset":356212,"symbol":"-[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:]","symbolLocation":572,"imageIndex":3},{"imageOffset":201856,"symbol":"__88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3","symbolLocation":212,"imageIndex":3},{"imageOffset":112300,"symbol":"_xpc_connection_reply_callout","symbolLocation":124,"imageIndex":2},{"imageOffset":60364,"symbol":"_xpc_connection_call_reply_async","symbolLocation":88,"imageIndex":2},{"imageOffset":15024,"symbol":"_dispatch_client_callout3","symbolLocation":20,"imageIndex":1},{"imageOffset":135700,"symbol":"_dispatch_mach_msg_async_reply_invoke","symbolLocation":340,"imageIndex":1},{"imageOffset":45056,"symbol":"_dispatch_lane_serial_drain","symbolLocation":376,"imageIndex":1},{"imageOffset":48308,"symbol":"_dispatch_lane_invoke","symbolLocation":444,"imageIndex":1},{"imageOffset":91392,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":648,"imageIndex":1},{"imageOffset":4284,"symbol":"_pthread_wqthread","symbolLocation":288,"imageIndex":11},{"imageOffset":3676,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":11}]},{"id":9230883,"queue":"com.apple.CoreLocation.0x134794190","frames":[{"imageOffset":23880,"symbol":"dispatch_assert_queue","symbolLocation":0,"imageIndex":1},{"imageOffset":19716,"imageIndex":12},{"imageOffset":7788,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":1},{"imageOffset":14896,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":1},{"imageOffset":45348,"symbol":"_dispatch_lane_serial_drain","symbolLocation":668,"imageIndex":1},{"imageOffset":48256,"symbol":"_dispatch_lane_invoke","symbolLocation":392,"imageIndex":1},{"imageOffset":91392,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":648,"imageIndex":1},{"imageOffset":4284,"symbol":"_pthread_wqthread","symbolLocation":288,"imageIndex":11},{"imageOffset":3676,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":11}]},{"id":9230884,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":9230886,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":9230887,"frames":[{"imageOffset":3668,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":11}]},{"id":9230888,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":27952,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":8},{"imageOffset":45500,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":8},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":8},{"imageOffset":103524,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":236,"imageIndex":3},{"imageOffset":372268,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":92,"imageIndex":3},{"imageOffset":4777840,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":524,"imageIndex":6},{"imageOffset":431164,"symbol":"__NSThread__start__","symbolLocation":808,"imageIndex":3},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230892,"name":"io.flutter.1.ui","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":27952,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":8},{"imageOffset":45500,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":8},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":8},{"imageOffset":3179056,"imageIndex":13},{"imageOffset":3177492,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230893,"name":"io.flutter.1.raster","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":27952,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":8},{"imageOffset":45500,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":8},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":8},{"imageOffset":3179056,"imageIndex":13},{"imageOffset":3177492,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230894,"name":"io.flutter.1.io","frames":[{"imageOffset":5280,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":6884,"symbol":"mach_msg","symbolLocation":76,"imageIndex":0},{"imageOffset":27952,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":372,"imageIndex":8},{"imageOffset":45500,"symbol":"__CFRunLoopRun","symbolLocation":1180,"imageIndex":8},{"imageOffset":125896,"symbol":"CFRunLoopRunSpecific","symbolLocation":600,"imageIndex":8},{"imageOffset":3179056,"imageIndex":13},{"imageOffset":3177492,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230895,"name":"io.worker.1","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":11},{"imageOffset":53900,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)","symbolLocation":28,"imageIndex":14},{"imageOffset":3156476,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230896,"name":"io.worker.2","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":11},{"imageOffset":53900,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)","symbolLocation":28,"imageIndex":14},{"imageOffset":3156476,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230897,"name":"io.worker.3","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":11},{"imageOffset":53900,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)","symbolLocation":28,"imageIndex":14},{"imageOffset":3156476,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230898,"name":"io.worker.4","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":11},{"imageOffset":53900,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)","symbolLocation":28,"imageIndex":14},{"imageOffset":3156476,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230899,"name":"io.worker.5","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":11},{"imageOffset":53900,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)","symbolLocation":28,"imageIndex":14},{"imageOffset":3156476,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230900,"name":"io.worker.6","frames":[{"imageOffset":7972,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":33432,"symbol":"_pthread_cond_wait","symbolLocation":1236,"imageIndex":11},{"imageOffset":53900,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)","symbolLocation":28,"imageIndex":14},{"imageOffset":3156476,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]},{"id":9230901,"name":"dart:io EventHandler","frames":[{"imageOffset":11800,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":5160976,"imageIndex":13},{"imageOffset":5351740,"imageIndex":13},{"imageOffset":6572,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":11},{"imageOffset":3688,"symbol":"thread_start","symbolLocation":8,"imageIndex":11}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64e", "base" : 7500980224, "size" : 221184, "uuid" : "1db00c91-6ad8-3840-8503-0c6fbffa8e0b", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6563745792, "size" : 286720, "uuid" : "355accf4-3917-3730-bc55-ef7003887abe", "path" : "\/usr\/lib\/system\/libdispatch.dylib", "name" : "libdispatch.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 8464932864, "size" : 249856, "uuid" : "267da60e-b413-307f-bf47-c71b78244a25", "path" : "\/usr\/lib\/system\/libxpc.dylib", "name" : "libxpc.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 6592020480, "size" : 3190784, "uuid" : "ac6ad2f3-c7b1-38aa-8588-57036a663180", "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Foundation", "name" : "Foundation" }, { "source" : "P", "arch" : "arm64e", "base" : 6689779712, "size" : 786432, "uuid" : "4c6c471e-3816-3740-8528-1e9a7b89b637", "path" : "\/System\/Library\/Frameworks\/CoreLocation.framework\/CoreLocation", "name" : "CoreLocation" }, { "source" : "P", "arch" : "arm64", "base" : 4373725184, "size" : 7700480, "uuid" : "aca0bfb6-996c-3607-abc5-d097f113f8ca", "path" : "\/private\/var\/containers\/Bundle\/Application\/61F75CBC-F25C-4857-B8AD-2DEDDE0F246D\/Runner.app\/Runner", "name" : "Runner" }, { "source" : "P", "arch" : "arm64e", "base" : 6605152256, "size" : 25804800, "uuid" : "3ed35565-456d-33cb-b554-6c567fa81585", "path" : "\/System\/Library\/PrivateFrameworks\/UIKitCore.framework\/UIKitCore", "name" : "UIKitCore" }, { "source" : "P", "arch" : "arm64e", "base" : 6871490560, "size" : 708608, "uuid" : "8d4d34db-2d96-3e20-b419-9e756760d079", "path" : "\/System\/Library\/PrivateFrameworks\/FrontBoardServices.framework\/FrontBoardServices", "name" : "FrontBoardServices" }, { "source" : "P", "arch" : "arm64e", "base" : 6566903808, "size" : 4546560, "uuid" : "5198fb57-5645-3b34-a49f-f32b52256cf3", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/CoreFoundation", "name" : "CoreFoundation" }, { "source" : "P", "arch" : "arm64e", "base" : 7038046208, "size" : 36864, "uuid" : "260f066e-c5de-3844-967e-483985448f21", "path" : "\/System\/Library\/PrivateFrameworks\/GraphicsServices.framework\/GraphicsServices", "name" : "GraphicsServices" }, { "source" : "P", "arch" : "arm64e", "base" : 4388306944, "size" : 360448, "uuid" : "7c9c7851-8237-38a7-b1eb-9cd2deb4b746", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "arm64e", "base" : 8464822272, "size" : 49152, "uuid" : "1026e3a4-d3c0-3b0d-a552-f185d6772a29", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64e", "base" : 7232946176, "size" : 172032, "uuid" : "a661f16e-2ee2-3d2d-af88-a2ac1f2b7e2f", "path" : "\/System\/Library\/PrivateFrameworks\/LocationSupport.framework\/LocationSupport", "name" : "LocationSupport" }, { "source" : "P", "arch" : "arm64", "base" : 4405379072, "size" : 8142848, "uuid" : "131bd63d-1bd6-3bb9-a80a-ff4d62239148", "path" : "\/private\/var\/containers\/Bundle\/Application\/61F75CBC-F25C-4857-B8AD-2DEDDE0F246D\/Runner.app\/Frameworks\/Flutter.framework\/Flutter", "name" : "Flutter" }, { "source" : "P", "arch" : "arm64e", "base" : 6984392704, "size" : 421888, "uuid" : "8633ff2f-4ec8-3d6d-899e-e77422b4c89e", "path" : "\/usr\/lib\/libc++.1.dylib", "name" : "libc++.1.dylib" } ], "sharedCache" : { "base" : 6563414016, "size" : 2561458176, "uuid" : "e6b1547a-b0b4-33dd-ab9d-1de4323ab981" }, "vmSummary" : "ReadOnly portion of Libraries: Total=785.6M resident=0K(0%) swapped_out_or_unallocated=785.6M(100%)\nWritable regions: Total=598.8M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=598.8M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nColorSync 64K 4 \nCoreAnimation 32K 2 \nFoundation 16K 1 \nKernel Alloc Once 32K 1 \nMALLOC 587.0M 47 \nMALLOC guard page 128K 8 \nSTACK GUARD 272K 17 \nStack 10.0M 17 \nVM_ALLOCATE 512.2M 4 \n__AUTH 4023K 443 \n__AUTH_CONST 22.5M 590 \n__CTF 756 1 \n__DATA 17.5M 617 \n__DATA_CONST 23.8M 630 \n__DATA_DIRTY 2140K 496 \n__FONT_DATA 4K 1 \n__LINKEDIT 193.1M 39 \n__OBJC_CONST 5644K 411 \n__OBJC_RO 92.1M 1 \n__OBJC_RW 3536K 1 \n__TEXT 592.6M 642 \n__UNICODE 592K 1 \ndyld private memory 2304K 66 \nmapped file 30.5M 6 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 2.1G 4050 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "607844aa04477260f58a8077", "factorPackIds" : { "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a" }, "deploymentId" : 240000066 }, { "rolloutId" : "610d4ab6fc54bc33898403cd", "factorPackIds" : { "SIRI_UNDERSTANDING_MORPHUN" : "6201e7dc295c182621ecf027" }, "deploymentId" : 240000257 } ], "experiments" : [ { "treatmentId" : "dc6188db-da76-4777-9ee0-4bd129ce1e4a", "experimentId" : "61ae5b540a12026a0805a31f", "deploymentId" : 400000018 } ] } }

meridorkobi avatar Jun 30 '22 09:06 meridorkobi

I had the same exception.

There was a request for location permission in AppDelegate.swift and it was too much time.

I removed it. I have permissions request in the main().

meridorkobi avatar Jul 17 '22 07:07 meridorkobi