Một số ít trang web làm hỏng ứng dụng của chúng tôi. Dường như nó có liên quan đến JavaScript. Bất kỳ ý tưởng về những gì tôi có thể làm về điều này sẽ được đánh giá cao nhất.Javascript Crashing UIWebview
2012-02-14 14:17:06.356 AppName[18347:17f03] CRASH: -[__NSCFDictionary setObject:forKey:]: attempt to insert nil key
2012-02-14 14:17:06.358 AppName[18347:17f03] Stack Trace: (
0 CoreFoundation 0x02c3806e __exceptionPreprocess + 206
1 libobjc.A.dylib 0x02dc9d0a objc_exception_throw + 44
2 CoreFoundation 0x02be0a78 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x02be09e9 +[NSException raise:format:] + 57
4 CoreFoundation 0x02c372b9 -[__NSCFDictionary setObject:forKey:] + 169
5 WebKit 0x03f67d2d -[WebHistoryPrivate visitedURL:withTitle:increaseVisitCount:] + 285
6 WebKit 0x03f688c3 -[WebHistory(WebInternal) _visitedURL:withTitle:method:wasFailure:increaseVisitCount:] + 67
7 WebKit 0x03f5cf3f _ZN20WebFrameLoaderClient19updateGlobalHistoryEv + 921
8 WebCore 0x043d2c64 _ZN7WebCore17HistoryController12replaceStateEN3WTF10PassRefPtrINS_21SerializedScriptValueEEERKNS1_6StringES7_ + 308
9 WebCore 0x043d27e9 _ZN7WebCore7History16stateObjectAddedEN3WTF10PassRefPtrINS_21SerializedScriptValueEEERKNS1_6StringES7_NS0_15StateObjectTypeERi + 167
10 WebCore 0x0462bc2d _ZN7WebCore9JSHistory12replaceStateEPN3JSC9ExecStateE + 439
11 WebCore 0x0462b191 _ZN7WebCore38jsHistoryPrototypeFunctionReplaceStateEPN3JSC9ExecStateE + 113
12 JavaScriptCore 0x06dc2cfc _ZN3JSC11Interpreter14privateExecuteENS0_13ExecutionFlagEPNS_12RegisterFileEPNS_9ExecStateE + 57978
)
Program ended with exit code: 0
Message was edited by earthquakeCountry on 2/13/12 at 9:23 PM
[self.webView loadRequest: [NSURLRequest requestWithURL: [NSURL URLWithString: @ "about: blank"]]]; Trước khi mỗi trang được tải trong ứng dụng, họ muốn một màn hình trống xuất hiện để hiển thị cho người dùng ứng dụng đã phản hồi. Vì vậy, một trang trống đã được chèn vào. Khi tôi đã xóa nó, nó đã khắc phục sự cố aforeposted. – user1208489