http://bugzilla.novell.com/show_bug.cgi?id=616131
http://bugzilla.novell.com/show_bug.cgi?id=616131#c0 Summary: SIGSEGV when downloading data from web services into UIWebView Classification: Mono Product: MonoTouch Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Runtime AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: Development Blocker: --- Description of Problem: A SIGSEGV is created the second time data is downloaded from a web service into a UIWebView. This only happens on the device, not on the simulator. Steps to reproduce the problem: 1. Create a project that has a tableview with 3 items in it. 2. Upon clicking a tableview item, show an interface with a UIWebView in it. 3. On the ViewDidLoad of the UIWebView interface, download file data from a web service. And load it into the webview with this code: public override void ViewDidLoad () { base.ViewDidLoad (); TestService.Service1 serv = new TestService.Service1(); NSData d = NSData.FromArray(serv.GetData().data); webView.LoadData(d,"application/pdf", "", NSUrl.FromString("")); } 4. Use the back button on the UIWebView interface and then select another item from the tableview that makes the same call. 5. App Crashes. Actual Results: App consistently crashes on the second (or very rarely third) time opening the UIWebView interface. Expected Results: Consistently displaying the data in the UIWebView, no matter how many times the data is downloaded from the web service and displayed in the UIWebView. How often does this happen? Consistently Additional Information: This error does not occur if I use NSData.FromURL or any other non-webservice call. mtouch 2.0.6.6731 MonoDevelop 2.4 iPhone OS 3.1.3 Native stacktrace: 0 UIWebViewBug 0x004cc018 mono_handle_native_sigsegv + 404 1 UIWebViewBug 0x004a773c mono_sigsegv_signal_handler + 256 2 libSystem.B.dylib 0x33b3b7f3 _sigtramp + 34 3 CoreFoundation 0x323d69ed CFRelease + 104 4 WebCore 0x302d056c _ZN7WebCore12SharedBufferD2Ev + 28 5 WebCore 0x301fac8c _ZN7WebCore14DocumentLoaderD2Ev + 2376 6 WebKit 0x3111bdfc _ZN20WebDocumentLoaderMacD0Ev + 196 7 WebCore 0x301fcf78 _ZN7WebCore11FrameLoader16detachFromParentEv + 100 8 WebKit 0x31121aec -[WebView(WebPrivate) _close] + 236 9 WebKit 0x311219d8 -[WebView close] + 24 10 WebKit 0x31121940 -[WebView dealloc] + 68 11 CoreFoundation 0x323d7641 -[NSObject release] + 34 12 WebCore 0x3018dd78 _ZL33WebCoreObjCDeallocOnWebThreadImplP11objc_objectP13objc_selector + 84 13 WebCore 0x301cf558 _ZL28HandleWebThreadReleaseSourcePv + 148 14 CoreFoundation 0x323f4f49 CFRunLoopRunSpecific + 796 15 CoreFoundation 0x323f4c1f CFRunLoopRunInMode + 50 16 WebCore 0x3018c1dc _ZL12RunWebThreadPv + 420 17 libSystem.B.dylib 0x33ad8788 _pthread_body + 28 ================================================================= Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. ================================================================= -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
