JJException icon indicating copy to clipboard operation
JJException copied to clipboard

iOS18 使用AVPlayerViewController 播放器,播放视频时,页面卡死。与JJExceptionGuardKVOCrash 有关系。JJException版本0.2.13

Open GSmallSea opened this issue 1 year ago • 5 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Please complete the following information

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

GSmallSea avatar Oct 22 '24 02:10 GSmallSea

webview播放视频时,也会因为监听了JJExceptionGuardKVOCrash,导致闪退。

bbtyou avatar Nov 01 '24 03:11 bbtyou

有什么好的解决办法吗

WurenCakee avatar Nov 07 '24 08:11 WurenCakee

临时解决方案是:

[JJException configExceptionCategory:JJExceptionGuardUnrecognizedSelector | JJExceptionGuardDictionaryContainer | JJExceptionGuardArrayContainer | JJExceptionGuardNSTimer | JJExceptionGuardNSNotificationCenter | JJExceptionGuardNSStringContainer];  

iOS11之后不手动移除Observer也没有问题.

GOATRobery avatar Apr 22 '25 03:04 GOATRobery

更新

产生原因: iOS18竞态环境下产生dead lock.

解决方案: 异步执行

dispatch_semaphore_wait(...)
...
dispatch_semaphore_signal(..)

GOATRobery avatar Apr 27 '25 06:04 GOATRobery

更新

产生原因: iOS18竞态环境下产生dead lock.

解决方案: 异步执行

dispatch_semaphore_wait(...)
...
dispatch_semaphore_signal(..)

啥意思?你这个信号量要包着谁?

howoften avatar Jul 31 '25 01:07 howoften