-
Notifications
You must be signed in to change notification settings - Fork 703
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
[IOS] Scanner starts slow after 4/5 times. #71
Comments
Can you expand on what you mean by 'AddInput and AddOutput gives the problems'? Not sure what you mean. Also would appreciate you giving me a chance to help make this better before leaving such a negative review on the component store. |
Thnx for your quick response. I dont now :-) Here below is the code. -- session.AddOutput (metadataOutput); and session.AddInput (input); bool SetupCaptureSession ()
// var captureDevice = AVCaptureDevice.DefaultDeviceWithMediaType (AVMediaType.Video);
|
This is in the ACCaptureScannerView.cs file from the MonoTouch.Sample app |
It would be more helpful if you could share some results of profiling: http://docs.xamarin.com/guides/ios/deployment%2C_testing%2C_and_metrics/using_instruments_to_detect_native_leaks_using_markheap |
For example, are there memory leaks you're encountering at the point it slows down, or generally high usage of memory? etc. |
I found it. the fix is to remove de input and output from the session in the StopScanning method. session.RemoveOutput (session.Outputs [0]); |
Great, I'll give this a try! |
Hi All, I fixed my problem by adding the same code for suggested fix #71 to the StopScanning method in the AVCaptureView.cs file (found at 3f4267e). Once I did that, my problem went away. Once again, thanks for the efforts on this project. They are greatly appreciated. |
@Redth First, thanks for the effort you guys put in this project! It makes life for startups like we are a lot easier. Unfortunately, I still experience the effect, that after a few scans, the scanner opens very slow. Here some figures: On 2nd opening:
On 3rd opening:
I'm using So I'm a little baffled. Thanks for any help! |
Update: I included the official V 1.4.0 version in the app and everything is working fine... |
Hi, I've the same problem. After 4/5 times scanner starts very slowly. I'm using v.1.4.2 and I'm using an iPhone 5 on iOS 7. Any solution? I've seen that fix suggested is included in verso 1.4.2 2014-03-10 19:14:12.525 PhotoShare[1053:60b] PERF: Setup Focus in 1,4683 ms. |
In the file AVCaptureScannerView.cs change te method StopScanning() to the code below: (Remove output and inputs) public void StopScanning()
Rogier Rietdijk Op 10 mrt. 2014, om 19:16 heeft mapo80 notifications@github.com het volgende geschreven:
|
Hi, I've solved! In ZXingScannerView.cs and in StartScanning method there isn't
So StopScanning method is badly executed! I hope to see this fix asap!! Thanks. |
Barcode scanning become slowly after 4/5 times you open view controller.
The scanner starts slow after 4/5 times.
While i was debugging the app with de current source i see dat the addinput and addoutput by de avcapturesession gives the problems.
The text was updated successfully, but these errors were encountered: