Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

"no such layer" exception after style update #6341

Closed
tadasr opened this issue Sep 15, 2016 · 6 comments
Closed

"no such layer" exception after style update #6341

tadasr opened this issue Sep 15, 2016 · 6 comments
Labels
crash iOS Mapbox Maps SDK for iOS needs information

Comments

@tadasr
Copy link

tadasr commented Sep 15, 2016

Platform:
iOS

Mapbox SDK version:
ios-v3.3.4 (c64a0c2486)

Steps to trigger behavior

We released our app 7 days ago. After we updated updated our map style(2 days ago) we started to receive crashes (from Crashlytics) with error "Fatal Exception: std::runtime_error: no such layer".

we are calling insertCustomStyleLayerWithIdentifier on mapViewDidFinishLoadingMap delegate callback. We are removing layer with removeCustomStyleLayerWithIdentifier on willMoveToWindow callback if window is nil.

Some stack trace:

Fatal Exception: std::runtime_error: no such layer

Crashed: com.twitter.crashlytics.ios.exception
0  Trafi                          0x1005e6430 __hidden#94140_ (__hidden#95124_:376)
1  Trafi                          0x1005e6430 __hidden#94140_ (__hidden#95124_:376)
2  Trafi                          0x1005e62ec __hidden#94140_ (__hidden#95124_:407)
3  Trafi                          0x1005d6aac __hidden#93854_ (__hidden#94150_:24)
4  Trafi                          0x1005e4504 __hidden#95039_ (__hidden#95059_:197)
5  libdispatch.dylib              0x1860991c0 _dispatch_client_callout + 16
6  libdispatch.dylib              0x1860a6860 _dispatch_barrier_sync_f_invoke + 84
7  Trafi                          0x1005e3fa8 __hidden#93682_ (__hidden#95059_:206)
8  Trafi                          0x1005e3ad8 __hidden#95035_ (__hidden#95059_:265)
9  libc++abi.dylib                0x185c3766c std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x185c37234 __cxa_rethrow + 144
11 libobjc.A.dylib                0x185c4871c objc_exception_rethrow + 44
12 CoreFoundation                 0x1870ea0bc CFRunLoopRunSpecific + 560
13 GraphicsServices               0x188b6d198 GSEventRunModal + 180
14 UIKit                          0x18d0c3818 -[UIApplication _run] + 684
15 UIKit                          0x18d0be550 UIApplicationMain + 208
16 Trafi                          0x10011ec14 main (__hidden#14191_:16)
17 libdispatch.dylib              0x1860cc5b8 (Missing)

Expected behavior

App does not crash.

Actual behavior

App crashes.

@friedbunny
Copy link
Contributor

Could you post a fully symbolicated stack trace, please?

@friedbunny friedbunny added iOS Mapbox Maps SDK for iOS crash labels Sep 15, 2016
@1ec5
Copy link
Contributor

1ec5 commented Sep 15, 2016

Just a wild guess, based on the error message: are you sure the otherIdentifier parameter is correct? It should be the identifier of a layer that’s already in the style. You can see a list of the layer identifiers in Studio’s sidebar. (Once #6097 lands, you’ll also be able to access this list via MGLStyle’s layers property.)

@tadasr
Copy link
Author

tadasr commented Sep 19, 2016

@friedbunny thanks for replay. This is Crashlytics report:

# Organization: Trafi
# Platform: ios
# Application: TRAFI iOS
# Version: 3.6.1 (2531)
# Bundle Identifier: com.trafi.ios.tk
# Issue #: 9808
# Date: 2016-09-19T11:42:20Z
# OS Version: 9.3.5 (13G36)
# Device: iPhone 5
# RAM Free: 32.4%
# Disk Free: 38.4%

#0. Crashed: com.twitter.crashlytics.ios.exception
0  Trafi                          0x593551 __hidden#93176_ (__hidden#94081_:376)
1  Trafi                          0x593551 __hidden#93176_ (__hidden#94081_:376)
2  Trafi                          0x593449 __hidden#93176_ (__hidden#94081_:407)
3  Trafi                          0x587927 __hidden#92890_ (__hidden#93186_:26)
4  Trafi                          0x591ebf __hidden#93998_ (__hidden#94016_:199)
5  libdispatch.dylib              0x23833cab _dispatch_client_callout + 22
6  libdispatch.dylib              0x2383cf3d _dispatch_barrier_sync_f_invoke + 56
7  Trafi                          0x5918c1 __hidden#92715_ (__hidden#94016_:206)
8  Trafi                          0x5912db __hidden#93994_ (__hidden#94016_:265)
9  libc++abi.dylib                0x23450e17 std::__terminate(void (*)()) + 78
10 libc++abi.dylib                0x234508f7 __cxa_rethrow + 102
11 libobjc.A.dylib                0x2345ef47 objc_exception_rethrow + 42
12 CoreFoundation                 0x23bb024f CFRunLoopRunSpecific + 650
13 CoreFoundation                 0x23baffbd CFRunLoopRunInMode + 108
14 GraphicsServices               0x251ccaf9 GSEventRunModal + 160
15 UIKit                          0x282ea435 UIApplicationMain + 144
16 Trafi                          0xe58ad main (__hidden#14171_:16)
17 libdispatch.dylib              0x2385c873 (Missing)

--

Fatal Exception: std::runtime_error: no such layer


#0. Crashed: com.twitter.crashlytics.ios.exception
0  Trafi                          0x593551 __hidden#93176_ (__hidden#94081_:376)
1  Trafi                          0x593551 __hidden#93176_ (__hidden#94081_:376)
2  Trafi                          0x593449 __hidden#93176_ (__hidden#94081_:407)
3  Trafi                          0x587927 __hidden#92890_ (__hidden#93186_:26)
4  Trafi                          0x591ebf __hidden#93998_ (__hidden#94016_:199)
5  libdispatch.dylib              0x23833cab _dispatch_client_callout + 22
6  libdispatch.dylib              0x2383cf3d _dispatch_barrier_sync_f_invoke + 56
7  Trafi                          0x5918c1 __hidden#92715_ (__hidden#94016_:206)
8  Trafi                          0x5912db __hidden#93994_ (__hidden#94016_:265)
9  libc++abi.dylib                0x23450e17 std::__terminate(void (*)()) + 78
10 libc++abi.dylib                0x234508f7 __cxa_rethrow + 102
11 libobjc.A.dylib                0x2345ef47 objc_exception_rethrow + 42
12 CoreFoundation                 0x23bb024f CFRunLoopRunSpecific + 650
13 CoreFoundation                 0x23baffbd CFRunLoopRunInMode + 108
14 GraphicsServices               0x251ccaf9 GSEventRunModal + 160
15 UIKit                          0x282ea435 UIApplicationMain + 144
16 Trafi                          0xe58ad main (__hidden#14171_:16)
17 libdispatch.dylib              0x2385c873 (Missing)

#1. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#2. com.apple.libdispatch-manager
0  libsystem_kernel.dylib         0x239312f8 kevent_qos + 24
1  libdispatch.dylib              0x23843837 _dispatch_mgr_invoke + 254
2  libdispatch.dylib              0x23835917 _dispatch_mgr_thread + 38

#3. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#4. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#5. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#6. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#7. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#8. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23baffbd CFRunLoopRunInMode + 108
6  CFNetwork                      0x24205bdf +[NSURLConnection(Loader) _resourceLoadLoop:] + 486
7  Foundation                     0x244ce64d __NSThread__start__ + 1144
8  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
9  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
10 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#9. com.twitter.crashlytics.ios.MachExceptionServer
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  Trafi                          0x58325b __hidden#92883_ (__hidden#92901_:180)
3  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
4  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
5  libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#10. GAIThread
0  libsystem_kernel.dylib         0x2391d35c stat + 12
1  Trafi                          0x280d45 __hidden#43099_ (__hidden#44826_:35050)
2  Trafi                          0x295543 __hidden#43576_ (__hidden#44826_:19698)
3  Trafi                          0x281cfd __hidden#43121_ (__hidden#44826_:60540)
4  Trafi                          0x29b511 __hidden#43657_ (__hidden#44826_:79807)
5  Trafi                          0x284063 __hidden#43192_ (__hidden#44826_:75131)
6  Trafi                          0x5c11c7 __hidden#98971_ (__hidden#99061_:98)
7  Trafi                          0x5c472b __hidden#99141_ (__hidden#99262_:187)
8  Trafi                          0x5c571b __hidden#99145_ (__hidden#99262_:316)
9  Trafi                          0x5c47a9 __hidden#99143_ (__hidden#99262_:213)
10 Trafi                          0x5c451b __hidden#99140_ (__hidden#99262_:168)
11 Trafi                          0x5be94f __hidden#98285_ (__hidden#98803_:692)
12 Trafi                          0x5be783 __hidden#98284_ (__hidden#98803_:670)
13 Foundation                     0x244ce887 __NSThreadPerformPerform + 386
14 CoreFoundation                 0x23c639e7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
15 CoreFoundation                 0x23c635d7 __CFRunLoopDoSources0 + 454
16 CoreFoundation                 0x23c6193f __CFRunLoopRun + 806
17 CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
18 CoreFoundation                 0x23baffbd CFRunLoopRunInMode + 108
19 Foundation                     0x243fd42d -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
20 Foundation                     0x2444bd75 -[NSRunLoop(NSRunLoop) run] + 80
21 Trafi                          0x5ad835 __hidden#96590_ (__hidden#96730_:229)
22 Foundation                     0x244ce64d __NSThread__start__ + 1144
23 libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
24 libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
25 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#11. com.localytics.LLAnalyticsSilo_queue
0  libsystem_kernel.dylib         0x2391b8f8 semaphore_wait_trap + 8
1  libdispatch.dylib              0x23841cab _dispatch_group_wait_slow + 226
2  libdispatch.dylib              0x2383b83b dispatch_block_wait + 214
3  BaseBoard                      0x25300865 -[NSObject(BaseBoard) bs_performSynchronously:timeout:] + 160
4  UserNotificationServices       0x25383657 -[UNSUserNotificationRegistrar userNotificationSettings] + 222
5  UIKit                          0x2853a6d7 -[UIApplication currentUserNotificationSettings] + 46
6  Trafi                          0x6be3cf __hidden#117567_ + 1307798
7  Trafi                          0x6a34d7 __hidden#116185_ + 1197470
8  Trafi                          0x6a1af1 __hidden#116103_ + 1190840
9  Trafi                          0x6a10b7 __hidden#116095_ + 1188222
10 Trafi                          0x6a110f __hidden#116097_ + 1188310
11 Trafi                          0x6b0059 __hidden#116882_ + 1249568
12 Trafi                          0x6b00a1 __hidden#116883_ + 1249640
13 Trafi                          0x6c09bf __hidden#117637_ + 1317510
14 Trafi                          0x6af4fb __hidden#116853_ + 1246658
15 Trafi                          0x6997f7 __hidden#115438_ + 1157310
16 Trafi                          0x699a0f __hidden#115439_ + 1157846
17 Trafi                          0x6bea33 __hidden#117574_ + 1309434
18 Trafi                          0x6b5179 __hidden#117210_ + 1270336
19 libdispatch.dylib              0x23833cbf _dispatch_call_block_and_release + 10
20 libdispatch.dylib              0x2383de7f _dispatch_queue_drain + 1762
21 libdispatch.dylib              0x23836e17 _dispatch_queue_invoke + 282
22 libdispatch.dylib              0x2383f6a1 _dispatch_root_queue_drain + 1572
23 libdispatch.dylib              0x2383f07b _dispatch_worker_thread3 + 94
24 libsystem_pthread.dylib        0x239d2e0d _pthread_wqthread + 1024
25 libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#12. com.apple.CFSocket.private
0  libsystem_kernel.dylib         0x2392feec __select + 20
1  CoreFoundation                 0x23c68b51 __CFSocketManager + 572
2  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
3  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
4  libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#13. Thread
0  libsystem_pthread.dylib        0x239d29f4 start_wqthread + 14

#14. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#15. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#16. AFNetworking
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23baffbd CFRunLoopRunInMode + 108
6  Foundation                     0x243fd42d -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
7  Foundation                     0x2444bd75 -[NSRunLoop(NSRunLoop) run] + 80
8  Trafi                          0x13f607 __hidden#21253_ (__hidden#21515_:164)
9  Foundation                     0x244ce64d __NSThread__start__ + 1144
10 libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
11 libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
12 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#17. DefaultFileSource
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23bf0f23 CFRunLoopRun + 98
6  Mapbox                         0xbb1229 void mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::run<std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long long&>, 0ul, 1ul>(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long long&>&&, std::__1::integer_sequence<unsigned long, 0ul, 1ul>) + 492
7  Mapbox                         0xbb1105 std::__1::__thread_proxy<std::__1::tuple<mbgl::util::Thread<mbgl::DefaultFileSource::Impl>::Thread<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long long&>(mbgl::util::ThreadContext const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&&&, unsigned long long&&&)::'lambda'()> >(void*, void*) + 200
8  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
9  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
10 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#18. AssetFileSource
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23bf0f23 CFRunLoopRun + 98
6  Mapbox                         0xbabd7d void mbgl::util::Thread<mbgl::AssetFileSource::Impl>::run<std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>, 0ul>(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>&&, std::__1::integer_sequence<unsigned long, 0ul>) + 432
7  Mapbox                         0xbabc95 std::__1::__thread_proxy<std::__1::tuple<mbgl::util::Thread<mbgl::AssetFileSource::Impl>::Thread<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>(mbgl::util::ThreadContext const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&&&)::'lambda'()> >(void*, void*) + 200
8  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
9  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
10 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#19. Worker
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23bf0f23 CFRunLoopRun + 98
6  Mapbox                         0xba2bf5 void mbgl::util::Thread<mbgl::Worker::Impl>::run<std::__1::tuple<> >(std::__1::tuple<>&&, std::__1::integer_sequence<unsigned long>) + 416
7  Mapbox                         0xba2b1d std::__1::__thread_proxy<std::__1::tuple<mbgl::util::Thread<mbgl::Worker::Impl>::Thread<>(mbgl::util::ThreadContext const&)::'lambda'()> >(void*, void*) + 200
8  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
9  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
10 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#20. Worker
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23bf0f23 CFRunLoopRun + 98
6  Mapbox                         0xba2bf5 void mbgl::util::Thread<mbgl::Worker::Impl>::run<std::__1::tuple<> >(std::__1::tuple<>&&, std::__1::integer_sequence<unsigned long>) + 416
7  Mapbox                         0xba2b1d std::__1::__thread_proxy<std::__1::tuple<mbgl::util::Thread<mbgl::Worker::Impl>::Thread<>(mbgl::util::ThreadContext const&)::'lambda'()> >(void*, void*) + 200
8  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
9  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
10 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#21. Worker
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23bf0f23 CFRunLoopRun + 98
6  Mapbox                         0xba2bf5 void mbgl::util::Thread<mbgl::Worker::Impl>::run<std::__1::tuple<> >(std::__1::tuple<>&&, std::__1::integer_sequence<unsigned long>) + 416
7  Mapbox                         0xba2b1d std::__1::__thread_proxy<std::__1::tuple<mbgl::util::Thread<mbgl::Worker::Impl>::Thread<>(mbgl::util::ThreadContext const&)::'lambda'()> >(void*, void*) + 200
8  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
9  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
10 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#22. Worker
0  libsystem_kernel.dylib         0x2391b8a8 mach_msg_trap + 20
1  libsystem_kernel.dylib         0x2391b6a9 mach_msg + 40
2  CoreFoundation                 0x23c636ad __CFRunLoopServiceMachPort + 136
3  CoreFoundation                 0x23c61a33 __CFRunLoopRun + 1050
4  CoreFoundation                 0x23bb01c9 CFRunLoopRunSpecific + 516
5  CoreFoundation                 0x23bf0f23 CFRunLoopRun + 98
6  Mapbox                         0xba2bf5 void mbgl::util::Thread<mbgl::Worker::Impl>::run<std::__1::tuple<> >(std::__1::tuple<>&&, std::__1::integer_sequence<unsigned long>) + 416
7  Mapbox                         0xba2b1d std::__1::__thread_proxy<std::__1::tuple<mbgl::util::Thread<mbgl::Worker::Impl>::Thread<>(mbgl::util::ThreadContext const&)::'lambda'()> >(void*, void*) + 200
8  libsystem_pthread.dylib        0x239d4c7f _pthread_body + 138
9  libsystem_pthread.dylib        0x239d4bf3 _pthread_start + 110
10 libsystem_pthread.dylib        0x239d2a08 thread_start + 8

#23. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

#24. Thread
0  libsystem_kernel.dylib         0x23930864 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x239d2e19 _pthread_wqthread + 1036
2  libsystem_pthread.dylib        0x239d29fc start_wqthread + 8

@tadasr
Copy link
Author

tadasr commented Sep 19, 2016

@1ec5 I just double checked, otherIdentifier is correct.

@1ec5
Copy link
Contributor

1ec5 commented Sep 19, 2016

That was fun to read on my phone. 😀 (Please use Gist next time.) The stack trace still says "hidden" all over it, which means it isn't symbolicated.

@jfirebaugh
Copy link
Contributor

jfirebaugh commented Sep 20, 2016

The only place that the "no such layer" exception thrown is in Style::removeLayer (within the implementation of removeCustomStyleLayerWithIdentifier). Are you absolutely sure that you are passing the correct layer identifier to removeCustomStyleLayerWithIdentifier, and calling it only when the custom layer has not already been removed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS needs information
Projects
None yet
Development

No branches or pull requests

4 participants