OpenTreeMap / otm-ios

An OpenTreeMap client for iOS. The OpenTreeMap code can be downloaded at https://github.com/azavea/OpenTreeMap.
http://www.azavea.com/opentreemap
Other
18 stars 22 forks source link

Crash when the application is attempting to save preferences when going into the background #313

Open jwalgran opened 8 years ago

jwalgran commented 8 years ago

iPhone 6 running OTM iOS 2.4.0

NSInvalidArgumentException: Attempt to insert non-property list object <__NSMallocBlock__: 0x1075af5b0> for key kOTMPreferencesInstance
 1 CoreFoundation in __exceptionPreprocess 
 2 libobjc.A.dylib in objc_exception_throw
 3 CoreFoundation in +[NSException raise:format:]
 4 CoreFoundation in _CFPrefsValidateValueForKey
 5 CoreFoundation in -[CFPrefsPlistSource sendMessageSettingValue:forKey:]
 6 CoreFoundation in -[CFPrefsPlistSource alreadylocked_setValues:forKeys:count:]
 7 CoreFoundation in -[CFPrefsSource setValues:forKeys:count:removeValuesForKeys:count:] 
 8 CoreFoundation in -[CFPrefsSearchListSource alreadylocked_setValues:forKeys:count:]
 9 CoreFoundation in -[CFPrefsSource setValues:forKeys:count:removeValuesForKeys:count:]
10 CoreFoundation in -[CFPrefsSource setValue:forKey:]
11 CoreFoundation in __95+[CFPrefsSearchListSource withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke
12 CoreFoundation in normalizeQuintuplet
13 CoreFoundation in +[CFPrefsSearchListSource withSearchListForIdentifier:container:cloudConfigurationURL:perform:]
14 CoreFoundation in _CFPreferencesSetAppValueWithContainer
15 Foundation in -[NSUserDefaults(NSUserDefaults) setObject:forKey:]
16 OpenTreeMap "OTMPreferences.m" line 44 in -[OTMPreferences save]
17 OpenTreeMap "OTMAppDelegate.m" line 70 in -[OTMAppDelegate applicationDidEnterBackground:]
18 UIKit in __47-[UIApplication _applicationDidEnterBackground]_block_invoke
19 UIKit in +[UIViewController _performWithoutDeferringTransitions:]
20 UIKit in -[UIApplication _applicationDidEnterBackground]
21 UIKit in -[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]
22 UIKit in -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]
23 UIKit in __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke
24 UIKit in -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]
25 FrontBoardServices in __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
26 FrontBoardServices in -[FBSSerialQueue _performNext]
27 FrontBoardServices in -[FBSSerialQueue _performNextFromRunLoopSource]
28 CoreFoundation in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
29 CoreFoundation in __CFRunLoopDoSources0
30 CoreFoundation in __CFRunLoopRun
31 CoreFoundation in CFRunLoopRunSpecific
32 GraphicsServices in GSEventRunModal
33 UIKit in UIApplicationMain
34 OpenTreeMap "main.m" line 23 in main
jwalgran commented 7 years ago

Medium because this does not appear to the user as a problem.