Skip to content

Instantly share code, notes, and snippets.

@rakhimoni
Last active November 21, 2017 10:47
Show Gist options
  • Save rakhimoni/aaa196cb406d74f08e4c66b77fe50e92 to your computer and use it in GitHub Desktop.
Save rakhimoni/aaa196cb406d74f08e4c66b77fe50e92 to your computer and use it in GitHub Desktop.
Assigning variables to explicitly defined octal numbers
/**
Assigning variables to explicitly defined octal numbers (e.g. 0755) now results in a compilation error. 
This is a relatively minor fix (as we are only using octals in the barcode scanner).
**/
I have tested the issue using barcode module on android device.
The module is working as expected android 5.1 device but provides the following error when we press the button “SCAN CODE”
"Sorry the Android camera encountered error on android >5 devices ". You may try to restart the device’.
After restarting the device the module is not working. We received this error on Galaxy J7(6.0.1),HUAWEI GR3 2017.
Test Environment:
Appcelerator Command-Line Interface, version 6.3.0
Mac OS X 10.12.6
Architecture 64bit
CPUs 4
Memory 8589934592
Axway Appcelerator Studio, build: 4.10.0.201709271713
Appcelerator Command-Line Interface, version 6.2.4,
SDK Version = SDK 6.3.0.GA
Node.js Version = 4.7.0
npm Version = 2.15.11
Android Device: Galaxy J7(6.0.1),HUAWEI GR3 2017(7.0), Walton Primo R4 Plus(5.1)
Test Steps:
1. Open Studio and create a classic project
2. Download the barcode module from here https://github.com/appcelerator-modules/ti.barcode/releases
3. Include the module and run the project.
4. After running press the “SCAN CODE” to scan any barcode
Test Code:
Example code of barcode module
Console log:
[ERROR] : E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
[ERROR] : E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
[ERROR] : E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
[ERROR] : E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
[INFO] : HwPointEventFilter: do not support AFT because of no config
[WARN] : CameraBase: An error occurred while connecting to camera 0: Service not available
[ERROR] : Camera: Camera new cameraInitNormal:-13
Output:
Android device(5.1:) https://scontent-sit4-1.xx.fbcdn.net/v/t34.0-12/23772380_10215205736916581_205160455_n.png?oh=a2e9a72ade0b80d4666231318033411e&oe=5A158134
Android device(6 &7):https://s2.postimg.org/9g5ov67ah/Screenshot_20171121-155155.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment