-
Notifications
You must be signed in to change notification settings - Fork 749
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
dismissviewcontroller:aimated:completion: in captureresult:result: crashes app #26
Comments
ok, actually it is due to overreleasing zxcapture. when I enable zombie objects, I get this error: *** -[ZXCapture release]: message sent to deallocated instance 0x22364c10 does zxingobjc not work with ARC projects yet? |
I'm getting the same issue. Unfortunately this is making ZXingObjC of no use to me. It looked very promising too! |
.. ok I believe I've sorted it out, simply by marking my ViewController .m file compiled without ARC. Haven't had any crashes yet.. |
I got the some problem on an app I'm developing. I was unable to identify the culprit, but I'm convinced the problem happens during the deallocation. While trying to pin point it, I came to the conclusion (albeit being unable to verify it) that the crash happens on the garbage collector as a cause of over releasing. ** |
Same here. The crash is in |
I found that you need to remove the capture.layer from your view before calling [self.capture.layer removeFromSuperlayer];
[self.capture stop];
[self dismissViewControllerAnimated:YES completion:nil]; |
Nice, that works fine! On 01.02.2013, at 16:06, Patrick Strawderman notifications@github.com wrote:
|
Thanks very much! It works! |
Thank you. |
Has this fix been pushed to the Cocoapods version of ZXingObjC, because I'm still encountering this issue when I include ZXing 2.1.0 via Cocoapods? Thanks! |
+1 |
I'm on a 2.2.2 version and this bug still happens (iOS7, iPhone 4). |
Are you seeing the "message sent to deallocated instance" error on [ZXCapture release]? |
Same for me, working with version 2.2.2 on iOS 7.0.4 getting this error message: |
I've just pushed (TheLevelUp/ZXingObjC@d9e3d23) a major cleanup to |
I think the Problem is still available with ne newest Version and iOS 7.1. After I scan 1-10x QR-Codes fast behind each other, i getting an EXC_BAD_ACCESS Error. After using Instruments(zombie) I recognize a ZXCapture-Zombie. After implementing the short Code part above: it seems to work fine! Thank you very much! |
Thank u very much. |
i started integrating zxingobjc into my app by using the example code and it works well, but I want to dismiss the Scanner view controller when I actually get a result while scanning, so I stop the capture and call dismissviewcontroller:animated:completion, but right after the controller is dismissed, the app crashes.
i get some messages from libobjc.A.dylib`objc_msgSend: which i don't understand, but I guess it might be a threading error. not sure though.
i also tried making sure to dismiss from the main thread, but it didn't help. is this a known issue and do you have any tips for me as how to dismiss the scanner view controller correctly when it got a result?
The text was updated successfully, but these errors were encountered: