CachingPlayerItem icon indicating copy to clipboard operation
CachingPlayerItem copied to clipboard

pendingRequests accessed from different queues

Open pc-zhang opened this issue 5 years ago • 6 comments

I observed URLSessionDelegate and AVAssetResourceLoaderDelegate methods are called from different queues, and they both access pendingRequests.

pc-zhang avatar Jul 04 '19 02:07 pc-zhang

Thanks for pointing out!

neekeetab avatar Jul 09 '19 16:07 neekeetab

This can be a cause for #13

neekeetab avatar Jul 09 '19 16:07 neekeetab

You are welcome :-)

pc-zhang avatar Jul 11 '19 01:07 pc-zhang

@neekeetab Any update on this? It's definitely cause of crashes and currently, after we added CachingPlayerItem to our project, it's the biggest crash on Fabric. 😞

Kaspik avatar Sep 17 '19 09:09 Kaspik

I’m sorry for the crashes. Most likely it’s due to the race conditions. Adding a private queue may do it

neekeetab avatar Sep 17 '19 11:09 neekeetab

Is there a solution to this? My users are reporting crashes and this is cause. I'd help out but I'm not that good at multithreaded swift code. Really need a fix.

zackperdue avatar Apr 03 '20 06:04 zackperdue