Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-23-2009, 10:15 AM   #1 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 362
Default Crash At HttpConnection.

Hi,
Do anyone know what the following crash report on simulator means. This occurs sometimes, when I am starting httpconnection.

0x94daf6ec in objc_msgSend ()
#1 0x9081857f in NSPopAutoreleasePool ()
#2 0x94d2bcef in sendDidFinishLoadingCallback ()
#3 0x94d28dd6 in _CFURLConnectionSendCallbacks ()
#4 0x94d28573 in muxerSourcePerform ()
#5 0x95b9f615 in CFRunLoopRunSpecific ()
#6 0x95b9fcf8 in CFRunLoopRunInMode ()
#7 0x31699d38 in GSEventRunModal ()
#8 0x31699dfd in GSEventRun ()
#9 0x30a5dadb in -[UIApplication _run] ()
#10 0x30a68ce4 in UIApplicationMain ()

Some of the times I am getting the Following errors


#0 0x91ab54a6 in mach_msg_trap ()
#1 0x91abcc9c in mach_msg ()
#2 0x95b9f0ce in CFRunLoopRunSpecific ()
#3 0x95b9fcf8 in CFRunLoopRunInMode ()
#4 0x31699d38 in GSEventRunModal ()
#5 0x31699dfd in GSEventRun ()
#6 0x30a5dadb in -[UIApplication _run] ()
#7 0x30a68ce4 in UIApplicationMain ()

Some of the times following..


#0 0x94da9695 in _class_isInitialized ()
#1 0x94d9f4ea in _class_lookupMethodAndLoadCache ()
#2 0x94daf736 in objc_msgSend ()
#3 0x94d2b30e in CFNRunLoopMultiplexerUnschedule ()
#4 0x94d2bd29 in sendDidFinishLoadingCallback ()
#5 0x94d28dd6 in _CFURLConnectionSendCallbacks ()
#6 0x94d28573 in muxerSourcePerform ()
#7 0x95b9f615 in CFRunLoopRunSpecific ()
#8 0x95b9fcf8 in CFRunLoopRunInMode ()
#9 0x31699d38 in GSEventRunModal ()
#10 0x31699dfd in GSEventRun ()
#11 0x30a5dadb in -[UIApplication _run] ()
#12 0x30a68ce4 in UIApplicationMain ()


Some of the times following...


#0 0x94da9695 in _class_isInitialized ()
#1 0x94d9f4ea in _class_lookupMethodAndLoadCache ()
#2 0x94daf736 in objc_msgSend ()
#3 0x94d27913 in findProtocolImplForRequest ()
#4 0x94d27889 in _CFURLProtocolBindImplementationForFoundation ()
#5 0x909acb21 in createCFRequest ()
#6 0x9088007e in -[NSURLConnection _initWithRequest:delegate:usesCache:maxContentLeng th:startImmediately:] ()
#7 0x909acd60 in -[NSURLConnection initWithRequest:delegate:startImmediately:] ()
#8 0x00002e70 in -[HttpConnection startConnection:] (self=0x45c650, _cmd=0x13d40, url=0x472b80) at /Applications/SubVersion Repository Folder/LiveVersion1.0/Classes/HttpConnection.m:39
#9 0x00003b07 in -[HomeScreen action_FullStory:] (self=0x466d30, _cmd=0x13b21, sender=0x4a0210) at /Applications/SubVersion Repository Folder/LiveVersion1.0/Classes/HomeScreen.m:262
#10 0x30a5e25e in -[UIApplication sendAction:to:from:forEvent:] ()
#11 0x30abb022 in -[UIControl sendAction:to:forEvent:] ()
#12 0x30abb4ea in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
#13 0x30aba830 in -[UIControl touchesEnded:withEvent:] ()
#14 0x30a8b619 in -[UIScrollView touchesEnded:withEvent:] ()
#15 0x30a75c0b in -[UIWindow sendEvent:] ()
#16 0x30a65e07 in -[UIApplication sendEvent:] ()
#17 0x30a6522a in _UIApplicationHandleEvent ()
#18 0x31699522 in SendEvent ()
#19 0x3169b88c in PurpleEventTimerCallBack ()
#20 0x95b9f615 in CFRunLoopRunSpecific ()
#21 0x95b9fcf8 in CFRunLoopRunInMode ()
#22 0x31699d38 in GSEventRunModal ()
#23 0x31699dfd in GSEventRun ()
#24 0x30a5dadb in -[UIApplication _run] ()
#25 0x30a68ce4 in UIApplicationMain ()

I am not getting any clue where I am going wrong, as these are the functions not called by me.
The code is working fine for running some time, for other times it give some of the crashes(backtraced) as above.
Please help if anyone had faced these..
What does these represents, Where I am going wrong.

Last edited by mpramodjain; 01-23-2009 at 10:20 AM.
mpramodjain is offline   Reply With Quote
Old 01-23-2009, 11:45 AM   #2 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 429
Default

Are you checking the connection before you attempt your data transfer?

something like
Code:
BOOL isDataSourceAvailable()
{
	SCNetworkReachabilityRef reachabilityRef = SCNetworkReachabilityCreateWithName(kCFAllocatorDefault, "www.yourserver.com");
	SCNetworkReachabilityFlags reachabilityFlags;
	BOOL gotFlags = SCNetworkReachabilityGetFlags(reachabilityRef, &reachabilityFlags);
	CFRelease(reachabilityRef);
    if (!gotFlags) return NO;
	BOOL isReachable = reachabilityFlags & kSCNetworkReachabilityFlagsReachable;
	BOOL noConnectionRequired = !(reachabilityFlags & kSCNetworkReachabilityFlagsConnectionRequired);
	if ((reachabilityFlags & kSCNetworkReachabilityFlagsIsWWAN)) noConnectionRequired = YES;
	return (isReachable && noConnectionRequired) ? YES : NO;
}
lbendlin is offline   Reply With Quote
Reply

Bookmarks

Tags
crash, http

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 247
18 members and 229 guests
ADY, Alsahir, beleg_1998, Dani77, diyora, iDifferent, iph_s, JamesCahall, JasonR, mer10, Monstertaco, prchn4christ, Robiwan, Rudy, smithdale87, Speed, spiderguy84, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,755
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:16 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0