Log in or register to post comments

Video playback QCAR hanged

October 18, 2012 - 11:50am #1

Hello,

After debugging for an hour I found out where app is hanging. The code is in QCARutils.mm below

- (void)stopCamera
{
    // Stop the tracker:
    QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();
    //NSLog(@"%d", targetType);
    QCAR::Tracker* tracker = trackerManager.getTracker(targetType == TYPE_FRAMEMARKERS ?
                                                       QCAR::Tracker::MARKER_TRACKER :
                                                       QCAR::Tracker::IMAGE_TRACKER);
    if(tracker != 0)
        tracker->stop();

    QCAR::CameraDevice::getInstance().stop();
    QCAR::CameraDevice::getInstance().deinit();
}

 

Application dont move forward and screen hangs when it reaches following line of above code

QCAR::Tracker* tracker = trackerManager.getTracker(targetType == TYPE_FRAMEMARKERS ?
                                                       QCAR::Tracker::MARKER_TRACKER :
                                                       QCAR::Tracker::IMAGE_TRACKER);

What could be the issue? I did major changes in EAGLView.mm. What could have caused the issue?

Video playback QCAR hanged

October 21, 2012 - 10:25pm #5

well this problem arises when you push new controller in front with presentmodalviewcontroller method. If video is playing in background then app freezes, I just had to stop all playing videos just after new controller is pushed so by the time new controller took control video stops so it is not hanging anymore.

Video playback QCAR hanged

October 19, 2012 - 8:27am #4

"I did major changes in EAGLView.mm. What could have caused the issue?"

I think you just answered your own question.

Most of this seems to be outside the scope of Vuforia problems.

N

 

Video playback QCAR hanged

October 18, 2012 - 11:47pm #3

Also I keep on getting following in console after every 10 seconds once app is hanged

2012-10-19 11:43:33.258 WhatTheBuck[3011:2703] void SendDelegateMessage(NSInvocation*): delegate (<CFNotificationCenter 0x52c500 [0x3f712650]>) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode

Video playback QCAR hanged

October 18, 2012 - 10:53pm #2

Here are the last things appearing on the console log

2012-10-19 10:48:53.771 WhatTheBuck[2795:707] ARParentVC: dissappeared
2012-10-19 10:48:53.777 WhatTheBuck[2795:707] ARVC: viewDidDisappear
2012-10-19 10:48:53.782 WhatTheBuck[2795:707] QCARutils onPause()
2012-10-19 10:48:53.785 WhatTheBuck[2795:707] APPSTATUS_CAMERA_STOPPED

Also when app was running fine then it had followong thing in the console

2012-10-19 10:48:53.771 WhatTheBuck[2795:707] ARParentVC: dissappeared
2012-10-19 10:48:53.777 WhatTheBuck[2795:707] ARVC: viewDidDisappear
2012-10-19 10:48:53.782 WhatTheBuck[2795:707] QCARutils onPause()
2012-10-19 10:48:53.785 WhatTheBuck[2795:707] APPSTATUS_CAMERA_STOPPED

2012-10-19 10:48:53.789 WhatTheBuck[2795:707] ARVC: viewDidDisappear

 

What I am trying to do is push new view controller in VPParentViewController with following code

 

if ([MFMailComposeViewController canSendMail])
    {
        //[self removeMoviePlayerView];  
       
        MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];
        mailer.mailComposeDelegate = self;
        [mailer setSubject:@"App"];
        NSData *imageData = UIImagePNGRepresentation(img);
        [mailer addAttachmentData:imageData mimeType:@"image/png" fileName:@"App"];
        NSString *emailBody = @"";
        [mailer setMessageBody:emailBody isHTML:NO];
        [self presentModalViewController:mailer animated:YES];
        [mailer release];
    }
    else
    {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Failure"
                                                        message:@"Your device doesn't support the composer sheet"
                                                       delegate:nil
                                              cancelButtonTitle:@"OK"
                                              otherButtonTitles: nil];
        [alert show];
        [alert release];
    }

Log in or register to post comments