[
https://issues.apache.org/jira/browse/CB-8938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14523673#comment-14523673
]
Idan Mintz commented on CB-8938:
--------------------------------
I'm unable to replicate your crash, but from the looks of your log, it seems
that something is passing an NSDictionary to something that expects an
NSString. The length method is never used in the geolocation plugin, so if you
could find out exactly where this 'NSInvalidArgumentException' is being thrown,
that would be very useful. Try turning on exception breakpoints by going to
Debug -> Breakpoints -> Create Exception Breakpoint.
> App crashes when location services are disabled on ios
> ------------------------------------------------------
>
> Key: CB-8938
> URL: https://issues.apache.org/jira/browse/CB-8938
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Geolocation
> Affects Versions: 4.0.0
> Environment: Latest XCode 6.3, latest plugin 0.3.12, iOS 8.3, cordova
> 4.3.0
> Reporter: Dennis Patzer
> Priority: Blocker
>
> When retrieving the current geolocation with disabled location services, the
> app crashes with the following log in xcode:
> 2015-04-30 13:36:44.779 Test[5889:2433538] DiskCookieStorage changing policy
> from 2 to 0, cookie file:
> file:///private/var/mobile/Containers/Data/Application/237D74D9-F5EF-4DEF-ADF0-2429149BEA68/Library/Cookies/Cookies.binarycookies
> 2015-04-30 13:36:45.065 Test[5889:2433538] Apache Cordova native platform
> version 3.8.0 is starting.
> 2015-04-30 13:36:45.066 Test[5889:2433538] Multi-tasking -> Device: YES, App:
> YES
> 2015-04-30 13:36:45.069 Test[5889:2433538] Unlimited access to network
> resources
> 2015-04-30 13:36:45.074 Test[5889:2433538]
> Started backup to iCloud! Please be careful.
> Your application might be rejected by Apple if you store too much data.
> For more information please read "iOS Data Storage Guidelines" at:
> https://developer.apple.com/icloud/documentation/data-storage/
> To disable web storage backup to iCloud, set the BackupWebStorage preference
> to "local" in the Cordova config.xml file
> 2015-04-30 13:36:45.366 Test[5889:2433538] [CDVTimer][splashscreen]
> 179.197967ms
> 2015-04-30 13:36:45.370 Test[5889:2433538] [CDVTimer][statusbar] 3.875971ms
> 2015-04-30 13:36:45.370 Test[5889:2433538] [CDVTimer][TotalPluginStartup]
> 183.624983ms
> 2015-04-30 13:36:45.872 Test[5889:2433538] Resetting plugins due to page load.
> 2015-04-30 13:36:46.654 Test[5889:2433538] Finished load of:
> file:///private/var/mobile/Containers/Bundle/Application/9420797D-BD1A-4007-B378-59CAAAF6E200/A%CC%88ugen.app/www/index.html
> 2015-04-30 13:36:47.143 Test[5889:2433538] THREAD WARNING: ['Geolocation']
> took '30.755859' ms. Plugin should use a background thread.
> 2015-04-30 13:36:47.174 Test[5889:2433538] THREAD WARNING: ['Notification']
> took '27.886230' ms. Plugin should use a background thread.
> 2015-04-30 13:36:47.191 Test[5889:2433538] -[__NSDictionaryI length]:
> unrecognized selector sent to instance 0x174469280
> 2015-04-30 13:36:47.191 Test[5889:2433538] *** Terminating app due to
> uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryI
> length]: unrecognized selector sent to instance 0x174469280'
> *** First throw call stack:
> (0x184cc02d8 0x1964e40e4 0x184cc73a4 0x184cc4154 0x184bc6ccc 0x189a77194
> 0x189a772d8 0x1897f9878 0x185b21fe8 0x185b219dc 0x185b21708 0x1897fae28
> 0x185b21308 0x1897fac44 0x1896fca4c 0x1897fad58 0x185b21308 0x1897fac44
> 0x1896fca4c 0x1899db0f4 0x1897fad58 0x185b21308 0x1897fac44 0x1896fca4c
> 0x1897fad58 0x185b21308 0x1897fac44 0x1896fca4c 0x1897fad58 0x185b21308
> 0x1897fac44 0x1896fca4c 0x1897fad58 0x185b21308 0x1897fac44 0x1896fca4c
> 0x1897f91d0 0x185b21308 0x18971212c 0x189bd1b00 0x189a08fb0 0x189784240
> 0x1896f46ec 0x184c782a4 0x184c75230 0x184c75610 0x184ba12d4 0x18e3b76fc
> 0x189766fac 0x100031c0c 0x196b62a08)
> libc++abi.dylib: terminating with uncaught exception of type NSException
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]