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

[iOS] Another crash on iOS #49

Open
xonaman opened this issue Jun 13, 2023 · 0 comments
Open

[iOS] Another crash on iOS #49

xonaman opened this issue Jun 13, 2023 · 0 comments

Comments

@xonaman
Copy link

xonaman commented Jun 13, 2023

My flutter code:

static final FlutterGooglePlacesSdk googlePlacesSdk = FlutterGooglePlacesSdk('my-api-key');
final FindAutocompletePredictionsResponse response = await googlePlacesSdk.findAutocompletePredictions(
  'query-string',
  countries: <String>['de'],
  placeTypeFilter: PlaceTypeFilter.ADDRESS,
);

The following exception occurs and the app crashes:

2023-06-13 14:25:20.651729+0200 Runner[82021:4159105] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean objectForKey:]: unrecognized selector sent to instance 0x1165005e0'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011610278b __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00000001115cdb73 objc_exception_throw + 48
	2   CoreFoundation                      0x00000001161118c4 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
	3   CoreFoundation                      0x0000000116106c66 ___forwarding___ + 1443
	4   CoreFoundation                      0x0000000116108e08 _CF_forwarding_prep_0 + 120
	5   Runner                              0x0000000104e78298 __51+[GMPx_GTMSessionFetcher appAllowsInsecureRequests]_block_invoke + 97
	6   libdispatch.dylib                   0x0000000112af37ec _dispatch_client_callout + 8
	7   libdispatch.dylib                   0x0000000112af4e85 _dispatch_once_callout + 66
	8   Runner                              0x0000000104e78235 +[GMPx_GTMSessionFetcher appAllowsInsecureRequests] + 41
	9   Runner                              0x0000000104e78c14 -[GMPx_GTMSessionFetcher beginFetchMayDelay:mayAuthorize:mayDecorate:] + 751
	10  Runner                              0x0000000104dde8a9 -[GMSPabloClient fetchRequest:callback:] + 150
	11  Runner                              0x0000000104ddc28d -[GMSPabloClient fetchAutocompletePredictionsForQuery:filter:sessionToken:requestSource:callback:] + 175
	12  Runner                              0x0000000104de80e5 -[GMSPlacesClient fetchAutocompletePredictionsForQuery:filter:sessionToken:requestSource:callback:] + 346
	13  Runner                              0x0000000104de7f85 -[GMSPlacesClient findAutocompletePredictionsFromQuery:filter:sessionToken:callback:] + 32
	14  Runner                              0x0000000104f06707 $s29flutter_google_places_sdk_ios36SwiftFlutterGooglePlacesSdkIosPluginC6handle_6resultySo0G10MethodCallC_yypSgctF + 6183
	15  Runner                              0x0000000104f09296 $s29flutter_google_places_sdk_ios36SwiftFlutterGooglePlacesSdkIosPluginC6handle_6resultySo0G10MethodCallC_yypSgctFTo + 118
	16  Flutter                             0x000000011b725d3d __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 168
	17  Flutter                             0x000000011acb9748 ___ZN7flutter25PlatformMessageHandlerIos21HandlePlatformMessageENSt21_LIBCPP_ABI_NAMESPACE10unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE_block_invoke + 94
	18  libdispatch.dylib                   0x0000000112af254f _dispatch_call_block_and_release + 12
	19  libdispatch.dylib                   0x0000000112af37ec _dispatch_client_callout + 8
	20  libdispatch.dylib                   0x0000000112b046e2 _dispatch_main_queue_drain + 1462
	21  libdispatch.dylib                   0x0000000112b0411e _dispatch_main_queue_callback_4CF + 31
	22  CoreFoundation                      0x00000001160606cc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	23  CoreFoundation                      0x000000011605afbe __CFRunLoopRun + 2429
	24  CoreFoundation                      0x000000011605a264 CFRunLoopRunSpecific + 560
	25  GraphicsServices                    0x000000011ac6524e GSEventRunModal + 139
	26  UIKitCore                           0x000000012fc9c7bf -[UIApplication _run] + 994
	27  UIKitCore                           0x000000012fca15de UIApplicationMain + 123
	28  Runner                              0x0000000104ace96f main + 63
	29  dyld                                0x000000010e09e384 start_sim + 10
	30  ???                                 0x0000000205d6041f 0x0 + 8687846431
)
libc++abi: terminating due to uncaught exception of type NSException
Message from debugger: Terminated due to signal 6

I have seen #7 and tried setting newSessionToken to true or false, same error.

@matanshukry matanshukry changed the title Another crash on iOS [iOS] Another crash on iOS Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant