I'm writing an MKMapKit app that allows the user to drag around an annotation. Everything seems to work for the most part, but it crashes every now and then with the following message:
2009-09-27 12:34:18.903 iParkNow![7181:207] *** -[LBSGAddressComponent _mapkit_cache_heapTime]: unrecognized selector sent to instance 0x195320
2009-09-27 12:34:18.907 iParkNow![7181:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[LBSGAddressComponent _mapkit_cache_heapTime]: unrecognized selector sent to instance 0x195320'
I've had no luck googling for useful information and the iphone forums have nothing useful either. I haven't attached any code since its a bit long. Just wondering if anyone how any idea what would cause this error. Thanks in advance!
Do you try to reverse geocode more than one location at a time? This will cause the crash as of 3.1...So if the user is dragging and you start making calls to reverse geo code and keep them open as so many of them would be processing at one time then thats probably your problem.
Related
Previously I used iOS 5 to draw routes between 2 locations and update the current location continuously while navigating using Google Maps API,it was working fine but now after i upgraded to iOS 6, nothing is working I am not able to view the map also, Given below is the error i receive when i try to load the map,
-[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x16665e40
2013-05-24 12:07:26.522 DriverApp[988:c07] WebKit discarded an uncaught exception in the webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame: delegate: <NSInvalidArgumentException> - [__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x16665e40
Can anyone please help me? I am meeting my deadline and I'm really confused on how to proceed further.
Try to use LocalizedCurrentLocation class for ios 5 From this link localized-current-location-string-for-iphone-apps
Also See more details from this link answer how-to-draw-routes-on-maps-in-ios-6
I searched SO but didnt find any accurate answer for this.
I am implementing Event Kit in my app.I am programatically implementing creation of events,
But I am not specifying any calendar there.Then I am using the EKEventViewController to Edit my events.I am using the Kal library as well to show the calendar.Every time I edit the second or 3rd so on event, or event delete the event, My app crashes, It is saying that event store is changed.I am not able to solve this issue.
Can anyone help me in this.
Here is the Crash Log..
terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM eventStoreChanged:]: unrecognized selector sent to instance 0x1fc7f040
Thanks
I had found the answer myself...If someone faces the same situation..Then here you go..
You need to set the eventstorechanged delegate to nil. And your problem would be solved.
Cheers
Sanjay
i have different apps where I use an alert message, so far never an issue.
Now I get this error. I usually call the alertview from the didbecomeactive method.
Can someone help me with this issue. Just getting started coding, so keep it slow :)
Many thanks
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSSetM length]: unrecognized selector sent to instance 0xa9737c0'
One of the object your calculating length is converting to NSSetM object. Check the object which you are calculating length property of it, which is releases that object.Please use retain of it. or properly release the object after using it.
Im sorta new to bluetooth programming on the iPhone and i wanted to set up a PeerToPeer bluetooth connectivity between two iOS devices. I followed the steps in this tutorial
http://www.devx.com/wireless/Article/43502/0/page/1
and everything happens as it should until i get the accept or decline option when another device has been detected.
As soon as i choose accept, the app crashes on BOTH devices. And the error message shown is this:-
wait_fences: failed to receive reply: 10004003
2012-03-05 15:40:25.809 Bluetooth[204:707] -[ViewController session:didFailWithError:]: unrecognized selector sent to instance 0x367fe0
2012-03-05 15:40:25.811 Bluetooth[204:707] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewController session:didFailWithError:]: unrecognized selector sent to instance 0x367fe0'
Anybody know whats going on?
Thanks in advance!
Just copy pasting this from coments below in the link you posted:
In case people weren't able to build and run successfully, you need to import the GameKit framework (rightclick frameworks folder > existing frameworks > GameKit.framework)
Add, to the BluetoothViewController.h file:
#import "GameKit/GKSession.h"
#import "GameKit/GKPeerPickerController.h"
Found out the problem. Made a rather silly mistake!
Ive written a method as follows
- (void)peerPickerController:(GKPeerPickerController *)picker
didConnectPeer:(NSString *)peerID
toSession:(GKSession *) session {
and in it i set up the app to receive data via bluetooth using
[session setDataReceiveHandler:self withContext:nil];
I thought i would check if the connection is established first and then think about the data transfer. But turns out you can't do that coz the data handler has been set and i had not implemented it in self. When i did write that though, it worked fine!
Hope, this stope people from committing such obvious mistakes!
I'm wanting to have a bunch of people beta test my app on their phones soon. In the event that the app crashes, what's the best way for them to send me a bug report?
A good approach is to use a 3rd party service like Instabug which is a bug & crash reporting service that allows for two things:
Automatically receive crash reports in the event of a crash
Allow users to report bugs through a shake gesture in-app.
All reports arrive to your Instabug dashboard containing various details such as:
Network and console logs
Complete Device details
Visual reproduction steps
3D inspection of the current view hierarchy
Crash stack trace (In case of a crash report)
It only takes a line of code to integrate.
For full disclosure, I work at Instabug. Let me know if I can help.
My own experience: I used Flurry as the analytics tool in my project. I followed Flurry's recommendation and set up an uncaught exception listener inside my code.
void uncaughtExceptionHandler(NSException *exception) {
[FlurryAPI logError:#"Uncaught" message:#"Crash!" exception:exception];
}
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
[FlurryAPI startSession:#"my_API_here"];
....
}
And then I tested my app, and after several hours' delay, I was able to see a few crashes reported to Flurry. Things like this:
NSInvalidArgumentException:
-[NSCFString objectAtIndex:]: unrecognized selector sent to instance
0x2e1b30 Msg: Crash!
It's neither complete nor thorough, but it was a convenient way to have a basic sense of what's going on out there in the wild.
Setup a database for it. Have a submit form that places their report into the database. This way any of the info they submit can be searched and managed easilly.