gpt4 book ai didi

ios - 应用程序崩溃,并调用了 [ServicesDaemonManager] 中断处理程序。 -[FontServicesDaemonManager 连接]_block_invoke

转载 作者:行者123 更新时间:2023-12-03 20:50:26 45 4
gpt4 key购买 nike

我的应用程序随机崩溃并出现此错误:

 [ServicesDaemonManager] interruptionHandler is called.
-[FontServicesDaemonManager connection]_block_invoke
(didReceiveMemoryWarning 在错误消息之前触发)
由于随机性,发布代码有点困难。
我使用 SwiftUI (UIHostingController)、@ObserverObjects、异步网络调用、转换到其他 View 等。
大多数时候一切正常,但有时我遇到了这个错误。
然后内存不断增加,直到应用程序崩溃。
我试图修复所有可能的内存泄漏(释放所有图像,[弱自我],...)
没有帮助。
我不确定 FontServicesDaemonManager 正在做什么以及它以何种方式参与,但所有字体都使用系统字体:
 .font(Font.system(size: 25 , weight: .regular))
有时此错误也会出现在上述错误之后:
-[UIWindow endDisablingInterfaceAutorotationAnimated:] called on <UIWindow: 0x10aab11a0; frame = (0 0; 375 812); gestureRecognizers = <NSArray: 0x10acb2510>; layer = <UIWindowLayer: 0x10aacbee0>> without matching -beginDisablingInterfaceAutorotation. Ignoring.
任何人都遇到过类似的问题或知道如何解决这个问题?
(Xcode 11.6)

最佳答案

希望你得到答案,我在这里描述我的场景:
我在 Xcode 11.6 上遇到了同样的错误,问题是我在方案上启用了 zoombie 对象并且它正在创建 [ServicesDaemonManager] 中断处理程序。所以请检查一下。内存警告背后的原因是在邮件线程上加载高分辨率图像并不好。在后台线程中添加下载图像对我有用。
谢谢,
拉特内什瓦尔

关于ios - 应用程序崩溃,并调用了 [ServicesDaemonManager] 中断处理程序。 -[FontServicesDaemonManager 连接]_block_invoke,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63151862/

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com