I have got this stack trace:
0 LiveTexOpClient 0x000b3d3a testflight_backtrace + 382
1 LiveTexOpClient 0x000b4988 TFSignalHandler + 264
2 libsystem_c.dylib 0x3c4d0e92 _sigtramp + 42
3 CoreFoundation 0x342edb4f CFBasicHashFindBucket + 1891
4 CoreFoundation 0x342edb4f CFBasicHashFindBucket + 1891
5 CoreFoundation 0x342eea8a CFDictionaryGetValue + 82
6 CoreFoundation 0x343357a6 -[CFXPreferencesPropertyListSource setValue:forKey:] + 38
7 CoreFoundation 0x34335722 _CFXPreferencesSetValue + 134
8 CoreFoundation 0x34335600 CFPreferencesSetAppValue + 40
9 Foundation 0x34c1c906 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 82
10 LiveTexOpClient 0x0006db28 -[LTAuthorizationManager saveLatestSessionTimeStamp] (LTAuthorizationManager.m:390)
11 LiveTexOpClient 0x0002d7aa -[LTAppDelegate applicationWillResignActive:] (LTAppDelegate.m:48)
12 UIKit 0x36209fb4 -[UIApplication _deactivateForReason:notify:] + 400
13 UIKit 0x3623ff2a -[UIApplication _handleApplicationSuspend:eventInfo:] + 314
14 UIKit 0x361b61e6 -[UIApplication handleEvent:withNewEvent:] + 2458
15 UIKit 0x361b56cc -[UIApplication sendEvent:] + 72
16 UIKit 0x361b511a _UIApplicationHandleEvent + 6154
17 GraphicsServices 0x37eb85a2 _PurpleEventCallback + 590
18 GraphicsServices 0x37eb81d2 PurpleEventCallback + 34
19 CoreFoundation 0x34382172 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
20 CoreFoundation 0x34382116 __CFRunLoopDoSource1 + 138
21 CoreFoundation 0x34380f98 __CFRunLoopRun + 1384
22 CoreFoundation 0x342f3ebc CFRunLoopRunSpecific + 356
23 CoreFoundation 0x342f3d48 CFRunLoopRunInMode + 104
24 GraphicsServices 0x37eb72ea GSEventRunModal + 74
25 UIKit 0x36209300 UIApplicationMain + 1120
26 LiveTexOpClient 0x0002e144 main (main.m:14)
27 LiveTexOpClient 0x0002d28f start + 39
code from:
-(void)saveLatestSessionTimeStamp
{
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithDouble:[[NSDate date] timeIntervalSince1970]] forKey:self.savedLogin];
[[NSUserDefaults standardUserDefaults] synchronize];
}
The crash happens only on two devices out of 5.
It was got on two iphone (ios 6.1.3), but didn't get on the another iphone (same ios 6.1.3!).
Can anyone help me please?
Is self.savedLogin nil?
is self.savedLogin a NSString ?
Related
I have an App that works perfectly on Debug (device and simulator) but once I archive it for AdHoc it just crashes.
Even with the Distribution provision files selected y clic play and works fine.
Now if I make an .ipa through AdHoc... it loads and crashes... 1seg... not even open.
I guess maybe something is wrong, but how on earth I can find the bug if there's any? I don't have any log message and it's a big big App.
Any idea?
Thanks.
By the way, this is what I get:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x38af35d0 objc_msgSend + 16
1 CoreFoundation 0x39a0d4e8 CFURLCopyScheme + 144
2 CoreGraphics 0x318e6e28 CGDataProviderCreateWithURL + 44
3 CoreGraphics 0x318ffc5c CGPDFDocumentCreateWithURL + 4
4 READERSoft 0x000e10f0 CGPDFDocumentCreateX (CGPDFDocument.m:42)
5 READERSoft 0x000aeab4 -[ContentViewController viewDidLoad] (ContentViewController.m:56)
6 UIKit 0x332ce544 -[UIViewController loadViewIfRequired] + 360
7 UIKit 0x3330ed2c -[UIWindow addRootViewControllerViewIfPossible] + 60
8 UIKit 0x3330aac8 -[UIWindow _setHidden:forced:] + 360
9 UIKit 0x3334c19c -[UIWindow makeKeyAndVisible] + 56
10 READERSoft 0x000b618a -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:44)
11 UIKit 0x3330fa74 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
12 UIKit 0x3330f5f8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
13 UIKit 0x33307806 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
14 UIKit 0x332afcea -[UIApplication handleEvent:withNewEvent:] + 1006
15 UIKit 0x332af778 -[UIApplication sendEvent:] + 68
16 UIKit 0x332af1ba _UIApplicationHandleEvent + 6194
17 GraphicsServices 0x39b435f4 _PurpleEventCallback + 588
18 GraphicsServices 0x39b43222 PurpleEventCallback + 30
19 CoreFoundation 0x39a743e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
20 CoreFoundation 0x39a74386 __CFRunLoopDoSource1 + 134
21 CoreFoundation 0x39a7320a __CFRunLoopRun + 1378
22 CoreFoundation 0x399e6238 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x399e60c4 CFRunLoopRunInMode + 100
24 UIKit 0x33306440 -[UIApplication _run] + 664
25 UIKit 0x3330328c UIApplicationMain + 1116
26 READERSoft 0x000b5f5a main (main.m:9)
27 READERSoft 0x000ae89c start + 36
I have a random-looking crash related to UIKit and I can't seem to figure out what is wrong.
Does anyone see a familiar pattern here or do you think this might be a random OS-related crash? Is there a way to find out which Buttons or UI-elements were involved here?
Thread 0 Crashed:
0 libobjc.A.dylib 0x35260f78 objc_msgSend + 15
1 UIKit 0x312363d7 -[UIView(Hierarchy) superview] + 50
2 UIKit 0x31239abb -[UIView nextResponder] + 82
3 UIKit 0x31354011 forwardTouchMethod + 36
4 UIKit 0x3124f97d -[UIWindow _sendTouchesForEvent:] + 400
5 UIKit 0x3124f319 -[UIWindow sendEvent:] + 380
6 UIKit 0x31235695 -[UIApplication sendEvent:] + 356
7 UIKit 0x313e762f __42-[UIApplication _cancelTouches:withEvent:]_block_invoke_0 + 54
8 UIKit 0x312a5d0d -[UIApplication _cancelTouches:withEvent:includingGestures:notificationBlock:] + 544
9 UIKit 0x312a5ae9 -[UIApplication _cancelTouches:withEvent:] + 84
10 UIKit 0x31234eb1 _UIApplicationHandleEvent + 5688
11 GraphicsServices 0x33c7722b PurpleEventCallback + 882
12 CoreFoundation 0x37535523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
13 CoreFoundation 0x375354c5 __CFRunLoopDoSource1 + 140
14 CoreFoundation 0x37534313 __CFRunLoopRun + 1370
15 CoreFoundation 0x374b74a5 CFRunLoopRunSpecific + 300
16 CoreFoundation 0x374b736d CFRunLoopRunInMode + 104
17 GraphicsServices 0x33c76439 GSEventRunModal + 136
18 UIKit 0x31263cd5 UIApplicationMain + 1080
I just uploading my app to a device for the first time and it crashed. It doesnt crash on the iOS Simulator, but it does on the actual device,
This is the error i get:
AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000C2C)
8.24-bit little-endian signed integer, deinterleaved
2012-08-20 21:27:50.242 OGLGame[11058:707] ( 0 CoreFoundation
0x30f588a7 __exceptionPreprocess + 186 1 libobjc.A.dylib
0x36029259 objc_exception_throw + 32 2 CoreFoundation
0x30f58789 +[NSException raise:format:] + 0 3 CoreFoundation
0x30f587ab +[NSException raise:format:] + 34 4 CoreFoundation
0x30ec568b -[__NSCFDictionary setObject:forKey:] + 234 5 OGLGame
0x0009bce7 -[SingletonSoundManager loadBackgroundMusicWithKey:fileName:fileExt:] + 130 6 OGLGame
0x00095df5 -[EAGLView initGame] + 816 7 OGLGame
0x00095a05 -[EAGLView initWithCoder:] + 1156 8 UIKit
0x318f2c13 -[UIClassSwapper initWithCoder:] + 218 9 UIKit
0x31961b1b UINibDecoderDecodeObjectForValue + 1778 10 UIKit
0x31961423 -[UINibDecoder decodeObjectForKey:] + 90 11 UIKit
0x318f2839 -[UIRuntimeConnection initWithCoder:] + 152 12 UIKit
0x31961b1b UINibDecoderDecodeObjectForValue + 1778 13 UIKit
0x319616bb UINibDecoderDecodeObjectForValue + 658 14 UIKit
0x31961423 -[UINibDecoder decodeObjectForKey:] + 90 15 UIKit
0x318f1fc5 -[UINib instantiateWithOwner:options:] + 664 16 UIKit
0x318f3861 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 136 17 UIKit
0x31829385 -[UIApplication _loadMainNibFileNamed:bundle:] + 36 18 UIKit
0x316b26eb -[UIApplication _loadMainInterfaceFile] + 222 19 UIKit
0x316ac72f -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 234 20 UIKit
0x3167aac3 -[UIApplication handleEvent:withNewEvent:] + 1010 21 UIKit
0x3167a567 -[UIApplication sendEvent:] + 54 22 UIKit
0x31679f3b _UIApplicationHandleEvent + 5826 23 GraphicsServices
0x312ee22b PurpleEventCallback + 882 24 CoreFoundation
0x30f2c523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38 25 CoreFoundation
0x30f2c4c5 __CFRunLoopDoSource1 + 140 26 CoreFoundation
0x30f2b313 __CFRunLoopRun + 1370 27 CoreFoundation
0x30eae4a5 CFRunLoopRunSpecific + 300 28 CoreFoundation
0x30eae36d CFRunLoopRunInMode + 104 29 UIKit
0x316ab86b -[UIApplication _run] + 550 30 UIKit
0x316a8cd5 UIApplicationMain + 1080 31 OGLGame
0x00095475 main + 168 32 OGLGame
0x000953c8 start + 40 )
Does anyone know where this crash is being caused?
Thank You.
[recorder deleteRecording]; works well 30 times, but around 31 it crashes.
0 libobjc.A.dylib 0x3266fc98 objc_msgSend + 16
1 Foundation 0x328c203c -[NSError dealloc] + 36
2 CoreFoundation 0x30d2dc3c -[NSObject(NSObject) release] + 24
3 Foundation 0x328e687c -[NSFilesystemItemRemoveOperation dealloc] + 36
4 Foundation 0x328bc7b2 -[NSOperation release] + 38
5 CoreFoundation 0x30d2e19a CFRelease + 62
6 CoreFoundation 0x30d30eb4 _CFAutoreleasePoolPop + 140
7 Foundation 0x328abbae NSPopAutoreleasePool + 2
8 Foundation 0x3293a908 __NSThreadPerformPerform + 620
9 CoreFoundation 0x30da0a72 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 6
10 CoreFoundation 0x30da2758 __CFRunLoopDoSources0 + 376
11 CoreFoundation 0x30da34e4 __CFRunLoopRun + 224
12 CoreFoundation 0x30d33ebc CFRunLoopRunSpecific + 224
13 CoreFoundation 0x30d33dc4 CFRunLoopRunInMode + 52
14 GraphicsServices 0x31896418 GSEventRunModal + 108
15 GraphicsServices 0x318964c4 GSEventRun + 56
16 UIKit 0x355b9d62 -[UIApplication _run] + 398
17 UIKit 0x355b7800 UIApplicationMain + 664
18 AppName 0x000020f6 main (main.m:16)
19 AppName 0x00002050 start + 44
I found that this happens when deleteRecording is trying to delete a non existent file. So check if file exists before you call it:
if ([[NSFileManager defaultManager] fileExistsAtPath:self.recorder.url.path]) {
if (![self.recorder deleteRecording])
NSLog(#"Failed to delete %#", self.recorder.url);
}
It must be a bug in AVAudioRecorder.
This is how I load the cell:
zimmerCell = (ZimmerCell*)[tableView dequeueReusableCellWithIdentifier:#"ZimmerCell"];
if (zimmerCell == nil) {
ZimmerCell* loadedCell;
loadedCell = [[[NSBundle mainBundle] loadNibNamed:#"ZimmerCell" owner:self options:nil] objectAtIndex:0];
zimmerCell = [loadedCell retain];
[zimmerCell prepare];
}
return zimmerCell;
It works the first time I open the table.
When I exit the view controller and enter it again, it crashes with the following:
* Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 0;
nan 7.27683e-38]'
* Call stack at first throw: ( 0 CoreFoundation 0x01a44be9 exceptionPreprocess + 185 1 libobjc.A.dylib
0x01b995c2 objc_exception_throw + 47 2 CoreFoundation
0x019fd628 +[NSException raise:format:arguments:] + 136 3
CoreFoundation 0x019fd59a +[NSException
raise:format:] + 58 4 QuartzCore
0x008b63ee _ZL16CALayerSetBoundsP7CALayerRKN2CA4RectEb + 227 5
QuartzCore 0x008b62b6 -[CALayer setBounds:] +
122 6 UIKit 0x0121eac0 -[UIView
_createLayerWithFrame:] + 401 7 UIKit 0x0121a13b UIViewCommonInitWithFrame + 421 8 UIKit
0x0121b063 -[UIView initWithFrame:] + 113 9 UIKit
0x013ae909 -[UITableViewCell initWithCoder:] + 1218 10 PrivatQuadrat
0x00021e87 -[ZimmerCell initWithCoder:] + 62 11 UIKit
0x013e0265 -[UIClassSwapper initWithCoder:] + 237 12 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 13 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 14 UIKit
0x013dff43 -[UIRuntimeConnection initWithCoder:] + 212 15 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 16 UIKit
0x014c62dc UINibDecoderDecodeObjectForValue + 792 17 UIKit
0x014c7693 -[UINibDecoder decodeObjectForKey:] + 398 18 UIKit
0x013df200 -[UINib instantiateWithOwner:options:] + 804 19 UIKit
0x013e1081 -[NSBundle(UINSBundleAdditions)
loadNibNamed:owner:options:] + 168 20 PrivatQuadrat
0x00021401 -[ErweitertViewController tableView:cellForRowAtIndexPath:]
+ 202 21 UIKit 0x0125d7fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634 22 UIKit 0x0125377f -[UITableView(UITableViewInternal)
_createPreparedCellForGlobalRow:] + 75 23 UIKit 0x01268450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:]
+ 1561 24 UIKit 0x01260538 -[UITableView layoutSubviews] + 242 25 QuartzCore 0x008bc451 -[CALayer layoutSublayers] + 181 26 QuartzCore
0x008bc17c CALayerLayoutIfNeeded + 220 27 QuartzCore
0x008b537c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
28 QuartzCore 0x008b50d0
_ZN2CA11Transaction6commitEv + 292 29 QuartzCore 0x008e57d5
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99 30 CoreFoundation 0x01a25fbb
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 27 31 CoreFoundation 0x019bb0e7 __CFRunLoopDoObservers
+ 295 32 CoreFoundation 0x01983bd7 __CFRunLoopRun + 1575 33 CoreFoundation 0x01983240 CFRunLoopRunSpecific + 208 34 CoreFoundation
0x01983161 CFRunLoopRunInMode + 97 35 GraphicsServices
0x02487268 GSEventRunModal + 217 36 GraphicsServices
0x0248732d GSEventRun + 115 37 UIKit
0x011f842e UIApplicationMain + 1160 38 PrivatQuadrat
0x00002184 main + 102 39 PrivatQuadrat
0x00002115 start + 53
Any ideas?