exc-bad-access

How can I set NSZombiesEnabled in XCode4?

£可爱£侵袭症+ 提交于 2019-12-10 16:45:34
问题 How can I enable NSZombiesEnabled in XCode4? I used to use this argument to debug EXC_BAD_ACCESS in XCode3. Not sure where to do it in XCode4. 回答1: Go to Executables of your application (Shown left side of your window) Expand it and double click on your application. Select Argument tab and insert NSZombiesEnabled and set its value to TRUE. (In second section) Here is the example too...Set NSZombiesEnabled 来源: https://stackoverflow.com/questions/6991328/how-can-i-set-nszombiesenabled-in-xcode4

EXC_BAD_ACCESS using Generics in Swift

余生颓废 提交于 2019-12-10 15:05:35
问题 Related question: Generic completion handler in Swift In a Swift app I'm writing, I'm downloading JSON and I want to convert it into model objects. Right now, I'm doing that like this: func convertJSONData<T: Entity>(jsonData: NSData?, jsonKey: JSONKey, _: T.Type) -> [T]? { var entities = [T]() if let data = jsonData { // Left out error checking for brevity var json = JSON(data: data, options: nil, error: nil) var entitiesJSON = json[jsonKey.rawValue] for (index: String, subJson: JSON) in

iphone app crash bad access exception DataDetectorsCore processToken

时光总嘲笑我的痴心妄想 提交于 2019-12-10 14:14:36
问题 My iphone app is crashing on ios 7.0 iphone 5s on client device i can't figure out what is wrong with it, I am using crashlytics for crash reporting. Crashlytics reporting crash due to bad access on thread #9 DataDetectorsCore processToken Crashed: NSOperationQueue 0x17023e120 EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000620a51e24 0 DataDetectorsCore processToken + 400 1 DataDetectorsCore _DDScannerHandleState + 344 2 DataDetectorsCore _DDScannerHandleState + 344 3 DataDetectorsCore

Why is objc_msgSend causing an EXC_BAD_ACCESS?

瘦欲@ 提交于 2019-12-10 13:28:35
问题 I'm making a class, that given an object target, a selector to watch for, and a displayTitle will output a string in this format: @"displayTitle: object.selector" . It then registers itself through KVO so that anytime the value of object.selector changes, it can notify a view controller to update the view. I am using this as an abstract and reusable way to show a description of various properties of an object to a user. When I try to get the value of object.selector , I can't do [object

Home button press causes EXC_BAD_ACCESS code=1 in SpriteKit SKView

爱⌒轻易说出口 提交于 2019-12-10 13:28:30
问题 SpriteKit is supposed to clean up and pause all timers when you press the home button. However, we have found that if you single tap the home button while displaying an active SKView, the app crashes. This occurs even if that view is already paused by the user. Strangely, if you double tap the home button and move to the multitasking view, everything works fine. Follow Up Note: The simulator works perfectly in both situations, no crash Is anyone else seeing this issue with SpriteKit? Have you

How to work around/handle delegation EXC_BAD_ACCESS errors? Obj C

二次信任 提交于 2019-12-10 07:50:06
问题 I'm coding a library (Obj-C for iPhone) that I want to package and sell, so I obviously need to work out any design kinks before listing it for sale. I am also utilizing this library to help me develop another app. My library is heavily built on task delegation. The primary function I have is to launch a (potentially) long-running process, and when it's done, I call a Delegate Protocol method in the class's delegate. An additional complicating factor here is that I will often schedule this

EXC_BAD_ACCESS (SIGSEGV)

。_饼干妹妹 提交于 2019-12-10 02:21:47
问题 I got this crash report from a remote user, but I cannot find any useful tip to resolve this issue, may be it's a retain problem but I cannot understand why because of I'm using ARC. Very small number of users are issuing this problem. I've tried all things both on simulator and on device (iPhone 4s) without any crash occurs... If I was able to crash on my device it will be very simple to find out what the problem is. Somebody knows how to fix this issue? Incident Identifier: F30F9C75-0FE3

Getting info about bad memory address in LLDB

旧城冷巷雨未停 提交于 2019-12-09 04:05:11
问题 I am trying to debug an EXC_BAD_ACCESS in my iPhone app. It is crashing on a method call and on the line of the method is EXC_BAD_ACCESS (code=1, address = xxx) . Before, I would have just used gdb info malloc-history <xxx> to start debugging, but I am having trouble finding a parallel command in LLDB . I saw this thread that said to use Instruments, but when I do I still get the crash but I can't figure out how to tell exactly where the app is crashing from in Instruments. I just need to

How to solve KERN_INVALID_ADDRESS on EXC_BAD_ACCESS (SIGSEGV)

戏子无情 提交于 2019-12-09 00:25:38
问题 On my mac OSX snow leopard and xcode 4.1 and the last SDK, My application crash on my phone but on my phone friend it don't crash. I've got this error, I launch my application, wait RSS feed and after 2/3 seconds it crashed : Thank you for your help.... Date/Time: 2011-10-07 10:15:54.675 +0200 OS Version: iPhone OS 4.3.3 (8J2) Report Version: 104 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x2040b743 Crashed Thread: 6 Thread 0 name: Dispatch queue: com

NSOperationQueue and UITableView release is crashing my app

淺唱寂寞╮ 提交于 2019-12-08 12:02:54
问题 This is by far the weirdest problem I've been stuck with. I have a UIViewController on a UINavigationController and I want to call a method at viewDidAppear using NSInvocationOperation so it can run on a back thread when the view becomes visible. The problem is that if I pop the view controller BEFORE the operation (in this case the testMethod method) completes running, the app crashes. Everything works fine if I pop the view controller AFTER the operation runs it's course. When the app