[ios] Crash after moving track to another list and returning back to the map #8216

Open
opened 2024-05-19 09:08:22 +00:00 by biodranik · 0 comments
biodranik commented 2024-05-19 09:08:22 +00:00 (Migrated from github.com)

Reproduced on today's master.

Looks like some internal track IDs are changed after the move, and renderer is not updated.

Likely related to #8189 crash.

CC @kirylkaveryn @rtsisyk @vng

Incident Identifier: D3BB9F26-5B14-427F-9855-EA7357684E24
Distributor ID:      com.apple.TestFlight
Hardware Model:      iPhone14,3
Process:             Organic Maps [760]
Path:                /private/var/containers/Bundle/Application/3CA1AF62-5DBA-4A2A-AC61-B5BFBF110272/Organic Maps.app/Organic Maps
Identifier:          app.organicmaps
Version:             2024.05.18 (2)
AppStoreTools:       15F31e
AppVariant:          1:iPhone14,3:17.4
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           app.organicmaps [904]

Date/Time:           2024-05-19 10:58:55.9742 +0200
Launch Time:         2024-05-19 10:57:13.2586 +0200
OS Version:          iPhone OS 17.5 (21F79)
Release Type:        User
Baseband Version:    3.50.04
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region.  Bytes before following region: 4372037632
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   104980000-104a70000 [  960K] r-x/r-x SM=COW  /var/containers/Bundle/Application/3CA1AF62-5DBA-4A2A-AC61-B5BFBF110272/Organic Maps.app/Organic Maps
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [760]

Triggered by Thread:  18


Kernel Triage:
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter

...

Thread 18 Crashed:
0   Organic Maps                  	0x0000000104c86818 df::UserMarkGenerator::UpdateIndex(unsigned long long) (in Organic Maps) (user_mark_generator.cpp:114) + 3172376
1   Organic Maps                  	0x0000000104cdc3b4 df::BackendRenderer::AcceptMessage(ref_ptr<df::Message>) (in Organic Maps) (backend_renderer.cpp:303) + 3523508
2   Organic Maps                  	0x0000000104ca91a4 df::MessageAcceptor::ProcessSingleMessage(bool) (in Organic Maps) (message_acceptor.cpp:20) + 3314084
3   Organic Maps                  	0x0000000104ce182c df::BackendRenderer::RenderFrame() (in Organic Maps) (backend_renderer.cpp:738) + 3545132
4   Organic Maps                  	0x0000000104c8c478 std::__1::__function::__func<df::BaseRenderer::IterateRenderLoop()::$_0, std::__1::allocator<df::BaseRenderer::IterateRenderLoop()::$_0>, void ()>::operator()() (in Organic Maps) (function.h:364) + 3196024
5   Organic Maps                  	0x0000000104ce40b0 df::BackendRenderer::Routine::Do() (in Organic Maps) (backend_renderer.cpp:727) + 3555504
6   Organic Maps                  	0x0000000104c04d58 void* std::__1::__thread_proxy[abi:ue170006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::shared_ptr<threads::IRoutine>), std::__1::shared_ptr<threads::IRoutine>>>(void*) (in Organic Maps) (thread.h:238) + 2641240
7   libsystem_pthread.dylib       	0x000000020486906c _pthread_start + 136 (pthread.c:931)
8   libsystem_pthread.dylib       	0x00000002048640d8 thread_start + 8 (:-1)

Reproduced on today's master. Looks like some internal track IDs are changed after the move, and renderer is not updated. Likely related to #8189 crash. CC @kirylkaveryn @rtsisyk @vng ``` Incident Identifier: D3BB9F26-5B14-427F-9855-EA7357684E24 Distributor ID: com.apple.TestFlight Hardware Model: iPhone14,3 Process: Organic Maps [760] Path: /private/var/containers/Bundle/Application/3CA1AF62-5DBA-4A2A-AC61-B5BFBF110272/Organic Maps.app/Organic Maps Identifier: app.organicmaps Version: 2024.05.18 (2) AppStoreTools: 15F31e AppVariant: 1:iPhone14,3:17.4 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: app.organicmaps [904] Date/Time: 2024-05-19 10:58:55.9742 +0200 Launch Time: 2024-05-19 10:57:13.2586 +0200 OS Version: iPhone OS 17.5 (21F79) Release Type: User Baseband Version: 3.50.04 Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 VM Region Info: 0 is not in any region. Bytes before following region: 4372037632 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 104980000-104a70000 [ 960K] r-x/r-x SM=COW /var/containers/Bundle/Application/3CA1AF62-5DBA-4A2A-AC61-B5BFBF110272/Organic Maps.app/Organic Maps Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [760] Triggered by Thread: 18 Kernel Triage: VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter ... Thread 18 Crashed: 0 Organic Maps 0x0000000104c86818 df::UserMarkGenerator::UpdateIndex(unsigned long long) (in Organic Maps) (user_mark_generator.cpp:114) + 3172376 1 Organic Maps 0x0000000104cdc3b4 df::BackendRenderer::AcceptMessage(ref_ptr<df::Message>) (in Organic Maps) (backend_renderer.cpp:303) + 3523508 2 Organic Maps 0x0000000104ca91a4 df::MessageAcceptor::ProcessSingleMessage(bool) (in Organic Maps) (message_acceptor.cpp:20) + 3314084 3 Organic Maps 0x0000000104ce182c df::BackendRenderer::RenderFrame() (in Organic Maps) (backend_renderer.cpp:738) + 3545132 4 Organic Maps 0x0000000104c8c478 std::__1::__function::__func<df::BaseRenderer::IterateRenderLoop()::$_0, std::__1::allocator<df::BaseRenderer::IterateRenderLoop()::$_0>, void ()>::operator()() (in Organic Maps) (function.h:364) + 3196024 5 Organic Maps 0x0000000104ce40b0 df::BackendRenderer::Routine::Do() (in Organic Maps) (backend_renderer.cpp:727) + 3555504 6 Organic Maps 0x0000000104c04d58 void* std::__1::__thread_proxy[abi:ue170006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void (*)(std::__1::shared_ptr<threads::IRoutine>), std::__1::shared_ptr<threads::IRoutine>>>(void*) (in Organic Maps) (thread.h:238) + 2641240 7 libsystem_pthread.dylib 0x000000020486906c _pthread_start + 136 (pthread.c:931) 8 libsystem_pthread.dylib 0x00000002048640d8 thread_start + 8 (:-1) ```
This repo is archived. You cannot comment on issues.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#8216
No description provided.