Hello, I have a cocoa application using the webkit framework (10.4.2, xcode 2.1). When I try to load html programmatically with loadHTMLString:, my app crashes. It occurs only when the html code contains something related to javascript. For example: [[webview mainFrame] loadHTMLString:@"<html><body><script>anything</ script></body></html>" baseURL:NULL]; ... crashes with this in the console: Symbol not found: __ZN3KJS4List11derefValuesEv Referenced from: /System/Library/Frameworks/WebKit.framework/ Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore Expected in: /Volumes/DEV/BUILDS/Development/ JavaScriptCore.framework/Versions/A/JavaScriptCore When using webkit from CVS, I have exactly the same crash. My problem is that I am unable to reproduce it in a simple cocoa-webkit project with only this line of code. Have anyone seen this kind of output after a crash ? Could it be a problem with the nib ? Thanks. Romain.
On Aug 2, 2005, at 1:00 AM, Romain Brestac wrote:
Symbol not found: __ZN3KJS4List11derefValuesEv Referenced from: /System/Library/Frameworks/WebKit.framework/ Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore Expected in: /Volumes/DEV/BUILDS/Development/ JavaScriptCore.framework/Versions/A/JavaScriptCore
When using webkit from CVS, I have exactly the same crash. My problem is that I am unable to reproduce it in a simple cocoa- webkit project with only this line of code.
Have anyone seen this kind of output after a crash ? Could it be a problem with the nib ?
The above error indicates that you're using the WebCore from the system, but a JavaScriptCore you built yourself. The mix of released WebCore with WebKit Open Source Project JavaScriptCore is why you're crashing. My guess is that your JavaScriptCore build succeeded, but your WebCore build failed. If you build WebCore and WebKit successfully, this problem should go away. Go back and try building again and look to see what's failing. -- Darin
participants (2)
-
Darin Adler
-
Romain Brestac