Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

crash_info_entry_0: CoreUI: deallocating _CUIInternalLinkRendition ... Assets.car

Tags:

ios

swift

xcode11

When inspecting a crash with Firebase Crashlytics, I noticed the following line in the Keys section:

CoreUI: deallocating _CUIInternalLinkRendition 7113 /private/var/containers/Bundle/Application/1E06D0B4-30EA-41CA-998C-D8E86AA94100/.app/Assets.car

Is this related to the assets in my app? A memory issue in CoreUI?

like image 576
aneuryzm Avatar asked Jan 13 '20 13:01

aneuryzm


1 Answers

I have a player and the crash happened when I was force removing a time observer from the player. But the timeObserverToken is nil.

The Fix: Just unwrap token with if let before using!

func endPlayerObserving () {    //BAD CODING, Don't ever force unwrap optional objects     player?.removeTimeObserver(timeObserverToken!) } 
like image 168
Husam Avatar answered Sep 22 '22 13:09

Husam