Re: NSURLConnection sendSynchronousRequest: crashes since, upgrading to 10.5.7
Re: NSURLConnection sendSynchronousRequest: crashes since, upgrading to 10.5.7
- Subject: Re: NSURLConnection sendSynchronousRequest: crashes since, upgrading to 10.5.7
- From: Dennis Hartigan-O'Connor <email@hidden>
- Date: Wed, 27 May 2009 18:20:28 -0700
I have a very similar problem: my simple program that downloads stock
prices has been working fine but intermittently crashes on 10.5.7,
whether I use sendSynchronousRequest or stringWithContentsOfURL. For
me, too, everything is fine for 10-15 minutes and then the program crashes.
Here is the crash log from the crashed thread:
Thread 1 Crashed:
0 libobjc.A.dylib 0x965c3688 objc_msgSend + 24
1 com.apple.CoreFoundation 0x946cc581
_CFStreamSignalEventSynch + 193
2 com.apple.CoreFoundation 0x946ba595 CFRunLoopRunSpecific
+ 3141
3 com.apple.CoreFoundation 0x946bac78 CFRunLoopRunInMode + 88
4 com.apple.Foundation 0x9058c530
+[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 320
5 com.apple.Foundation 0x90528e0d -[NSThread main] + 45
6 com.apple.Foundation 0x905289b4 __NSThread__main__ + 308
Any ideas out there? I can't believe this isn't happening to lots of
people.
Dennis
email@hidden wrote:
Message: 1
Date: Thu, 14 May 2009 12:28:48 -0700
From: Greg Hoover <email@hidden>
Subject: NSURLConnection sendSynchronousRequest: crashes since
upgrading to 10.5.7
To: Cocoa Developers <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
After upgrading to 10.5.7 I've been having intermittent trouble with
deallocated objects in NSURLConnections. All of my URL requests are
made using sendSynchronousRequest. Everything is fine for about 10-15
minutes, then I get this crash. I am making requests on multiple
threads, obviously only one at a time per thread though since they're
synchronous.
*** -[CFArray count]: message sent to deallocated instance 0x27eb6950
*** NSInvocation: warning: object 0x27eb6950 of class
'_NSZombie_CFArray' does not implement methodSignatureForSelector: --
trouble ahead
#0 0x90718640 in ___forwarding___
#1 0x90718972 in __forwarding_prep_0___
#2 0x90627da1 in CFArrayGetCount
#3 0x906ab581 in _CFStreamSignalEventSynch
#4 0x90699595 in CFRunLoopRunSpecific
#5 0x90699c78 in CFRunLoopRunInMode
#6 0x9468f530 in +[NSURLConnection(NSURLConnectionReallyInternal)
_resourceLoadLoop:]
#7 0x9462be0d in -[NSThread main]
#8 0x9462b9b4 in __NSThread__main__
#9 0x94365155 in _pthread_start
#10 0x94365012 in thread_start
Any insight would be great,
Greg
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden