setNowPlayingInfo sometime crash

i use


[[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:


sometime crash .


crash info is:


Thread : Crashed: Thread

0 libobjc.A.dylib 0x181a3dbd0 objc_msgSend + 16

1 CoreFoundation 0x1822ac3a0 +[__NSDictionaryI __new:::::] + 428

2 CoreFoundation 0x1822c47d4 -[__NSDictionaryM copyWithZone:] + 320

3 MediaPlayer 0x18ad8f86c __44-[MPNowPlayingInfoCenter setNowPlayingInfo:]_block_invoke + 32

4 libdispatch.dylib 0x181e11630 _dispatch_call_block_and_release + 24

5 libdispatch.dylib 0x181e115f0 _dispatch_client_callout + 16

6 libdispatch.dylib 0x181e1d634 _dispatch_queue_drain + 864

7 libdispatch.dylib 0x181e150f4 _dispatch_queue_invoke + 464

8 libdispatch.dylib 0x181e115f0 _dispatch_client_callout + 16

9 libdispatch.dylib 0x181e1fa88 _dispatch_root_queue_drain + 2140

10 libdispatch.dylib 0x181e1f224 _dispatch_worker_thread3 + 112

11 libsystem_pthread.dylib 0x182025470 _pthread_wqthread + 1092

12 libsystem_pthread.dylib 0x182025020 start_wqthread + 4


what i do to fix this problem?

Replies

Same issue here.

And it isn't rare crash - 15 times for last 30 days with 800 DAU.

I think it's critical enough number.

If anyone know how to fix this, please help to find out conditions why it's happening.

A similar question seems to be posted on StackOverflow


https://stackoverflow.com/questions/39555416/mpnowplayinginfocenter-throwing-exc-bad-access?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa


The suggested solution seems to be to simply don't call setNowPlayingInfo so often. But still it seems to be a rather lame solution.


Has anyone found an actual solution to this?