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

Hangs on iOS (latest) @ Oct 2016 // A scan is already in progress #87

Closed
ullfindsmit opened this issue Oct 13, 2016 · 10 comments
Closed

Comments

@ullfindsmit
Copy link

ullfindsmit commented Oct 13, 2016

The most recent build via phonegap build is not loading the scanner for iOS only
It works fine on Android

On second attempt, it says
A scan is already in progress

Please help

@ullfindsmit ullfindsmit changed the title Hangs on iOS (latest) @ Oct 2016 Hangs on iOS (latest) @ Oct 2016 // A scan is already in progress Oct 13, 2016
@cepm-nate
Copy link

cepm-nate commented Oct 13, 2016

I am seeing the same thing, and it's a pity as zbar is the fastest scanner I've found for iOS.

@dcousens
Copy link
Contributor

Have you pulled the latest version from this repository?

@ullfindsmit
Copy link
Author

I am using phonegap build which pulls directly

@cepm-nate
Copy link

I was using a branch of it to limit scanning to just the red line (useful when there are many 1D barcodes close together) but have switched to the official phonegap-plugin-barcode scanner (with jlowe234's branch) as it seems to be updated a little more frequently, and limits scanning to just along the red line.

Thanks for all the work dcousens! I'll check back occasionally to see if there's a way to limit the scanning rectangle for both iOS and Android. :-)

@gitlovenotwar
Copy link

I had the same issue. It asks to open the camera but the camera did not show, and opening scanner again returns error with "A scan is already in progress".

@Thamodharank
Copy link

Thamodharank commented Oct 21, 2016

Hello All,

I too face the same problem for the recent build.

In iOS, the scanner does not open and throws the "A scan is already in progress" error for the second time.

Did anyone find a solution?

@ullfindsmit
Copy link
Author

Here is a little more details from console log within XCode

2016-10-21 15:15:36.221162 MyApp[722:139008] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2016-10-21 15:15:36.228703 MyApp[722:139008] [MC] Reading from public effective user settings.
2016-10-21 15:15:36.304453 MyApp[722:139008] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: *** -[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 .. 1]

@nrcrabbe
Copy link

Here's how I got around it.

ionic plugin rm cordova-plugin-cszbar
ionic plugin add https://github.com/tjwoon/csZBar.git#master

(use cordova plugin ... if not using ionic)

The npm release won't be new enough so you'll need to fall back to the git repository

HTH

@ullfindsmit
Copy link
Author

phonegap plugin rm cordova-plugin-cszbar
phonegap plugin add https://github.com/tjwoon/csZBar.git#master
phonegap platform remove ios
phonegap platform add ios

Did the trick

@gitlovenotwar
Copy link

@nrcrabbe This really works, nice! Thanks!!!

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

No branches or pull requests

6 participants