Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4239294
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:00:59+00:00 2026-05-21T03:00:59+00:00

I am having random EXC_CRASH crashes and I think that I have narrowed it

  • 0

I am having random EXC_CRASH crashes and I think that I have narrowed it down to NSURLConnection. One thing to note, is that I am calling the following in a background selector, could this be an issue?

I am receiving NSData from the following NSURLConnection method:

NSString *urlStr = [NSString stringWithFormat:@"%@",url];
    NSURL *serviceUrl = [NSURL URLWithString:urlStr];
    NSMutableURLRequest *serviceRequest = [NSMutableURLRequest requestWithURL:serviceUrl];
    [serviceRequest setHTTPMethod:@"GET"];
    [serviceRequest setCachePolicy:NSURLRequestUseProtocolCachePolicy];
    [serviceRequest setTimeoutInterval:30.0];

    NSURLResponse *serviceResponse = nil;
    NSError *serviceError = nil;

    // Get the downloaded data
    NSData *returnedData = [NSURLConnection sendSynchronousRequest:serviceRequest returningResponse:&serviceResponse error:&serviceError];

    // Do stuff with returnedData;

Crash log:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x00011a1c __pthread_kill + 8
1   libsystem_c.dylib               0x000333b4 pthread_kill + 52
2   libsystem_c.dylib               0x0002bbf8 abort + 72
3   libstdc++.6.dylib               0x00044a64 __gnu_cxx::__verbose_terminate_handler() + 376
4   libobjc.A.dylib                 0x0000606c _objc_terminate + 104
5   libstdc++.6.dylib               0x00042e36 __cxxabiv1::__terminate(void (*)()) + 46
6   libstdc++.6.dylib               0x00042e8a std::terminate() + 10
7   libstdc++.6.dylib               0x00042f5a __cxa_throw + 78
8   libobjc.A.dylib                 0x00004c84 objc_exception_throw + 64
9   Foundation                      0x0008f924 __NSThreadPerformPerform + 648
10  CoreFoundation                  0x00075a72 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 6
11  CoreFoundation                  0x00077758 __CFRunLoopDoSources0 + 376
12  CoreFoundation                  0x000784e4 __CFRunLoopRun + 224
13  CoreFoundation                  0x00008ebc CFRunLoopRunSpecific + 224
14  CoreFoundation                  0x00008dc4 CFRunLoopRunInMode + 52
15  GraphicsServices                0x00004418 GSEventRunModal + 108
16  GraphicsServices                0x000044c4 GSEventRun + 56
17  UIKit                           0x0002ed62 -[UIApplication _run] + 398
18  UIKit                           0x0002c800 UIApplicationMain + 664
19  PUC                             0x0009e7cc 0x1000 + 645068
20  PUC                             0x0009e780 0x1000 + 644992

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0   libsystem_kernel.dylib          0x00012fbc kevent + 24
1   libdispatch.dylib               0x00006094 _dispatch_mgr_invoke + 672
2   libdispatch.dylib               0x0000704a _dispatch_queue_invoke + 86
3   libdispatch.dylib               0x0000660a _dispatch_worker_thread2 + 190
4   libsystem_c.dylib               0x0003458a _pthread_wqthread + 258
5   libsystem_c.dylib               0x00034bbc start_wqthread + 0

Thread 2 name:  WebThread
Thread 2:
0   libsystem_kernel.dylib          0x0000fc00 mach_msg_trap + 20
1   libsystem_kernel.dylib          0x0000f758 mach_msg + 44
2   CoreFoundation                  0x000762b8 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x00078562 __CFRunLoopRun + 350
4   CoreFoundation                  0x00008ebc CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x00008dc4 CFRunLoopRunInMode + 52
6   WebCore                         0x0000637a RunWebThread(void*) + 378
7   libsystem_c.dylib               0x0003330a _pthread_start + 242
8   libsystem_c.dylib               0x00034bb4 thread_start + 0

Thread 3:
0   libsystem_kernel.dylib          0x0000fc00 mach_msg_trap + 20
1   libsystem_kernel.dylib          0x0000f758 mach_msg + 44
2   CoreFoundation                  0x000762b8 __CFRunLoopServiceMachPort + 88
3   CoreFoundation                  0x00078562 __CFRunLoopRun + 350
4   CoreFoundation                  0x00008ebc CFRunLoopRunSpecific + 224
5   CoreFoundation                  0x00008dc4 CFRunLoopRunInMode + 52
6   Foundation                      0x0002a7f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7   Foundation                      0x0001d382 -[NSThread main] + 38
8   Foundation                      0x0008f5c6 __NSThread__main__ + 966
9   libsystem_c.dylib               0x0003330a _pthread_start + 242
10  libsystem_c.dylib               0x00034bb4 thread_start + 0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:01:00+00:00Added an answer on May 21, 2026 at 3:01 am

    Just use ASIHttpRequest like everyone else. Easy.

    The only alternative, is rewriting (for absolutely no reason) the 5,000 lines of code in ASIHttpRequest.

    It is the only solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function that generates normal random number matrix having normal distribution using
I have a collection of items in random each having the following data structures:
I am having a classes which have function to make random text and captcha
I'm having some random crashes at this part of my code: -(void) goBack {
Hello i am having some problems generating random numbers with C# Now i have
Having some issues, basically I have a random image gallery. This is the code
If i have an array with hundreds of random ids (having values too) like
I'm having trouble generating random numbers that do not follow a discrete uniform distribution.
Having a thread that from time to time (thread with one function in infinite
I have requirement like i will dynamically get a set of divs having random

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.