IOS 11 crash with VectorKit and Texture2D

Since iOS 11 is available (from 11.0 to 11.0.3), we get these crashes. I can only assume that these failures occur when either the map display or the map tile is destroyed. However, we cannot reproduce the problem internally. Hockey reports this failure.

Given that this failure is always included in stream 0 (i.e., the main stream), we do not know where to start the investigation. This is “normal” for any UI related to setting up and tearing off the main thread, and not one of the broken frames in the stack contains a link to the code we wrote.

Has anyone encountered Texture2Dcrashes on dealloc?

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0xbadd9a85ba4fbebd
Crashed Thread:  0

Thread 0 Crashed:
0   VectorKit                            0x0000000193c6b744 ggl::Texture2D::~Texture2D() + 92
1   libc++.1.dylib                       0x0000000183456f64 std::__1::__shared_weak_count::__release_shared() + 68
2   VectorKit                            0x0000000193d33bf0 -[VKRasterTile .cxx_destruct] + 168
3   libobjc.A.dylib                      0x000000018349eef4 object_cxxDestructFromClass(objc_object*, objc_class*) + 144
4   libobjc.A.dylib                      0x00000001834ac638 objc_destructInstance + 84
5   libobjc.A.dylib                      0x00000001834ac690 object_dispose + 12
6   VectorKit                            0x0000000193c3e1e8 -[VKTile dealloc] + 64
7   VectorKit                            0x0000000193c49fa4 -[VKRasterTile dealloc] + 72
8   VectorKit                            0x0000000193e51f80 __destroy_helper_block_.216 + 36
9   libsystem_blocks.dylib               0x00000001839b1a60 _Block_release + 156
10  libdispatch.dylib                    0x0000000183911048 _dispatch_client_callout + 12
11  libdispatch.dylib                    0x000000018391db74 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1012
12  CoreFoundation                       0x0000000183f33f20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
13  CoreFoundation                       0x0000000183f31afc __CFRunLoopRun + 2008
14  CoreFoundation                       0x0000000183e522d8 CFRunLoopRunSpecific + 432
15  GraphicsServices                     0x0000000185ce3f84 GSEventRunModal + 96
16  UIKit                                0x000000018d3ff880 UIApplicationMain + 204
17  <removed app name>                   0x0000000104f75438 main (main.m:17)
18  libdyld.dylib                        0x000000018397656c start + 0
+4
source share
2 answers

We also got this problem, and we solved it.

  • MapKit, ( , iOS 11 )
  • MapKit ( )

, MapKit

0

VectorKit, . , . iOS 11, .

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Crashed: com.apple.main-thread
0  VectorKit                      0x1921af744 ggl::Texture2D::~Texture2D() + 92
1  libc++.1.dylib                 0x18199bf64 std::__1::__shared_weak_count::__release_shared() + 72
2  VectorKit                      0x192277bf0 -[VKRasterTile .cxx_destruct] + 172
3  libobjc.A.dylib                0x1819e2ef4 object_cxxDestructFromClass(objc_object*, objc_class*) + 148
4  libobjc.A.dylib                0x1819f0638 objc_destructInstance + 88
5  libobjc.A.dylib                0x1819f0690 object_dispose + 16
6  VectorKit                      0x1921821e8 -[VKTile dealloc] + 68
7  VectorKit                      0x19218dfa4 -[VKRasterTile dealloc] + 76
8  VectorKit                      0x192395f80 __destroy_helper_block_.216 + 40
9  libsystem_blocks.dylib         0x181ef5a60 _Block_release + 160
10 libdispatch.dylib              0x181e55048 _dispatch_client_callout + 16
11 libdispatch.dylib              0x181e61b74 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1016
12 CoreFoundation                 0x182477f20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
13 CoreFoundation                 0x182475afc __CFRunLoopRun + 2012
14 CoreFoundation                 0x1823962d8 CFRunLoopRunSpecific + 436
15 GraphicsServices               0x184227f84 GSEventRunModal + 100
16 UIKit                          0x18b943880 UIApplicationMain + 208
17 iObs                           0x10098f558 main (AppDelegate.swift:34)
18 libdyld.dylib                  0x181eba56c start + 4
0

Source: https://habr.com/ru/post/1688094/


All Articles