2014-02-24 43 views
1

我得到崩溃在-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]没有任何跟踪指向我们的应用程序,有没有人可以告诉我什么问题。 在ios7系统上有大约500次崩溃,99%。iphone应用程序崩溃在 - [UITableView _selectRowAtIndexPath:动画:scrollPosition:notifyDelegate:]

Thread : Crashed: com.apple.main-thread 
0 libobjc.A.dylib    0x397e1b26 objc_msgSend + 5 
1 UIKit       0x31c358bb -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1078 
2 UIKit       0x31ce8f7b -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 214 
3 UIKit       0x31b98fb9 _applyBlockToCFArrayCopiedToStack + 316 
4 UIKit       0x31b111f3 _afterCACommitHandler + 430 
5 CoreFoundation     0x2f3711cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20 
6 CoreFoundation     0x2f36eb71 __CFRunLoopDoObservers + 284 
7 CoreFoundation     0x2f36eeb3 __CFRunLoopRun + 730 
8 CoreFoundation     0x2f2d9c27 CFRunLoopRunSpecific + 522 
9 CoreFoundation     0x2f2d9a0b CFRunLoopRunInMode + 106 
10 GraphicsServices    0x34000283 GSEventRunModal + 138 
11 UIKit       0x31b7d049 UIApplicationMain + 1136 
12 MyApp       0x0004e813 main (main.m:16) 
+0

贵表视图的委托被更改/删除?表视图委托是'unsafe_unretained',所以如果ARC以某种方式删除它,你可能会得到这样的崩溃日志。 –

+0

谢谢@Jason Coco。 你的意思是说,如果我们使用ARC,会发生这样的崩溃,因为ARC会以某种方式移除导致野指针的委托? 我们的项目是MRC只有几个文件ARC,我会检查ARC文件,但我不知道如何重现问题,你可以告诉我一个例子,如果可能的话? – kenshin

+0

@kenshin:我也面临类似这样的崩溃。你解决了吗? –

回答

1

@Umesh库马尔:YES

最后,事实证明,它的导航堆栈混乱。 下面是详细:

  1. 我们都知道两个或更多按钮的动作可以在默认情况下,同时进行(exclusiveTouch=NO
  2. 有时候,当你一个按钮控制器被录音,这将导致nav推到下一个控制器,但是人们可能会录制导航栏左侧的后退按钮,该按钮只会弹出控制器。这会导致导航堆栈混淆。你会看到控制器被推入或回复很奇怪。
  3. 发生这种情况时,总是会出现很多奇怪的崩溃,包括我上面提到的崩溃。
  4. 请注意,根据我的经验,这仅发生在IOS 7上,而这些崩溃也仅发生在IOS 7上。
  5. 所以,我们需要设置button.exclusiveTouch = YES。但事实上,我真的不知道为什么发生这种情况只在IOS 7