gpt4 book ai didi

ios - 报告 : YouTube iFrame player crashes in iOS 9. 0.x UIWebView(自 2016-09-02 起)

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:32:34 25 4
gpt4 key购买 nike

The crash is reproducible in an iOS 9.0.x device via opening this official demo page from app with UIWebView (like Facebook Messenger)

我正在使用基于此 reference 的 YouTube iFrame 播放器然而,在我的 iOS UIWebView 中,从 9 月 2 日开始,它开始使应用程序崩溃(仅限 iOS 9.0.x),堆栈如下所示:

Crashed: JavaScriptCore::Marking

0 JavaScriptCore 0x1859f65b0 JSC::JSEnvironmentRecord::visitChildren(JSC::JSCell*, JSC::SlotVisitor&) + 224
1 JavaScriptCore 0x1859f65ec JSC::JSEnvironmentRecord::visitChildren(JSC::JSCell*, JSC::SlotVisitor&) + 284
2 JavaScriptCore 0x1855c34bc JSC::SlotVisitor::drain() + 300
3 JavaScriptCore 0x1855c446c JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 288
4 JavaScriptCore 0x1858e4bd0 JSC::GCThread::gcThreadMain() + 120
5 JavaScriptCore 0x1855bb4e4 WTF::threadEntryPoint(void*) + 212
6 JavaScriptCore 0x1855bb3f4 WTF::wtfThreadEntryPoint(void*) + 24
7 libsystem_pthread.dylib 0x199e87b3c _pthread_body + 156
8 libsystem_pthread.dylib 0x199e87aa0 _pthread_body + 154
9 libsystem_pthread.dylib 0x199e85030 thread_start + 4

由于它可以在带有官方演示页面的 iOS 9.0.x 设备中重现,我认为 YouTube iFrame 播放器在 9 月 2 日的更改可能有问题。

有人对此有何建议吗?

最佳答案

找到这个 related SO question其中指出这些崩溃是 bug in WebKit 的结果.

也基于此thread ,如果您的应用程序随机崩溃,那么您需要分析您的代码。你可以在 XCode 上做到这一点。尝试在 XCode 中打开您的项目。在产品菜单中,您会找到分析选项 (cmd+shift+B)。确保在分析之前选择了“iOS 设备”。

answer也可能有帮助。

The issue in this case appears to have been from releasing a JSContext object from a section of code which was not the owner that was setup to run JavaScript. Xcode flagged it in the static analyzer and once the release call was removed all was well. I'm a bit hesitant to say this was for sure the issue since the crash didn't happen 100% of the time but given the testing before/after the change it seems pretty likely.

关于ios - 报告 : YouTube iFrame player crashes in iOS 9. 0.x UIWebView(自 2016-09-02 起),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39340538/

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