当我使用xcode10

时间:2019-03-30 08:39:37

标签: ios objective-c xcode10

最近,我在iOS9中收到了很多崩溃消息。我的Xcode版本是10.1(10B61),错误堆栈如下:

libsystem_kernel.dylib __pthread_kill + 8

1 libsystem_pthread.dylib pthread_kill + 112

2 libsystem_c.dylib中止+ 140

3 libsystem_c.dylib基本名称+ 0

4个CoreGraphics _color_space_get_md5_digest

5 CoreFoundation CFRelease + 256

6个CoreGraphics _image_provider_finalize + 144

7 CoreFoundation CFRelease + 256

8 CoreGraphics _image_finalize + 88

9 CoreFoundation CFRelease + 256

10 UIKit-[UIImage dealloc] + 96

11 CoreFoundation-[__ NSArrayM dealloc] + 152

12 UIKit-[_ UIActivityIndi​​catorViewArtworkItem setImages:] + 80

13 CoreFoundation ___NSCacheValueRelease + 188

14 libcache.dylib __value_entry_remove + 116

15 libcache.dylib __entry_evict + 136

16 libcache.dylib __evict_last + 104

17 libcache.dylib __cache_enforce_limits + 96

18 libcache.dylib ____cache_handle_memory_pressure_event_block_invoke + 88

19 libdispatch.dylib __dispatch_call_block_and_release + 24

20 libdispatch.dylib __dispatch_client_callout + 16

21 libdispatch.dylib __dispatch_root_queue_drain + 2140

22 libdispatch.dylib __dispatch_worker_thread3 + 112

23 libsystem_pthread.dylib _pthread_wqthread + 1092

0 libsystem_kernel.dylib __pthread_kill + 8

1 libsystem_pthread.dylib pthread_kill + 112

2 libsystem_c.dylib中止+ 140

3 libsystem_c.dylib基本名称+ 0

4个CoreGraphics _CGCMSTransformRelease

5 CoreFoundation CFRelease + 256

6个CoreGraphics _color_finalize + 24

7 CoreFoundation CFRelease + 256

8个UIKit-[UIDeviceRGBColor dealloc] + 40

9 libobjc.A.dylib(匿名名称空间):: AutoreleasePoolPage :: pop(void *)+ 508

10 CoreFoundation _CFAutoreleasePoolPop + 28

11 CoreFoundation ___CFRunLoopRun + 1636

12 CoreFoundation CFRunLoopRunSpecific + 384

13 GraphicsServices GSEventRunModal + 180

14个UIKit UIApplicationMain + 204

15个主要专业版(main.m:19)

16 libdyld.dylib _start + 4

这仅在iOS9上崩溃,有人遇到类似的问题吗?

我有一个要使用iOS9进行调试的设备,在为应用程序吃了午餐后,也许几分钟后,它将崩溃。输出消息是:断言失败:(!space-> is_singleton),函数color_space_dealloc,文件/ BuildRoot / Library / Caches / com.apple.xbs / Sources / Quartz2D / Quartz2D-1033.4 / CoreGraphics / ColorSpaces / color-space.c,第102行。

1 个答案:

答案 0 :(得分:0)

您的代码中似乎有一个错误。清理自动释放池时似乎会发生这种情况,这对您来说很难。 “巧合”仅是巧合,或者您使用了iOS 9中不提供的功能。调试愉快。我想看看您的代码在哪里使用UIActivityIndi​​catorViewArtworkItem。