1. <legend id='tK3Tf'><style id='tK3Tf'><dir id='tK3Tf'><q id='tK3Tf'></q></dir></style></legend>
      <tfoot id='tK3Tf'></tfoot>

      <i id='tK3Tf'><tr id='tK3Tf'><dt id='tK3Tf'><q id='tK3Tf'><span id='tK3Tf'><b id='tK3Tf'><form id='tK3Tf'><ins id='tK3Tf'></ins><ul id='tK3Tf'></ul><sub id='tK3Tf'></sub></form><legend id='tK3Tf'></legend><bdo id='tK3Tf'><pre id='tK3Tf'><center id='tK3Tf'></center></pre></bdo></b><th id='tK3Tf'></th></span></q></dt></tr></i><div id='tK3Tf'><tfoot id='tK3Tf'></tfoot><dl id='tK3Tf'><fieldset id='tK3Tf'></fieldset></dl></div>
      1. <small id='tK3Tf'></small><noframes id='tK3Tf'>

          <bdo id='tK3Tf'></bdo><ul id='tK3Tf'></ul>

        iOS UIWebView 在“WebThread"中崩溃

        时间:2023-10-22

        <i id='q7Bdm'><tr id='q7Bdm'><dt id='q7Bdm'><q id='q7Bdm'><span id='q7Bdm'><b id='q7Bdm'><form id='q7Bdm'><ins id='q7Bdm'></ins><ul id='q7Bdm'></ul><sub id='q7Bdm'></sub></form><legend id='q7Bdm'></legend><bdo id='q7Bdm'><pre id='q7Bdm'><center id='q7Bdm'></center></pre></bdo></b><th id='q7Bdm'></th></span></q></dt></tr></i><div id='q7Bdm'><tfoot id='q7Bdm'></tfoot><dl id='q7Bdm'><fieldset id='q7Bdm'></fieldset></dl></div>
        <tfoot id='q7Bdm'></tfoot>

              • <bdo id='q7Bdm'></bdo><ul id='q7Bdm'></ul>

                  <tbody id='q7Bdm'></tbody>

                <small id='q7Bdm'></small><noframes id='q7Bdm'>

              • <legend id='q7Bdm'><style id='q7Bdm'><dir id='q7Bdm'><q id='q7Bdm'></q></dir></style></legend>
                  本文介绍了iOS UIWebView 在“WebThread"中崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  谁能帮我解决这个崩溃?在加载时在某些 UIWebView 实例之间来回切换时会间歇性地发生.

                  崩溃通常略有不同,但始终是具有类似堆栈跟踪的WebThread"崩溃.

                  以下是两次崩溃的相关部分:

                  <上一页>日期/时间:2011-11-08 14:29:01.165 -0500操作系统版本:iPhone OS 5.0 (9A334)报告版本:104异常类型:EXC_BAD_ACCESS (SIGSEGV)异常代码:0x00000006 处的 KERN_INVALID_ADDRESS崩溃的线程:4线程 4 名称:WebThread线程 4 崩溃:0 ???0x00000006 0 + 61 WebCore 0x32a36154-[QuickLookHandleAsDelegate 连接:didReceiveData:lengthReceived:] + 722 快速查看 0x30bee2c2 -[QLThreadInvoker connectionDidReceiveDataLengthReceived:] + 903 CoreFoundation 0x3537a226-[NSObject performSelector:withObject:] + 384 基础 0x32ce2752 __NSThreadPerformPerform + 3465 核心基础 0x353efafe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 106 核心基础 0x353ef2ca __CFRunLoopDoSources0 + 2107 核心基础 0x353ee070 __CFRunLoopRun + 6488 核心基础 0x353714d8 CFRunLoopRunSpecific + 2969 核心基础 0x353713a0 CFRunLoopRunInMode + 10010 WebCore 0x324c912a _ZL12RunWebThreadPv + 39811 libsystem_c.dylib 0x35ba1c18 _pthread_start + 31612 libsystem_c.dylib 0x35ba1ad4 thread_start + 4

                  <上一页>日期/时间:2011-11-08 15:09:01.410 -0500操作系统版本:iPhone OS 5.0 (9A334)报告版本:104异常类型:EXC_BAD_ACCESS (SIGSEGV)异常代码:0x00000034 处的 KERN_INVALID_ADDRESS崩溃的线程:4线程 4 名称:WebThread线程 4 崩溃:0 ???0x00000034 0 + 521 CoreFoundation 0x3537a226-[NSObject performSelector:withObject:] + 382 基础 0x32ce2752 __NSThreadPerformPerform + 3463 核心基础 0x353efafe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 104 核心基础 0x353ef2ca __CFRunLoopDoSources0 + 2105 核心基础 0x353ee070 __CFRunLoopRun + 6486 核心基础 0x353714d8 CFRunLoopRunSpecific + 2967 核心基础 0x353713a0 CFRunLoopRunInMode + 1008 WebCore 0x324c912a _ZL12RunWebThreadPv + 3989 libsystem_c.dylib 0x35ba1c18 _pthread_start + 31610 libsystem_c.dylib 0x35ba1ad4 thread_start + 4

                  解决方案

                  我看到你有 iOs 5.0.您正在加载的文件是 Office 文档(docx、xls)吗?

                  如果是这样,那么您的情况与我的情况相同.此问题仅在具有 5.0 的系统(此处为 iPad 和 iPad 2)上重现,并且当您尝试在 UIWebView 对象完成加载文件之前停止它时会发生此问题.无论是通过调用 stopLoading 还是 loadRequest

                  txt 文件不会发生这种情况.

                  如果是这样,它起源于 WebThread 从以下行开始:

                  #1 0x34912158 in -[QuickLookHandleAsDelegate connection:didReceiveData:lengthReceived:] ()

                  并跳转到一些随机指针,例如:

                  #0 0x00000010 in 0x00000010 ()

                  Anyone able to help me out with this crash? It happens intermittently when switching back and forth between some UIWebView instances while they are loading.

                  The crash is often slightly different, but it's always a crash of the "WebThread" with a similar stack trace.

                  Here's the relevant parts of two crashes:

                  Date/Time:       2011-11-08 14:29:01.165 -0500
                  OS Version:      iPhone OS 5.0 (9A334)
                  Report Version:  104
                  
                  Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
                  Exception Codes: KERN_INVALID_ADDRESS at 0x00000006
                  Crashed Thread:  4
                  
                  Thread 4 name:  WebThread
                  Thread 4 Crashed:
                  0   ???                             0x00000006 0 + 6
                  1   WebCore                         0x32a36154 -[QuickLookHandleAsDelegate connection:didReceiveData:lengthReceived:] + 72
                  2   QuickLook                       0x30bee2c2 -[QLThreadInvoker connectionDidReceiveDataLengthReceived:] + 90
                  3   CoreFoundation                  0x3537a226 -[NSObject performSelector:withObject:] + 38
                  4   Foundation                      0x32ce2752 __NSThreadPerformPerform + 346
                  5   CoreFoundation                  0x353efafe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 10
                  6   CoreFoundation                  0x353ef2ca __CFRunLoopDoSources0 + 210
                  7   CoreFoundation                  0x353ee070 __CFRunLoopRun + 648
                  8   CoreFoundation                  0x353714d8 CFRunLoopRunSpecific + 296
                  9   CoreFoundation                  0x353713a0 CFRunLoopRunInMode + 100
                  10  WebCore                         0x324c912a _ZL12RunWebThreadPv + 398
                  11  libsystem_c.dylib               0x35ba1c18 _pthread_start + 316
                  12  libsystem_c.dylib               0x35ba1ad4 thread_start + 4
                  

                  Date/Time:       2011-11-08 15:09:01.410 -0500
                  OS Version:      iPhone OS 5.0 (9A334)
                  Report Version:  104
                  
                  Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
                  Exception Codes: KERN_INVALID_ADDRESS at 0x00000034
                  Crashed Thread:  4
                  
                  Thread 4 name:  WebThread
                  Thread 4 Crashed:
                  0   ???                             0x00000034 0 + 52
                  1   CoreFoundation                  0x3537a226 -[NSObject performSelector:withObject:] + 38
                  2   Foundation                      0x32ce2752 __NSThreadPerformPerform + 346
                  3   CoreFoundation                  0x353efafe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 10
                  4   CoreFoundation                  0x353ef2ca __CFRunLoopDoSources0 + 210
                  5   CoreFoundation                  0x353ee070 __CFRunLoopRun + 648
                  6   CoreFoundation                  0x353714d8 CFRunLoopRunSpecific + 296
                  7   CoreFoundation                  0x353713a0 CFRunLoopRunInMode + 100
                  8   WebCore                         0x324c912a _ZL12RunWebThreadPv + 398
                  9   libsystem_c.dylib               0x35ba1c18 _pthread_start + 316
                  10  libsystem_c.dylib               0x35ba1ad4 thread_start + 4
                  

                  解决方案

                  I see that you have iOs 5.0. Are the files that you're loading Office documents (docx, xls)?

                  If so, then your case is the same as mine. This problem reproduces only on systems with 5.0 (iPad and iPad 2 here), and happens when you try to stop UIWebView object before it finishes loading the file. Whether it's by calling stopLoading or loadRequest

                  This doesn't happen with txt files.

                  And if it does, it originates in WebThread starting from line:

                  #1  0x34912158 in -[QuickLookHandleAsDelegate connection:didReceiveData:lengthReceived:] ()
                  

                  and jumping to some random pointers like:

                  #0  0x00000010 in 0x00000010 ()
                  

                  这篇关于iOS UIWebView 在“WebThread"中崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在当前项目中搜索任何 UIWebView 组件使用情况? 下一篇:在 UIWebview 上显示本地 UIImage

                  相关文章

                  <tfoot id='VlqpQ'></tfoot>

                      <legend id='VlqpQ'><style id='VlqpQ'><dir id='VlqpQ'><q id='VlqpQ'></q></dir></style></legend>
                      <i id='VlqpQ'><tr id='VlqpQ'><dt id='VlqpQ'><q id='VlqpQ'><span id='VlqpQ'><b id='VlqpQ'><form id='VlqpQ'><ins id='VlqpQ'></ins><ul id='VlqpQ'></ul><sub id='VlqpQ'></sub></form><legend id='VlqpQ'></legend><bdo id='VlqpQ'><pre id='VlqpQ'><center id='VlqpQ'></center></pre></bdo></b><th id='VlqpQ'></th></span></q></dt></tr></i><div id='VlqpQ'><tfoot id='VlqpQ'></tfoot><dl id='VlqpQ'><fieldset id='VlqpQ'></fieldset></dl></div>

                      <small id='VlqpQ'></small><noframes id='VlqpQ'>

                      • <bdo id='VlqpQ'></bdo><ul id='VlqpQ'></ul>