organicmaps / organicmaps

🍃 Organic Maps is a free Android & iOS offline maps app for travelers, tourists, hikers, and cyclists. It uses crowd-sourced OpenStreetMap data and is developed with love by MapsWithMe (MapsMe) founders and our community. No ads, no tracking, no data collection, no crapware. Please donate to support the development!
https://organicmaps.app
Apache License 2.0
9.8k stars 941 forks source link

[ios] Crash in BookmarkManager::GetBmCategory() #9295

Open rtsisyk opened 1 month ago

rtsisyk commented 1 month ago
Incident Identifier: 20419C2D-6D1C-41DE-9D4F-9EE26BBF16A3
Distributor ID:      com.apple.AppStore
Hardware Model:      iPhone13,4
Process:             Organic Maps [6040]
Path:                /private/var/containers/Bundle/Application/F2514739-A7C1-4F43-A6C9-786D898DB0BB/Organic Maps.app/Organic Maps
Identifier:          app.organicmaps
Version:             2024.09.08 (2)
AppStoreTools:       15F31e
AppVariant:          1:iPhone13,4:15
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           app.organicmaps [1606]

OS Version:          iPhone OS 17.6.1 (21G93)
Release Type:        User
Baseband Version:    4.70.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Organic Maps [6040]

Triggered by Thread:  0

Thread 0 name:
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00000001e8bec2ec __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib         0x00000001fc9dfc0c pthread_kill + 268 (pthread.c:1721)
2   libsystem_c.dylib               0x00000001a7eebba0 abort + 180 (abort.c:118)
3   Organic Maps                    0x0000000100c5d240 BookmarkManager::GetBmCategory(unsigned long long) const + 260 (bookmark_manager.hpp:610)
4   Organic Maps                    0x0000000100c7382c BookmarkManager::GetCategoryFileName(unsigned long long) const + 196 (bookmark_manager.cpp:1697)
5   Organic Maps                    0x0000000100c7382c BookmarkManager::GetMetadataEntryName(unsigned long long) const + 424 (bookmark_manager.cpp:1968)
6   Organic Maps                    0x0000000100c73290 BookmarkManager::GetLastSortingType(unsigned long long, BookmarkManager::SortingType&) const + 264 (bookmark_manager.cpp:648)
7   Organic Maps                    0x0000000100f78c08 -[MWMBookmarksManager hasLastSortingType:] + 36 (MWMBookmarksManager.mm:461)
8   Organic Maps                    0x0000000100698078 BookmarksListInteractor.lastSortingType() + 56 (BookmarksListInteractor.swift:118)
9   Organic Maps                    0x000000010066fbc0 protocol witness for IBookmarksListInteractor.lastSortingType() in conformance BookmarksListInteractor + 8 (BookmarksListPresenter.swift:0)
10  Organic Maps                    0x000000010066fbc0 BookmarksListPresenter.reload() + 72
11  Organic Maps                    0x00000001006e88ac BookmarksListPresenter.viewDidAppear() + 4 (BookmarksListPresenter.swift:240)
12  Organic Maps                    0x00000001006e88ac protocol witness for IBookmarksListPresenter.viewDidAppear() in conformance BookmarksListPresenter + 8 (<compiler-generated>:239)
13  Organic Maps                    0x00000001006e88ac BookmarksListViewController.viewDidAppear(_:) + 84 (BookmarksListViewController.swift:56)
14  Organic Maps                    0x00000001006e88ac @objc BookmarksListViewController.viewDidAppear(_:) + 140 (<compiler-generated>:54)
15  UIKitCore                       0x00000001a2287790 -[UIViewController _setViewAppearState:isAnimating:] + 1136 (UIViewController.m:6429)
16  UIKitCore                       0x00000001a24b58dc -[UIViewController __viewDidAppear:] + 168 (UIViewController.m:6681)
17  UIKitCore                       0x00000001a24b57e8 -[UIViewController _endAppearanceTransition:] + 204 (UIViewController.m:6771)
18  UIKitCore                       0x00000001a24263b0 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1208 (UINavigationController.m:5083)
19  UIKitCore                       0x00000001a29f7818 __49-[UINavigationController _startCustomTransition:]_block_invoke.349 + 248 (UINavigationController.m:2416)
20  UIKitCore                       0x00000001a249ca78 -[_UIViewControllerTransitionContext completeTransition:] + 116 (UIViewControllerTransitioning.m:304)
21  UIKitCore                       0x00000001a2a90b64 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_5 + 604 (_UINavigationParallaxTransition.m:571)
22  UIKitCore                       0x00000001a221b810 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__ + 36 (UIView.m:16396)
23  UIKitCore                       0x00000001a221b6f4 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 624 (UIView.m:16429)
24  UIKitCore                       0x00000001a221a40c -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 436 (UIView.m:0)
25  UIKitCore                       0x00000001a2227a08 -[UIViewAnimationState animationDidStop:finished:] + 192 (UIView.m:2400)
26  UIKitCore                       0x00000001a2227a78 -[UIViewAnimationState animationDidStop:finished:] + 304 (UIView.m:2422)
27  QuartzCore                      0x00000001a15c9b08 run_animation_callbacks(void*) + 132 (CALayer.mm:7714)
28  libdispatch.dylib               0x00000001a7e32dd4 _dispatch_client_callout + 20 (object.m:576)
29  libdispatch.dylib               0x00000001a7e415a4 _dispatch_main_queue_drain + 988 (queue.c:7898)
30  libdispatch.dylib               0x00000001a7e411b8 _dispatch_main_queue_callback_4CF + 44 (queue.c:8058)
31  CoreFoundation                  0x000000019ff5f710 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1780)
32  CoreFoundation                  0x000000019ff5c914 __CFRunLoopRun + 1996 (CFRunLoop.c:3149)
33  CoreFoundation                  0x000000019ff5bcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
34  GraphicsServices                0x00000001e49a91a8 GSEventRunModal + 164 (GSEvent.c:2196)
35  UIKitCore                       0x00000001a2595ae8 -[UIApplication _run] + 888 (UIApplication.m:3713)
36  UIKitCore                       0x00000001a2649d98 UIApplicationMain + 340 (UIApplication.m:5303)
37  Organic Maps                    0x000000010072f848 main + 752 (main.mm:15)
38  dyld                            0x00000001c3733154 start + 2356 (dyldMain.cpp:1298)

Similar to #668 on Android.

pastk commented 1 week ago

Duplicate of #9362 which has more info.