Mailing Lists: Apple Mailing Lists

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

10.4 RSS loading and Crashing error



1.) I've been testing out my app on 10.4 and noticed that when my webview tries to load a page that is an RSS feed (for example, feed:// scripts.ign.com/rss/ign.VE3D.2.0.xml), it actually loads up Safari RSS. How do I prevent my webview from loading anything BUT HTTP content? Even sending back a page-failed would be fine - I just want to make sure that it doesn't try to load anything other than http://. Should I just do a basic text filter when loading the url? Or is there a better way to do this?

2.) I'm encountering a reproducible crash in WebKit. If the first page that I try to load fails, it will crash on the second page load attempt. If the first page I load in the view succeeds, then it doesn't matter how many page loads fail, it always works. I'm loading a whole series of URLs one after the other, and if I quit and re- launch my app, it attempts to load the most recent unloaded page (which is often a failed page from the previous attempt)...so this actually happens quite a bit to me. My guess is that there's something that's not getting initialized and then released, but I have no insight as to what it could be. This happens on 10.3 as well, and doesn't seem to matter what page its trying to load. Here's the stack trace from one of the crashes:


**********

Host Name:      Josh-OSX
Date/Time:      2005-04-27 16:13:36.131 -0500
OS Version:     10.4 (Build 8A428)
Report Version: 3

Command: MyApp
Parent:  Xcode [1902]

Version: ??? (1.0)

PID:    2615
Thread: 0

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

Thread 0 Crashed:
0 com.apple.WebCore 0x95bc2794 KWQServeRequest (khtml::Loader*, khtml::DocLoader*, KIO::TransferJob*) + 48
1 com.apple.WebCore 0x95bc21cc khtml::Loader::servePendingRequests() + 1348
2 com.apple.WebCore 0x95bc182c khtml::CachedCSSStyleSheet::CachedCSSStyleSheet[unified] (khtml::DocLoader*, DOM::DOMString const&, KIO::CacheControl, long, QString const&) + 160
3 com.apple.WebCore 0x95bc15b8 khtml::Cache::requestStyleSheet(khtml::DocLoader*, DOM::DOMString const&, bool, long, QString const&) + 616
4 com.apple.WebCore 0x95cae88c KHTMLPart::setUserStyleSheet(KURL const&) + 268
5 com.apple.WebCore 0x95b7869c KHTMLPart::begin(KURL const&, int, int) + 1504
6 com.apple.WebCore 0x95b77a78 KHTMLPart::receivedFirstData() + 116
7 com.apple.WebCore 0x95b779d0 KWQKHTMLPart::setEncoding(QString const&, bool) + 56
8 com.apple.WebCore 0x95b77964 -[WebCoreBridge setEncoding:userChosen:] + 60
9 com.apple.WebKit 0x95969b7c -[WebBridge receivedData:textEncodingName:] + 96
10 com.apple.WebKit 0x9596585c -[WebDataSource (WebPrivate) _receivedData:] + 104
11 com.apple.WebKit 0x9596571c - [WebMainResourceClient addData:] + 84
12 com.apple.WebKit 0x95965648 - [WebBaseResourceHandleDelegate didReceiveData:lengthReceived:] + 68
13 com.apple.WebKit 0x95965510 - [WebMainResourceClient connection:didReceiveData:lengthReceived:] + 144
14 com.apple.Foundation 0x928ae8a0 -[NSURLConnection (NSURLConnectionInternal) _sendDidReceiveDataCallback] + 564
15 com.apple.Foundation 0x928acd14 -[NSURLConnection (NSURLConnectionInternal) _sendCallbacks] + 440
16 com.apple.Foundation 0x928acae0 _sendCallbacks + 156
17 com.apple.CoreFoundation 0x9074af0c __CFRunLoopDoSources0 + 384
18 com.apple.CoreFoundation 0x9074a43c __CFRunLoopRun + 452
19 com.apple.CoreFoundation 0x90749ebc CFRunLoopRunSpecific + 268
20 com.apple.HIToolbox 0x93121fc0 RunCurrentEventLoopInMode + 264
21 com.apple.HIToolbox 0x93121654 ReceiveNextEventCommon + 380
22 com.apple.HIToolbox 0x931214c0 BlockUntilNextEventMatchingListInMode + 96
23 com.apple.AppKit 0x9361c384 _DPSNextEvent + 384
24 com.apple.AppKit 0x9361c048 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
25 com.apple.AppKit 0x936185ac -[NSApplication run] + 472
26 com.apple.AppKit 0x93708e04 NSApplicationMain + 452
27 main-26D6EFA4.ob 0x00012fc4 main + 56 (main.m:13)
28 com.smileonmymac.browseback 0x00001ee0 start + 412
29 com.smileonmymac.browseback 0x00001d80 start + 60


Thread 1:
0 libSystem.B.dylib 0x9000a758 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000a69c mach_msg + 60
2 com.unsanity.ape 0xc00024ec __ape_internal + 3236 (icplusplus.c:27)
3 com.unsanity.ape 0xc0001340 __ape_agent + 64 (icplusplus.c:27)
4 libSystem.B.dylib 0x9002c3b4 _pthread_body + 96


Thread 2:
0 libSystem.B.dylib 0x9000a758 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000a69c mach_msg + 60
2 com.apple.CoreFoundation 0x9074a5b8 __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x90749ebc CFRunLoopRunSpecific + 268
4 com.apple.Foundation 0x928a3760 +[NSURLConnection (NSURLConnectionInternal) _resourceLoadLoop:] + 264
5 com.apple.Foundation 0x9287c2b4 forkThreadForFunction + 108
6 libSystem.B.dylib 0x9002c3b4 _pthread_body + 96


Thread 3:
0   libSystem.B.dylib               0x9001efcc select + 12
1   com.apple.CoreFoundation        0x9075ce4c __CFSocketManager + 472
2   libSystem.B.dylib               0x9002c3b4 _pthread_body + 96

Thread 4:
0 libSystem.B.dylib 0x9000a758 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000a69c mach_msg + 60
2 com.apple.CoreFoundation 0x9074a5b8 __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x90749ebc CFRunLoopRunSpecific + 268
4 com.apple.Foundation 0x928a48a0 +[NSURLCache _diskCacheSyncLoop:] + 152
5 com.apple.Foundation 0x9287c2b4 forkThreadForFunction + 108
6 libSystem.B.dylib 0x9002c3b4 _pthread_body + 96


Thread 5:
0 libSystem.B.dylib 0x9004ca18 syscall_thread_switch + 8
1 com.apple.Foundation 0x928946b0 +[NSThread sleepUntilDate:] + 152
2 com.apple.AppKit 0x936b9048 -[NSUIHeartBeat _heartBeatThread:] + 1100
3 com.apple.Foundation 0x9287c2b4 forkThreadForFunction + 108
4 libSystem.B.dylib 0x9002c3b4 _pthread_body + 96


Thread 0 crashed with PPC Thread State:
  srr0: 0x95bc2794 srr1: 0x0200f030                vrsave: 0x00000000
    cr: 0x44024244  xer: 0x00000007   lr: 0x95bc277c  ctr: 0x900040dc
    r0: 0x95bc21cc   r1: 0xbfffd510   r2: 0x44024244   r3: 0xbfffd580
    r4: 0x003319f0   r5: 0x003ec5d0   r6: 0x00403d50   r7: 0x00000003
    r8: 0x00000002   r9: 0x003ec660  r10: 0x00401d4c  r11: 0x44024244
   r12: 0x90003a9c  r13: 0x00000000  r14: 0x00000001  r15: 0x00000001
   r16: 0x00000000  r17: 0x00000000  r18: 0x00006727  r19: 0xbfffdf00
   r20: 0x00000000  r21: 0xa5b71368  r22: 0xbfffda80  r23: 0xbfffdae0
   r24: 0x003966b0  r25: 0x003e8db0  r26: 0x003ec5d0  r27: 0xbfffdba0
   r28: 0xbfffdb40  r29: 0xbfffd580  r30: 0x00000000  r31: 0x95bc277c

_______________________________________________
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


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.