Issue 1687 in zxing: iOS crash when camera is disabled

27 views
Skip to first unread message

zx...@googlecode.com

unread,
May 22, 2013, 1:22:14 AM5/22/13
to zx...@googlegroups.com
Status: New
Owner: ----

New issue 1687 by skab...@gmail.com: iOS crash when camera is disabled
http://code.google.com/p/zxing/issues/detail?id=1687

What steps will reproduce the problem?
1. Disable the camera in Settings.app -> Restrictions
2. Run an app that includes the ZXingWidgetController.
3. Crash

What is the expected output? What do you see instead?
I would expect an error message. Instead the app crashes.

What version of the product are you using? On what operating system?
SVN Rev 2806. iOS 6.1.3

Please provide any additional information below.
In ZXingWidgetController - (void)initCapture the captureInput value isn't
being checked for nil.


Attachments:
ZXingWidgetController-crash.patch 1.2 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

zx...@googlecode.com

unread,
Aug 18, 2013, 9:18:52 PM8/18/13
to zx...@googlegroups.com
Updates:
Status: Accepted
Owner: smpar...@smparkes.net

Comment #1 on issue 1687 by smpar...@smparkes.net: iOS crash when camera is
disabled
http://code.google.com/p/zxing/issues/detail?id=1687

(No comment was entered for this change.)

zx...@googlecode.com

unread,
Aug 18, 2013, 9:26:04 PM8/18/13
to zx...@googlegroups.com

Comment #2 on issue 1687 by smpar...@smparkes.net: iOS crash when camera is
disabled
http://code.google.com/p/zxing/issues/detail?id=1687

Fixed in r2868 though I didn't put in the alert view. I think that should
be up to the app. The caller can look at the captureSession to see if the
widget was able to go through the AVFF setup dance.

zx...@googlecode.com

unread,
Aug 18, 2013, 9:27:04 PM8/18/13
to zx...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 1687 by smpar...@smparkes.net: iOS crash when camera is
disabled
http://code.google.com/p/zxing/issues/detail?id=1687

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages