exc-bad-access

Adding, Removing, and Caching SKNodes

岁酱吖の 提交于 2020-01-05 04:42:12
问题 Background info: I'm creating a SpriteKit 2D platform-style game with multiple "floors". When the user enters a "portal" he is transported to another floor (either one up or one down). If the user dies at a different floor from where the most recent spawnpoint is, he is transported back to the floor with the spawnpoint. Problem: After upgrading to iOS8, this scenario causes the game to crash with an EXC_BAD_ACCESS exception/ error. Even after going through multiple tutorials on how to debug

EXC_BAD_ACCESS when using weakSelf in block / blocks

若如初见. 提交于 2020-01-04 05:25:41
问题 I have been struggeling with this issue for a while since i don't think i fully understand the retain cycles. I am totally new to this and i'm trying to learn more about it. I am getting the EXC_BAD_ACCESS message with the following code. I started using the weakSelf because i get 2 warnings about the retain cycle if i just use self.successBLock();. The exact warning is: Capturing 'self' strongly in this block is likely to lead to a retain cycle Maybe i shouldn't even bother using the weak

Connection Crash in mysql C++

社会主义新天地 提交于 2019-12-31 04:30:08
问题 Currently, I have implemented a program to write to a mysql database... I am using Xcode with c++as well. I have imported all the libraries correctly but I'm getting a BAD EXCESS error message on this line : con = driver->connect("tcp://127.0.0.1:3306", "root", "root"); What seems to be the issue? Heres the full program... #include <stdlib.h> #include <iostream> // Include directly the different // headers from cppconn/ and mysql_driver.h + mysql_util.h // (and mysql_connection.h). This will

UIAlertView fails to show and results in “EXC_BAD_ACCESS” error

血红的双手。 提交于 2019-12-31 02:14:19
问题 A method is called when a return button on the keyboard is pressed. After calling another method which returns an integer a message is created based on that integer. The message is then passed into an UIAlterView and displayed to the user. The alert doesn't have any options (hence why I'm not calling a delegate), but simply notifies the user of what happened. Edit: Below is the full method (previously displayed partial). When I comment out everything before the UIAlertView and substitute the

EXC_BAD_ACCESS in UITextField while typing

不问归期 提交于 2019-12-30 08:53:06
问题 I created a brand new view-based project and added into the viewDidLoad - (void)viewDidLoad { [super viewDidLoad]; myField = [[UITextField alloc] initWithFrame:CGRectMake(50, 50, 150, 31)]; myField.delegate=self; [self.view addSubview:myField]; [myField release]; } my header file is @interface textfieldpracticeViewController : UIViewController<UITextFieldDelegate>{ UITextField *myField; } when i click in the textfield and the keyboard pops up, i start typing but on the 2nd character, i get

Help debugging iPhone app - EXC_BAD_ACCESS

时间秒杀一切 提交于 2019-12-29 08:08:12
问题 I've developed my application using my 3G device to test with. Upon giving this to a friend to test, he's noticed that it crashes..I've had a look at the crash log, but it's not much use except for the "EXC_BAD_ACCESS" statement after a few memory warnings. On my device, I can use the imagePicker lots, and each time a photo is taken I get a memory warning, but this doesn't cause any problems. On my friend's device (also a 3G), after a couple of images chosen from the camera, the app crashes.

MGTwitterEngine crash in iOS5

删除回忆录丶 提交于 2019-12-29 07:47:08
问题 While MGTwitterEngine works well on previous versions of iOS, it failed with EXC_BAD_ACCESS at moment when I try to post twit: [twitter sendUpdate:textToShare]; The last list of Objective-C code executer is: [theRequest prepare]; inside SA_OAuthTwitterEngine.m. This is call stack: #1 0x00045a63 in -[OAMutableURLRequest URLEncodedString:] at /Users/ben/Dropbox/Dev/External Projects/Twitter-OAuth-iPhone/OAuthConsumeriPhoneLib/OAuthConsumerSrc/OAMutableURLRequest.m:287 #2 0x000445fa in -

Proper way of creating new objects which are copies of NSDictionary and NSArray objects defined in app delegate

你离开我真会死。 提交于 2019-12-25 18:31:08
问题 I am wondering what the correct way is to make a copy of an object defined in the app delegate or a singleton object. In short, I am making an app which requires a user to login. This login view is just a modal view controller on top of the 'real' app, which consists of a tabbarcontroller, plus some tableview controllers. After a successful login, there is send a data request to a remote server, and the modal view controller is dismissed, revealing the tabbar controller and table views

connection release method in connectionDidFinishLoading, causes error

点点圈 提交于 2019-12-25 07:29:30
问题 testing request and getting the response example in official apple developer site. https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html using [connection release] method in connectionDidFinishLoading, causes error :Should've been invalidated - EXC_BAD_ACCESS if I comment line [connection release] method; everything seems working but Im afraid there is memory leak occurs because of non existent release of connection. what may

EXC_BAD_ACCESS (SIGSEGV) On OSX 10.9.2 With Qt Application

痴心易碎 提交于 2019-12-25 07:24:35
问题 I build OSX wallets for various cryptocurrencies and use QT 4.8.5 to build them. One of the users of my .app files recently sent me these error logs which appear when he tries to open any of the apps I built on his system. He did appear to be a one off case so I assumed something was wrong with his system but someone else posted another log citing the same issue. I cannot seem to pinpoint the issue. Any ideas on what's wrong? Process: FairCoin-Qt [42516] Path: /Users/USER/Downloads/FairCoin