Tag: 崩溃

iPhone应用崩溃在

嗨,我正在得到的错误,可以帮助他解决这个问题。 当我将查询发送到服务器时,应用程序在将查询发送到服务器之前崩溃。 > " (lldb) bt > * thread #1: tid = 0x2503, 0x38a4f5d0 libobjc.A.dylib`objc_msgSend + 16, stop reason = EXC_BAD_ACCESS (code=1, address=0x70706118) > frame #0: 0x38a4f5d0 libobjc.A.dylib`objc_msgSend + 16 > frame #1: 0x323169f0 Foundation`_NSDescriptionWithLocaleFunc + 52 > frame #2: 0x399dc430 CoreFoundation`__CFStringAppendFormatCore + 11160 > frame #3: 0x399538a2 CoreFoundation`_CFStringCreateWithFormatAndArgumentsAux + 74 > frame #4: 0x3231650c […]

防止在uinavigationcontroller安装程序中对popViewControllerAnimated进行错误的访问崩溃

所以,在低内存下,我的根视图被卸载。 这是预期的和占的。 但是,如何处理需要popup的模式/推式视图控制器,因为它们引用了主navigationController? 我有一个自定义完成button在推视图控制器,它调用[self.navigationController popViewControllerAnimated:YES]。 如果根视图已被卸载,则会导致访问错误。 有一个更好的方法吗? 我的设置是AppDelegate有一个NavigationController这个NavigationController有一个视图控制器MainViewController //MainViewController.m – (IBAction)showAnotherController:(id)sender { AnotherViewController * anotherViewController; anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil]; [self.navigationController pushViewController:anotherViewController animated:YES]; [anotherViewController release]; } //…Here I can simulate a memory warning to force unloading of MainViewController's view //in AnotherViewController.m, called from a custom toolbar item – (IBAction)done:(id)sender { [self.navigationController popViewControllerAnimated:YES]; // bad […]

iOS 7应用程序崩溃EXC_CRASH(SIGABRT)objc_exception_throw在iOS 6上正常工作

我们的应用程序在iOS 7中崩溃,它在iOS 6中工作正常。我们不确定是什么导致了这个问题。 我们可以看到抛出了一些exception,但是我们不确定代码在哪里造成的。 这是崩溃报告: Incident Identifier: 1F589930-15BD-49F7-80E6-831A95092FDF CrashReporter Key: aaa79870161ff1e371394b881a26e97f0066f464 Hardware Model: iPhone5,2 Process: myapp [1492] Path: /var/mobile/Applications/A121DF2F-A7B9-4DD9-9FBC-BB06CD7C5EF5/myapp.app/myapp Identifier: co.uk.myapp Version: 1.0 (0.9) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2013-10-01 14:59:17.555 +0530 OS Version: iOS 7.0 (11A465) Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: […]

_GSRegisterPurpleNamedPortInPrivateNamespace – app store崩溃(附代码)

在App Store 3.5个月之后,我收到了我的第一个崩溃报告。 这是今天早上在iTunes Connect中发现的。 在XCode中,我去了Window> Organizer> Crashes> [App + App build that reported the crash]。 下面的第一个截图是崩溃报告GUI: 然后,我点击了“在工程中打开” (这是前一个屏幕截图中的“呼吁行动”button) “在项目中打开”让我进入XCode。 以下是Debug Navigator的样子: 点击“7主”提出这个类: class UIButtonScrollView: UIScrollView { override func touchesShouldCancel(in view: UIView) -> Bool { if (view.isKind(of: UIButton.self)) { return true } return super.touchesShouldCancel(in: view) } } 我猜这是可能导致崩溃的代码。 这个UIScrollView子类的目的是在应用程序中的一个小滚动视图中处理滚动(而用户手指直接滚动button)一长串button。 崩溃报告表示,它发生在运行9.1的iPhone 5s上。 我试图尽可能在模拟器中重现崩溃,而不能。 它对我来说完美无瑕。 为什么/什么导致_GSRegisterPurpleNamedPortInPrivateNamespace崩溃? 我在错误的地方尝试debugging我的代码(UIButtonScrollView)? […]

CGImage到UIImage不起作用

我正在开发和iPad的iPad应用程序,我使用Grabkit为了从Facebook,Twitter,闪烁和相机胶卷的图像。 为了从最后一个获得图像,我需要将CGImage转换为UIImage,但是我遇到了麻烦。 就像我没有得到任何图像,因为当我以后使用UIImage,应用程序崩溃与此日志: *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 653]' 我正在使用下面的代码来转换CGImage: UIImage* image = [UIImage imageWithCGImage:imgRef]; 所以这个代码不会崩溃,但是当我使用创build的图像,它确实。 发生什么事? 代码错了吗?

在iOS中,是什么导致了这个崩溃?

我的iOS应用程序崩溃,但他们只有几条消息,有些是这样的。 Application received signal SIGABRT (null) ( 0 CoreFoundation 0x359c68a7 __exceptionPreprocess + 186 1 libobjc.A.dylib 0x37d6d259 objc_exception_throw + 32 2 CoreFoundation 0x359c6789 +[NSException raise:format:] + 0 3 CoreFoundation 0x359c67ab +[NSException raise:format:] + 34 4 myapp 0x00241bf9 _ZNSt11_Deque_baseIsSaIsEE15_M_create_nodesEPPsS3_ + 1432772 5 libsystem_c.dylib 0x32dd27e3 _sigtramp + 38 6 libsystem_c.dylib 0x32dc820f pthread_kill + 54 7 libsystem_c.dylib 0x32dc129f abort […]

CCSprite:batched sprites应该使用与batchnode相同的纹理吗?

我不断得到一个崩溃,说: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'CCSprite: Batched sprites should use the same texture as the batchnode' 我不太清楚这是什么意思。 我GOOGLE了崩溃,但没有结果。 而且这只有当我从我的游戏中的第二个场景回来后才回到我的第一个场景。 我再次检查我的代码,并确保我的精灵表中的所有图像都作为子节点添加到批处理节点。 我也确保在我的应用程序中不在我的精灵表中的图像作为一个孩子添加到我的图层而不是批处理节点。 无论如何是什么原因造成这次崩溃,我该如何解决? 谢谢! 编辑1 :这似乎是发生在我的应用程序的这一行: [self.spriteLeft setDisplayFrame:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:imageName]]; 我NSLog imageName和它返回:MyImage.png,然后我看我的plist和pvr.ccz,我加载和MyImage.png 肯定在那里。 所以我不知道为什么当一切看起来正确时就崩溃了。 此外,我确保我不使用spriteWithFile在我加载我的精灵表中的图像。

Ad-Hoc分布式应用程序未能及时启动

我有一个在iPad Air上运行的用Swift编写的iOS应用程序,具有专门的分发configuration文件。 在这个版本中,我的应用程序由iOS启动计时器崩溃,说它没有及时启动。 我find了这个解释,说我应该删除应用程序委托的didFinishLaunchingWithOptions的繁重的操作。 奇怪的是,那里几乎没有什么东西。 func application(application: UITimedApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Register default settings let appDefaults = [ "jsonURL": "http://192.168.178.156:8888/people.json", "apiBaseURL": "http://192.168.178.156:8888", "idleTimeout": 3, "numberOfPeople": 2147 ] NSUserDefaults.standardUserDefaults().registerDefaults(appDefaults) // Listen to charge state changes UIDevice.currentDevice().batteryMonitoringEnabled = true NSNotificationCenter.defaultCenter().addObserver(self, selector: "updateDeviceTimer", name: UIDeviceBatteryStateDidChangeNotification, object: nil) updateDeviceTimer() return true } 这里唯一调用的其他函数是: func […]

未知的exception和崩溃

当我尝试快速滚动tableview或从远程重新加载数据时,我的应用程序崩溃。 一切似乎工作正常,当我让远程抓取发生,然后滚动tableview。 我不知道下面的崩溃日志意味着什么。 它有时工作正常,有时崩溃。 Incident Identifier: 710A120C-97E3-45C8-A7B2-E6A7BD98BC1A CrashReporter Key: 8bd54d8428128b9e6b8c04d59b86c40cccf33457 Hardware Model: iPhone5,2 Process: MyApp [5294] Path: /var/mobile/Applications/B6ED5B19-B8D7-4146-90A2-F709AE35292F/MyApp.app/MyApp Identifier: MyApp Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2013-02-26 16:45:27.693 +0200 OS Version: iOS 6.1.2 (10B146) Report Version: 104 Exception Type: EXC_CRASH (SIGSEGV) Exception Codes: 0x0000000000000000, 0x0000000000000000 Crashed Thread: 1 Thread […]

NSURLIsExcludedFromBackupKey在iOS 5.1之前崩溃

像许多iOS开发人员一样,在使用NSURLIsExcludedFromBackupKey之前,我遇到了5.1之前系统崩溃的问题。 在这个线程中很好地描述了如何评估这个键的存在: 在iOS 5.0上使用NSURLIsExcludedFromBackupKey不会崩溃 samvermette的评论之一说,在iOS模拟器中有一个错误。 不过,即使在2个独立的应用程序中,我也遇到了与发布版本相同的问题。 经过一番调查后,我发现应用程序在main()方法被调用之前崩溃了。 这暗示了这是与之相关的 NSString * const NSURLIsExcludedFromBackupKey; 应用程序启动评估。 我不是这个领域的专家,但是我发现,如果在代码中出现任何对const值的引用(即使它在运行时没有被实际访问),这个const在非常应用程序启动时被评估。 这只是导致我们许多人遇到的崩溃。 我想问你一些帮助。 也许你知道如何“微弱地”引用一个常量值,或者是有特定的编译器标志。 (使用Apple LLVM 3.1)。 提前致谢。 在这种情况下请不要直接放置这个const值,即“NSURLIsExcludedFromBackupKey”。 我意识到这个解决方法,对此故事的共鸣是find一个通用的解决scheme。