You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on my android phone (Motorola Milestone 2 with CM10.2) I was getting crashes shortly after the barcode scanner started with the latest version from the Google Play.
I debugged the code a little bit and found the following:
getPreviewFpsRange in android/src/com/google/zxing/client/android/camera/CameraConfigurationManager.java (line 253) throws a RuntimeException because the camera parameters have preview-fps-range=10000, 30000 and so parseInt(" 30000") fails.
I don't know where this bug comes from (CM, Android, the guy who ported CM to the MS2) but I found out that the ROM I'm using is not the only ROM for the MS2 with this bug.
Although that exception is catched later on, the app force closes because of an IndexOutOfBoundsException in core/src/com/google/zxing/PlanarYUVLuminanceSource.java (line 73, offset > yuvData.length).
Long story short - the following patch fixes my problem:
I don't know if other devices are affected but I would really appreciate it if this patch could be incorporated in your releases so I don't have to build my own :)
The text was updated successfully, but these errors were encountered:
There is no parseInt here -- the Android API returns int[] so I assume this is a bug in CM and/or the config, yes. You can definitely patch and build it as you say, and I think that's best. This isn't necessary it seems for a mainstream Android device without this bug.
Hi,
on my android phone (Motorola Milestone 2 with CM10.2) I was getting crashes shortly after the barcode scanner started with the latest version from the Google Play.
I debugged the code a little bit and found the following:
getPreviewFpsRange in android/src/com/google/zxing/client/android/camera/CameraConfigurationManager.java (line 253) throws a RuntimeException because the camera parameters have preview-fps-range=10000, 30000 and so parseInt(" 30000") fails.
I don't know where this bug comes from (CM, Android, the guy who ported CM to the MS2) but I found out that the ROM I'm using is not the only ROM for the MS2 with this bug.
Although that exception is catched later on, the app force closes because of an IndexOutOfBoundsException in core/src/com/google/zxing/PlanarYUVLuminanceSource.java (line 73, offset > yuvData.length).
Long story short - the following patch fixes my problem:
I don't know if other devices are affected but I would really appreciate it if this patch could be incorporated in your releases so I don't have to build my own :)
The text was updated successfully, but these errors were encountered: