自iOS10.3.0以来,UIWebView在LocalStorage导入时崩溃

时间:2017-08-25 12:24:31

标签: ios uiwebview

我们使用UIWebView加载远程html,它很长时间都运行良好。最近,我们在Fabric上遇到了以下崩溃,它只发生在iOS 10.3.0及更高版本上。

当Webkit尝试导入LocalStorage时,它会在StorageThread上崩溃。是否有任何人也会遇到这样的问题,或者是否有任何提示可以阻止它?

崩溃日志

  

21。崩溃:WebCore:LocalStorage

     
      
  1. WebKitLegacy 0x18a00a828 WebKit :: StorageAreaImpl :: importItems(WTF :: HashMap,WTF :: HashTraits> const&)+ 50
  2.   
  3. WebKitLegacy 0x18a00bc6c WebKit :: StorageAreaSync :: performImport()+ 336
  4.   
  5. WebKitLegacy 0x18a00f370 WebCore :: StorageThread :: threadEntryPoint()+ 108
  6.   
  7. JavaScriptCore 0x1880cef7c WTF :: threadEntryPoint(void *)+ 212
  8.   
  9. JavaScriptCore 0x1880cee8c WTF :: wtfThreadEntryPoint(void *)+ 24
  10.   
  11. libsystem_pthread.dylib 0x1832b168c _pthread_body + 240
  12.   
  13. libsystem_pthread.dylib 0x1832b159c _pthread_body + 282   7 libsystem_pthread.dylib 0x1832aecb4 thread_start + 4
  14.   

1 个答案:

答案 0 :(得分:0)

您可以尝试在应用中删除远程html中的localStorage.setItem