Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashs #1

Closed
soufianeEssabbane opened this issue Apr 21, 2014 · 7 comments
Closed

Crashs #1

soufianeEssabbane opened this issue Apr 21, 2014 · 7 comments

Comments

@soufianeEssabbane
Copy link

Hey
I don't understand when you click many times on retake there's a memory lick the app exemple is blocked, or the bottombar blocks ... something goes wrong when you take and retake photos many times, is it normal ?
thanks

@yuvirajsinh
Copy link
Owner

@soufianeEssabbane Thanks for your comment. I just came to know this issue and I am currently working on this issue and will update code once I solve it.

@soufianeEssabbane
Copy link
Author

thank you very much, let me know if i can help or if you want to discuss it.
the thing is that when you take a picture and click on retake sometimes the animations blocks ... and the take picture button blocks. or the whole view stay blocked and it crashes. when you are on the cam view you see that the memory is growing tell 200MB and it crashes. also there's something more is when you try to launch the cam on the device that have only a front cam like iPod.

@soufianeEssabbane
Copy link
Author

hi i solved the problem when it's an ipod with only a front cam by adding a condition in the viewdidload

if( [UIImagePickerController isCameraDeviceAvailable: UIImagePickerControllerCameraDeviceRear ])
{
    FrontCamera = NO;
}
else
{
    FrontCamera = YES;
}

@soufianeEssabbane
Copy link
Author

ps : also in the retake method !

@ewindso
Copy link

ewindso commented May 30, 2014

@soufianeEssabbane @yuvirajsinh I am also experiencing this... it happens when 1.) retake many times and 2.) switch cameras many times.

@neufeng
Copy link

neufeng commented Jul 4, 2014

replace following line in retakePhoto method maybe solve the crash problem when retake many times.
// [self performSelector:@selector(initializeCamera) withObject:nil afterDelay:0.001];
[session startRunning];

@yuvirajsinh
Copy link
Owner

@neufeng Thanks for your suggestion, I replaced the line you suggested and performance is improved a lot. Now memory leak issue is not occurring very frequently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants