tjwoon / csZBar

Cordova plugin to integrate with the ZBar barcode scanning library.
Other
143 stars 181 forks source link

iOS 11.0.1 NSRangeException #126

Closed TdoubleG closed 6 years ago

TdoubleG commented 6 years ago

Hello,

currently my app crashes in iOS 11 with following error:

CsZBar.m Line 81:

2017-11-01 15:59:02.039296+0100 Cryptochange[916:138883] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(0x186a3fd38 0x185f54528 0x1869d8c44 0x186908cc0 0x102f287fc 0x1030a4a70 0x102f2de04 0x102f2dc68 0x102f2f61c 0x195d23250 0x195cb7e00 0x195cb9fe0 0x195aa5b10 0x195c82820 0x195a660ec 0x195a68ae0 0x18dc6cd10 0x18dc6cfd0 0x1869e8358 0x1869e82d8 0x1869e7b60 0x1869e5738 0x1869062d8 0x188797f84 0x18feb3880 0x102e31900 0x18642a56c)
libc++abi.dylib: terminating with uncaught exception of type NSException

The infoButtonIndex is 1 but there is only one subview available.

TdoubleG commented 6 years ago

Saw the PR #117 and #122