Log in or register to post comments

VideoPlayback Sample: clean way to start / stop vuforia AR view

March 13, 2014 - 2:17am #1

So I'm able to reproduce a crash with the 2.8.9 VideoPlayBack Sample and the 2.8.7 SDK which occurs in my project as well. What I want is to be able to jump between 2 View Controllers in a Navigation ViewController Hierarchy: I have a MainViewController which is the rootViewController of the NavigationController and a button tap pushes VideoPlaybackViewController on the navigation Stack. 

Now the crash occurs on iPad3 after 5 times of pushing and popping the VideoPlaybackViewController. 

 

What I did with the VideoPlayback sample was the following: 

 

Deleted all SampleAppUI ViewControllers

In AppDelegate: Init MainViewController as navigationcontroller's rootViewController

MainViewController: Has the same startButtonTapped method as SampleAppAboutViewController minus the SampleAppSlidingMenuVC Code:

- (IBAction)startButtonTapped:(id)sender {
    Class vcClass = NSClassFromString(@"VideoPlaybackViewController");
    id vc = [[vcClass alloc]  initWithNibName:nil bundle:nil];
    
    [self.navigationController pushViewController:vc animated:NO];
    [vc release]; // don't leak memory
}

In VideoPlaybackViewController handleDoubleTap: I just pop back to root VC:

// double tap handler
- (void)handleDoubleTap:(UITapGestureRecognizer *)sender {
    [[self navigationController] popToRootViewControllerAnimated:NO];
}

 

So basically I'm doing all the same like in the sample expect omitting the Sliding Menu VCs. Could anyone tell me what I am missing here?

Thanks in advance

 

 

VideoPlayback Sample: clean way to start / stop vuforia AR view

March 13, 2014 - 5:24am #3

Hi NalinS

I already suspected something like this to be the root of the problem therefore I already imlpemented the proposed changes to the code from the thread you linked - unfortunately the problem still persists. Thank you for your help and I'm looking forward for the fix in a future release.

VideoPlayback Sample: clean way to start / stop vuforia AR view

March 13, 2014 - 3:34am #2

There is a memory leak with the new samples that will cause a crash upon repeated invocations of any Vuforia sample from the menu.

See here for more details.

https://developer.vuforia.com/forum/ios/memory-leak-vuforia-ios

 

This will be fixed in the next release, though I am unable to provide you with a timescale for this at present.

 

thanks,

N

Log in or register to post comments