iOS app crashes with EXC_CRASH (SIGKILL) when app goes back from background to foreground


[CAGradientLayer _clearContents]: unrecognized selector sent to instance 0x2815c31a0

CoreFoundation ___exceptionPreprocess + 232

1 libobjc.A.dylib objc_exception_throw + 60

2 CoreFoundation -[NSOrderedSet initWithSet:copyItems:]

3 CoreFoundation ____forwarding___ + 1412

4 CoreFoundation _CF_forwarding_prep_0 + 96

5 UIKitCore -[UILabel _startMarquee] + 3332

6 libdispatch.dylib __dispatch_call_block_and_release + 32

7 libdispatch.dylib __dispatch_client_callout + 20

8 libdispatch.dylib _dispatch_main_queue_callback_4CF + 1012

9 CoreFoundation _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16

10 CoreFoundation ___CFRunLoopRun + 1888

11 CoreFoundation CFRunLoopRunSpecific + 452

12 GraphicsServices GSEventRunModal + 108

13 UIKitCore UIApplicationMain + 216

14 金囿 main (main.m:14)

15 libdyld.dylib _start + 4

and it happpened only iphonexs max,and it always happened when the app go back from background to foreground ,could you help me, thanks

Replies

Are you using Marquee framework ?


Which version of Xode, which version of IOS ?


Avoid duplicating posts on different sections.

That's the same post as

https://forums.developer.apple.com/message/358362#358362


You did not answer completely the question.

Are you using external frameworks that are using Marquee ?

5 UIKitCore -[UILabel _startMarquee] + 3332

I posted two versions of application with xcode 9 and 10 version, both xcode versions appeared the same problem, and it only happened on iphone xs max , all application code did not use Marquee.

Can you show the code where the error occurs.


You may have some UI code not running in the main thread.