iOS PPSSignature bad access

I have a main video view controller, where I present a modal navigation controller so I can still access the video VC.

From the nav controller's root VC, I then can display a 2nd VC with a PPSSignatureView. However, upon using the PPSSignatureView, I get a EXC_BAD_ACCESS (code = 1, address = 0x0) at memcpy line below:

`// Append vertex to array buffer static inline void addVertex(uint *length, PPSSignaturePoint v) { if ((*length) >= maxLength) { return; } GLvoid *data = glMapBufferOES(GL_ARRAY_BUFFER, GL_WRITE_ONLY_OES); memcpy(data + sizeof(PPSSignaturePoint) * (*length), &v, sizeof(PPSSignaturePoint)); glUnmapBufferOES(GL_ARRAY_BUFFER); (*length)++; }`

The PPSSignatureVC works when I was just testing it alone without any of the nav controller modal stuff going on. Any ideas how I can stop this error? Appreciate any help!

Category:ios Time:2019-01-04 Views:0

Related post

  • iOS - EXC bad access, previously worked on iOS 4 2011-11-05

    Unless I'm out of my mind, this was working properly on iOS4. I updated to iOS5, and now it's throwing this bad access error on [indexPath section]. It's on a UITableView: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:

  • OpenGL, glDrawArrays and IOS, Bad Access? 2012-02-12

    I'm starting to work with OpenGL in iOS. I have always learned to draw stuff in OpenGL using glBegin() and glEnd() so this is kind of new to me. I am trying to draw a simple triangle. I can draw a white triangle nicely, I even can draw an entire colo

  • IOS : BAD ACCESS when trying to add a new Entity object 2010-12-25

    So i'm using coredata to model my relationships . This is the model in brief Type A can have one or more types of type B Type B has a inverse relationship of being associated with one of type A Type B can have one or more types of type C Type C has a

  • iOS bad access impossible to find 2011-10-20

    I'm stuck with a stupid bad access since so many hours. I'm totally unable to find it. I hope some of you will be able to show me the answer into the light. In the code bellow it appear on the line : NSString * stringCallVisit = [[NSString alloc]init

  • ios NSKeyedArchiver releasing = bad access 2011-10-21

    I have an noob problem and I would like you yo point me in the right direction. Basicly I have a custom class which implements the copying protocol. However when I save the class during execution the custom class i released and I get a bad access. I

  • Bad Access Error in Cocos2D Game in SKD 4, but not 3 2010-06-22

    Yeah, so this one through me or a loop for a while until I figured out what was going on. With Apple releasing the final version of Xcode today, and iOS 4 coming out yesterday, I finally started to look into porting my apps to iOS 4. So I downloaded

  • Objective C Blocks as Async-callbacks & BAD ACCESS 2011-07-30

    I've got a serious doubt. Suppose the following scenario: You have a UIViewController onscreen. The app initiates, say, a backend call using a block as a callback You use a 'self' surrogate, to prevent retain cycles. The user hits 'Back', and the UIV

  • memcpy causing 'exc bad access' 2011-10-01

    I'm trying to loop through an array and copy across data, but after 1023 loops, I get an exc bad access message thrown and I have a feeling it might be to do with my memory. In my loop, I need to append data to my totalValues array, so I did this: me

  • Changing navigationController.delegate causes to bad access 2011-11-05

    This may sound a newbie question, however I'm new t iOS dev. I've a view pushed in navigationController, let say it is the 3rd pushed view. In that view I set self.navigationController.delegate = self;. I've changed delegate because I need to handle

  • canSetSessionPreset:AVCaptureSessionPreset1920x1080 causes 'Bad Access' in iOS4 2011-12-12

    Here is my code: if( [self.captureSession canSetSessionPreset:AVCaptureSessionPreset1920x1080] == YES ) { [self.captureSession setSessionPreset:AVCaptureSessionPreset1920x1080]; self.currentPreset = GMCVideoCaptureRecordingPresetFullHD; } On iOS4 exe

  • Bad Access on Core Data deleteObject 2012-03-17

    I could use some assistance in debugging a EXC_BAD_ACCESS error received on the [context deleteObject:loan]; command. The error is received in the following delegate method: - (void)didCancelNewLoan:(Loan *)loan { // save the context NSManagedObjectC

  • CoreGraphics drawRect in a cocos2d project EXEC BAD ACCESS 2012-04-11

    I got a interesting riddle here. My cocos2d project uses a UIView to display nicer popups than the regular alert view. To be more flexible in the size of the popup, I draw the background in the drawRect method. But first the hierarchy how I implement

  • Bad Access Code 1 when using a Singleton 2014-01-07

    I need some help. I'm using this singleton pattern within an iOS application I'm developing: .h file #import <Foundation/Foundation.h> @class Item; @interface ItemManager : NSObject - (id)init; + (ItemManager *)sharedInstance; - (int)ratingFrom

  • Archiving and Unarchiving results in Bad Access 2009-07-25

    I'm having trouble setting up a model object to save the visual state of user generated CALayers in a simple graphics application for the iphone. I'm attempting to save the background color and frame of all the current layers on screen by passing tho

  • My Iphone App crashes (Bad access) when turned on it's side (landscape mode) 2009-08-05

    For some reason, every time I run my Iphone App, the App works fine as long as it is upright. The second the simulator turns to the left or right (like if I manually turn it, or if it's trying to play a video), the code crashes, with either a "Bad Ac

  • BAD ACCESS error even though property is set to retain 2009-09-08

    I hope someone can tell me why I'm wrong. Here is a snippet of my code: TimeLogAppDelegate *appDelegate = (TimeLogAppDelegate *)[[UIApplication sharedApplication] delegate]; PickFromListViewController * pl = [[PickFromListViewController alloc] initWi

  • Bad Access error when accessing a UIColor* 2009-09-21

    In my drawing routine for a custom UITableViewCell, was using the following without any problems: CGContextRef context = UIGraphicsGetCurrentContext(); UIColor* backgroundColor = [UIColor colorForHex:@"FFFEFF"]; [backgroundColor set]; CGContextFillRe

  • EXC BAD ACCESS while using UISearchBar 2009-12-02

    I think, I need another good advice. Up to now my solution seemed to run well, but now... OK, the facts: I have an ordinary UIViewController On top a UINavigationBar, behind that a UISearchBar, hidden initially At bottom a UIToolBar My main view cont

  • Bad Access while reading ABAddressBookCopyArrayOfAllPeople 2010-03-11

    HI all, When I tried to read the record of all peoples from the device as follows: NSArray* allPersons = (NSArray*)ABAddressBookCopyArrayOfAllPeople(addressBook); I am getting a bad access. When I tried the same code in the simulator its working . St

Copyright (C), All Rights Reserved.

processed in 3.074 (s). 14 q(s)