mapbox / mapbox-navigation-ios

Turn-by-turn navigation logic and UI in Swift on iOS
https://docs.mapbox.com/ios/navigation/
Other
861 stars 314 forks source link

[Bug]: App got crashed at Line 577 in MapView.swift #4450

Open santoso8118 opened 1 year ago

santoso8118 commented 1 year ago

Mapbox Navigation SDK version

2.7.2

Steps to reproduce

Its not clear steps to reproduce

Please check the crashed log as below:

com.apple.main-thread
0  libobjc.A.dylib                0x2800 objc_msgSend + 1022
1  Metal                          0x25b70 -[MTLRenderPassColorAttachmentDescriptorArrayInternal dealloc] + 80
2  Metal                          0x23f8c -[MTLRenderPassDescriptorInternal dealloc] + 44
3  MapboxCoreMaps                 0xa649c ~CommandEncoder + 28 (command_encoder.mm:28)
4  MapboxCoreMaps                 0xa629c ~CommandEncoder + 19 (command_encoder.mm:19)
5  MapboxCoreMaps                 0x2d1930 render + 2084 (memory:2084)
6  MapboxCoreMaps                 0x2c99b0 render + 51 (renderer.cpp:51)
7  MapboxCoreMaps                 0x65d24 render + 54 (backend_scope.cpp:54)
8  MapboxCoreMaps                 0x61890 -[MBMMetalViewDelegate drawInMTKView:] + 9 (view_delegate.mm:9)
9  MetalKit                       0x2238 -[MTKView draw] + 160
10 MyApp                         0x848550 specialized MapView.updateFromDisplayLink(displayLink:) + 577 (MapView.swift:577)
11 MyApp                         0x847af8 partial apply for closure #1 in MapView.didMoveToWindow() + 611 (MapView.swift:611)
12 MyApp                         0x83bea8 @objc ForwardingDisplayLinkTarget.update(with:) + 4345937576 (<compiler-generated>:4345937576)
13 QuartzCore                     0x298a4 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 820
14 QuartzCore                     0x1471c4 CA::Display::DisplayLink::dispatch_deferred_display_links(unsigned int) + 380
15 UIKitCore                      0x64de00 _UIUpdateSequenceRun + 84
16 UIKitCore                      0xcb1944 schedulerStepScheduledMainSection + 144
17 UIKitCore                      0xcb0ea0 runloopSourceCallback + 92
18 CoreFoundation                 0xd3208 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
19 CoreFoundation                 0xdf864 __CFRunLoopDoSource0 + 176
20 CoreFoundation                 0x646c8 __CFRunLoopDoSources0 + 244
21 CoreFoundation                 0x7a1c4 __CFRunLoopRun + 828
22 CoreFoundation                 0x7f4dc CFRunLoopRunSpecific + 612
23 GraphicsServices               0x135c GSEventRunModal + 164
24 UIKitCore                      0x39d37c -[UIApplication _run] + 888
25 UIKitCore                      0x39cfe0 UIApplicationMain + 340
26 MyApp                         0x11240 main + 45 (AppDelegate.swift:45)
27 ???                            0x1ae5dcdec (Missing)

Does anyone has the same issue ? Please advice.

Expected behavior

App should not be crashed.

Actual behavior

App got crashed

Is this a one-time issue or a repeatable issue?

one-time

kried commented 1 year ago

Hi @santoso8118

Thank you for your report. Could you please provide more details about this crash? How often does this problem reproduce? Does it repeat on a specific device?