Skip to content

[Bug]: [OneSignalUserDefaults saveDoubleForKey:withValue:] crash #1387

@jakubpetrik

Description

@jakubpetrik

What happened?

App crashed on start

Steps to reproduce?

Can't reproduce it myself, the crash comes from Crashlytics in AppStore build

What did you expect to happen?

App should not crash.

OneSignal iOS SDK version

5.1.3

iOS version

15

Specific iOS version

iOS 17.0.3

Relevant log output

Crashed: com.apple.main-thread
0  SwiftUI                        0x1281818 OUTLINED_FUNCTION_4 + 9336
1  SwiftUI                        0xdfb3b0 OUTLINED_FUNCTION_15 + 21652
2  SwiftUI                        0xdfaec8 OUTLINED_FUNCTION_15 + 20396
3  SwiftUI                        0x175803c OUTLINED_FUNCTION_2 + 13856
4  SwiftUI                        0x1758120 OUTLINED_FUNCTION_2 + 14084
5  SwiftUI                        0x1b7bbf8 OUTLINED_FUNCTION_18 + 17484
6  SwiftUI                        0xd6e370 objectdestroyTm + 20668
7  SwiftUI                        0xd6e67c objectdestroyTm + 21448
8  SwiftUI                        0xd6f21c objectdestroyTm + 24424
9  SwiftUI                        0x11474c0 OUTLINED_FUNCTION_11 + 40
10 SwiftUI                        0x1977230 OUTLINED_FUNCTION_4 + 2828
11 SwiftUI                        0x1977948 OUTLINED_FUNCTION_4 + 4644
12 SwiftUI                        0xd6e9e8 objectdestroyTm + 22324
13 SwiftUI                        0xd6f0c4 objectdestroyTm + 24080
14 SwiftUI                        0xd6f1a0 objectdestroyTm + 24300
15 CoreFoundation                 0x2fc78 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
16 CoreFoundation                 0x2f640 ___CFXRegistrationPost_block_invoke + 88
17 CoreFoundation                 0x2f588 _CFXRegistrationPost + 440
18 CoreFoundation                 0x2ead8 _CFXNotificationPost + 724
19 Foundation                     0x2b7e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
20 OneSignalCore                  0x10d48 -[OneSignalUserDefaults saveDoubleForKey:withValue:] + 72
21 OneSignalFramework             0xda0c +[OneSignalTracker updateLastClosedTime] + 96
22 OneSignalFramework             0xd46c +[OneSignalTracker applicationBackgrounded] + 52
23 CoreFoundation                 0x2fc78 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
24 CoreFoundation                 0x2f640 ___CFXRegistrationPost_block_invoke + 88
25 CoreFoundation                 0x2f588 _CFXRegistrationPost + 440
26 CoreFoundation                 0x2ead8 _CFXNotificationPost + 724
27 Foundation                     0x2b7e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
28 UIKitCore                      0x5eca10 -[_UISceneLifecycleMonitor willResignActive] + 240
29 UIKitCore                      0x18fbb0 __111-[_UIWindowSceneFBSSceneLifecycleMonitor transitionToTargetState:fromState:withTransitionContext:preparations:]_block_invoke_5 + 332
30 UIKitCore                      0x18e988 _UIScenePerformActionsWithLifecycleActionMask + 112
31 UIKitCore                      0x2a5524 __111-[_UIWindowSceneFBSSceneLifecycleMonitor transitionToTargetState:fromState:withTransitionContext:preparations:]_block_invoke_4 + 156
32 UIKitCore                      0x13a1cc ___UISceneLifecycleSettingsUpdateBlockWithCanvasAndTransitionContext_block_invoke_2 + 296
33 UIKitCore                      0x139d00 -[_UIWindowSceneFBSSceneLifecycleMonitor transitionToTargetState:fromState:withTransitionContext:preparations:] + 680
34 UIKitCore                      0x139310 ___UISceneLifecycleSettingsUpdateBlockWithCanvasAndTransitionContext_block_invoke + 308
35 UIKitCore                      0x13900c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 116
36 UIKitCore                      0x138f34 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736
37 UIKitCore                      0x1387bc _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224
38 UIKitCore                      0x13846c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316
39 UIKitCore                      0x4b787c __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.225 + 612
40 UIKitCore                      0x1375f0 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 216
41 UIKitCore                      0x137460 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244
42 UIKitCore                      0x1372a0 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 336
43 FrontBoardServices             0xd99c -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 624
44 FrontBoardServices             0xd70c __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 152
45 FrontBoardServices             0xd5a8 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
46 FrontBoardServices             0xd4c4 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 344
47 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
48 libdispatch.dylib              0x7d48 _dispatch_block_invoke_direct + 284
49 FrontBoardServices             0x99ec __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
50 FrontBoardServices             0x996c -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 240
51 FrontBoardServices             0x9844 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 28
52 CoreFoundation                 0x37acc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
53 CoreFoundation                 0x36d48 __CFRunLoopDoSource0 + 176
54 CoreFoundation                 0x3555c __CFRunLoopDoSources0 + 340
55 CoreFoundation                 0x34238 __CFRunLoopRun + 828
56 CoreFoundation                 0x33e18 CFRunLoopRunSpecific + 608
57 GraphicsServices               0x35ec GSEventRunModal + 164
58 UIKitCore                      0x22f2fc -[UIApplication _run] + 888
59 UIKitCore                      0x22e938 UIApplicationMain + 340
60 SwiftUI                        0x114d354 OUTLINED_FUNCTION_31 + 604
61 SwiftUI                        0x114d198 OUTLINED_FUNCTION_31 + 160
62 SwiftUI                        0xdca434 OUTLINED_FUNCTION_26 + 2196
63 App                            0x4b41d0 main + 52 (redacted)
64 ???                            0x1c3cf7d44 (Missing)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions