Tag: 崩溃

com.apple.NSURLSession-work EXC_BAD_ACCESS崩溃debugging

我看到下面的崩溃报告,但它不可重现。 我将如何去debugging它? 这是一个AFNetworking的问题? 我正在使用版本2.4.1。 Crashed: com.apple.NSURLSession-work EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000000000000 Thread : Crashed: com.apple.NSURLSession-work 0 CoreFoundation 0x0000000184aad978 CFDictionaryGetValue + 56 1 Foundation 0x0000000185aa9300 _NSSetLongLongValueAndNotify + 72 2 Foundation 0x0000000185aa9300 _NSSetLongLongValueAndNotify + 72 3 CFNetwork 0x0000000184543468 -[__NSCFLocalSessionTask _task_onqueue_didFinish] + 472 4 CFNetwork 0x0000000184544b38 -[__NSCFLocalSessionTask connection:didFinishLoadingWithError:] + 40 5 CFNetwork 0x000000018458d030 __46-[__NSCFURLSessionConnection _task_sendFinish]_block_invoke + 136 6 libdispatch.dylib […]

崩溃报告..

我已经在我的应用程序中通过testflight看到了下面的崩溃。 我不知道这个崩溃发生在哪里以及如何。 我有我的应用程序中的多个UITableViewControllers(约10),因此不能确定哪一段代码粘贴在这里。 任何帮助将非常感激。 我已经研究了很多SO问题,但是我还没有能够确定一个原因。 0 Anyvan 0x0019052e testflight_backtrace + 382 1 Anyvan 0x0019117c TFSignalHandler + 264 2 libsystem_c.dylib 0x3b1b9e92 _sigtramp + 42 3 UIKit 0x34e6654c -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 412 4 UIKit 0x34e4b312 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1310 5 UIKit 0x34e627ce -[UITableView layoutSubviews] + 206 6 UIKit 0x34e1e802 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 258 7 QuartzCore 0x34bc8d8a -[CALayer […]

ios应用程序在启动时崩溃

我开始使用crashlytics为我的iPhone应用程序,似乎它在启动期间(或者我猜测是启动)的一些用户崩溃。 这是堆栈跟踪: Fatal Exception: NSInvalidArgumentException -[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x19687eba0 Thread : Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x00000001854aa59c __exceptionPreprocess + 132 1 libobjc.A.dylib 0x0000000195bfc0e4 objc_exception_throw + 60 2 CoreFoundation 0x00000001854b1664 __methodDescriptionForSelector 3 CoreFoundation 0x00000001854ae418 ___forwarding___ + 928 4 CoreFoundation 0x00000001853b2b6c _CF_forwarding_prep_0 + 92 5 UIKit 0x0000000189fc38a0 -[UILabel _contentInsetsFromFonts] + 104 6 UIKit […]

苹果拒绝我的应用程序,由于崩溃,无法重现

我刚上传了一个应用程序到appstore,它是为ios7开发的。 他们拒绝了应用程序,因为我无法重现崩溃…他们给我发了这个崩溃报告: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000008 Triggered by Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libobjc.A.dylib 0x000000018e0501c8 objc_msgSend + 8 1 UIKit 0x000000018493e940 __97-[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:]_block_invoke718 + 52 2 UIKit 0x00000001846b6504 -[UIViewController _executeAfterAppearanceBlock] + 60 3 UIKit 0x00000001846b646c _applyBlockToCFArrayCopiedToStack + 352 4 UIKit 0x00000001846224c8 _afterCACommitHandler + […]

重新排列部分之间的项目时,UICollectionView崩溃

我在UICollectionView部分之间有animation变化的麻烦,我的程序不断崩溃,有什么问题呢? 我有一个收集视图,它有四个部分: 0:A 1:B 2:C 3:D 我想把它变成只有三个部分具有相同的项目: 0:A 1:B,C 2:D 而且我想要让这个转变成为animation: // Initial state NSArray *source = @[ @[@"A"], @[@"B"], @[@"C"], @[@"D"] ]; // Some data source methods – (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section { return [source[section] count]; } – (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView { return [source count]; } // Transformation: that works but I have to keep an […]

用UISwitch显示和隐藏UITableViewCell过快崩溃

我有一个UITableView向用户展示一些设置。 除非UISwitch处于“On”位置,否则某些单元将被隐藏。 我有以下代码: – (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return switchPush.on ? 6 : 1; } // Hooked to the 'Value Changed' action of the switchPush – (IBAction)togglePush:(id)sender { NSMutableArray *indexPaths = [NSMutableArray arrayWithCapacity:0]; for(int i = 1; i <= 5; i++) { [indexPaths addObject:[NSIndexPath indexPathForRow:i inSection:0]]; } [tableView beginUpdates]; if(switchPush.on) { [tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationAutomatic]; } […]

为什么NSInteger而不是NSUInteger在“numberOfSectionInTableView:”?

UITableView数据源方法numberOfSectionsInTableView:具有NSInteger的返回types。 但是,UITableView不能有负数的行; 它有0或更多的行,那么为什么NSInteger的返回types? 这不允许与返回的负整数有关的崩溃?

iOS7崩溃 – [__NSPlaceholderDictionary initWithObjects

通过我的iOS6应用程序,并试图修复iOS7的一切。 在整个我的应用程序,我得到的错误: -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0] 这里是这个代码的堆栈跟踪: NSString *shareString = [NSString stringWithFormat:@"I … %@", self.booking.venue.name]; NSArray *activityItems = [NSArray arrayWithObjects:shareString, nil]; UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil]; [self presentViewController:activityViewController animated:YES completion:nil]; *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from […]

崩溃日志没有崩溃?

嘿,这可能是一个愚蠢的问题,但我无法find答案的任何地方,道歉,如果答案很容易find,如果我的研究技能是裤子。 无论如何,有可能生成一个崩溃报告,当一个应用程序不会崩溃? 所以说,如果用户遇到一个错误,可以有一个选项,让他们生成一个崩溃报告,然后可以发送给我? 我怎么会这样做呢? 谢谢你的帮助 :)

如何在使用Objective C发生崩溃时获取行号,方法名称和类名称

我正在开发一个应用程序,我必须跟踪崩溃。 有一个限制,我不能使用Twitter的Fabric架构等第三方来处理崩溃logging。 目前我只能得到崩溃的原因。 我无法得到确切的崩溃点。 我在做什么: 在我的应用程序委托的didFinishLaunchingWithOptions方法我做了我自己的exception处理程序: NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler); uncaughtExceptionHandler —- void uncaughtExceptionHandler(NSException *exception) { NSLog(@"CRASH: %@", exception); NSLog(@"callStackSymbols: %@", [exception callStackSymbols]); NSLog(@"callStackReturnAddresses: %@", [exception callStackReturnAddresses]); NSLog(@"reason: %@", [exception reason]); NSLog(@"name: %@", [exception name]); NSLog(@"%s %d %s %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, __FUNCTION__); // Internal error reporting } 我用viewDidLoad方法崩溃了我的应用程序: NSArray *myary; myary = [NSArray arrayWithObjects:@"sad", nil]; NSString *str […]