Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash on loading embedded multimedia



Please write up the crash as bug, regardless of what you conclude about your application.

Thanks,

Dave

On Oct 10, 2005, at 12:45 PM, Ilan Volow wrote:


I'm not too sure whether this message is more appropriate for bugreporter or the list, so I thought I'd ask here first.


In my application, I currently implement the webView:decidePolicyForMIMEType:request:frame:decisionListener: method. For non-multimedia types (e.g. text/html, etc) I'm calling [listener use] and letting the load go through.

For multimedia types types (quicktime, wmv, etc), I'm calling [listener ignore], creating an HTML string that puts the URL to the multimedia file in an <embed> along with plugin-specific attributes, and loading that info a WebFrame by passing it into loadHTMLString.

When I load the HTML with an embedded reference to the multimedia file the first time, everything goes okay, When I load the same file (or different file again), my application crashes with the following stack trace (see the end of the message). But if I load the HTML with the multimedia, then go back to a previous page in the forward/backward list, and then go forward to the same thing I was just looking at, everything works fine.

Given that I seem to be getting these crashes deep in DOM land, is this most likely a WebKit bug, or would it appear that I'm doing something wrong?

--Ilan

Stack trace below:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000058

Thread 0 Crashed:
khtml::RenderFlow::detach() + 32
DOM::NodeImpl::detach() + 48
DOM::NodeImpl::~NodeImpl [unified]() + 64
DOM::NodeBaseImpl::~NodeBaseImpl [unified]() + 308
DOM::ElementImpl::~ElementImpl [unified]() + 220
DOM::HTMLElementImpl::~HTMLElementImpl [unified]() + 84
DOM::HTMLHtmlElementImpl::~HTMLHtmlElementImpl [unified]() + 52
DOM::NodeBaseImpl::~NodeBaseImpl [unified]() + 256
DOM::DocumentImpl::~DocumentImpl [unified]() + 3648
DOM::HTMLDocumentImpl::~HTMLDocumentImpl [unified]() + 720
[KWQPageState invalidate] + 164
[WebCoreBridge didNotOpenURL:pageCache:] + 232
[WebFrame(WebPrivate) _receivedMainResourceError:] + 152
[WebDataSource(WebPrivate) _receivedMainResourceError:complete:] + 104
[WebMainResourceClient cancelWithError:] + 80
[WebDataSource(WebPrivate) _stopLoadingInternal] + 100
[WebDataSource(WebPrivate) _recursiveStopLoading] + 100
[WebFrame stopLoading] + 92
[WebFrame(WebPrivate) _continueLoadRequestAfterNavigationPolicy:formState:] + 96
objc_msgSendv + 180
[NSInvocation invoke] + 944
[NSInvocation invokeWithTarget:] + 64
[NSObject(NSForwardInvocation) forward::] + 408
objc_msgForward + 176
[WebFrame(WebPrivate) _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSele ctor:] + 568
[WebFrame(WebPrivate) _loadRequest:subresources:subframeArchives:] + 336
[NCSKioskDocument webView:decidePolicyForMIMEType:request:frame:decisionListener:] + 636 (crt.c:355)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/harrison% 40apple.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Crash on loading embedded multimedia (From: Ilan Volow <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.