gpt4 book ai didi

iOS UIWebView 在 "WebThread"中崩溃

转载 作者:可可西里 更新时间:2023-11-01 03:07:15 26 4
gpt4 key购买 nike

有人能帮我解决这个崩溃吗?在加载某些 UIWebView 实例之间来回切换时,它会间歇性地发生。

崩溃通常略有不同,但始终是具有相似堆栈跟踪的“WebThread”的崩溃。

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

Date/Time:       2011-11-08 14:29:01.165 -0500OS Version:      iPhone OS 5.0 (9A334)Report Version:  104Exception Type:  EXC_BAD_ACCESS (SIGSEGV)Exception Codes: KERN_INVALID_ADDRESS at 0x00000006Crashed Thread:  4Thread 4 name:  WebThreadThread 4 Crashed:0   ???                             0x00000006 0 + 61   WebCore                         0x32a36154 -[QuickLookHandleAsDelegate connection:didReceiveData:lengthReceived:] + 722   QuickLook                       0x30bee2c2 -[QLThreadInvoker connectionDidReceiveDataLengthReceived:] + 903   CoreFoundation                  0x3537a226 -[NSObject performSelector:withObject:] + 384   Foundation                      0x32ce2752 __NSThreadPerformPerform + 3465   CoreFoundation                  0x353efafe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 106   CoreFoundation                  0x353ef2ca __CFRunLoopDoSources0 + 2107   CoreFoundation                  0x353ee070 __CFRunLoopRun + 6488   CoreFoundation                  0x353714d8 CFRunLoopRunSpecific + 2969   CoreFoundation                  0x353713a0 CFRunLoopRunInMode + 10010  WebCore                         0x324c912a _ZL12RunWebThreadPv + 39811  libsystem_c.dylib               0x35ba1c18 _pthread_start + 31612  libsystem_c.dylib               0x35ba1ad4 thread_start + 4
Date/Time:       2011-11-08 15:09:01.410 -0500OS Version:      iPhone OS 5.0 (9A334)Report Version:  104Exception Type:  EXC_BAD_ACCESS (SIGSEGV)Exception Codes: KERN_INVALID_ADDRESS at 0x00000034Crashed Thread:  4Thread 4 name:  WebThreadThread 4 Crashed:0   ???                             0x00000034 0 + 521   CoreFoundation                  0x3537a226 -[NSObject performSelector:withObject:] + 382   Foundation                      0x32ce2752 __NSThreadPerformPerform + 3463   CoreFoundation                  0x353efafe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 104   CoreFoundation                  0x353ef2ca __CFRunLoopDoSources0 + 2105   CoreFoundation                  0x353ee070 __CFRunLoopRun + 6486   CoreFoundation                  0x353714d8 CFRunLoopRunSpecific + 2967   CoreFoundation                  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 ()

关于iOS UIWebView 在 "WebThread"中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8100285/

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