Crash : java.lang.ArithmeticException: divide by zero
See original GitHub issueDescription of the problem:
Which library version are you using? 3.5.0.
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0)
Samsung - Android 7
Does the same happen on other devices or an emulator? No
Can you reproduce the issue in the sample project included with the library? If not, can you provide your own sample project or sample code that produces this error? No
In the case of an error do you have a stack trace or adb logs?
Fatal Exception: java.lang.ArithmeticException: divide by zero
at com.journeyapps.barcodescanner.CameraPreview.calculateFrames(SourceFile:389)
at com.journeyapps.barcodescanner.CameraPreview.previewSized(SourceFile:461)
at com.journeyapps.barcodescanner.CameraPreview.access$300(SourceFile:59)
at com.journeyapps.barcodescanner.CameraPreview$3.handleMessage(SourceFile:199)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6692)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:17 (2 by maintainers)
Top Results From Across the Web
Why am I getting java.lang.ArithmeticException: divide by zero
Dividing a float value by zero yields positive infinity or negative infinity or NaN (0 / 0) and does not throw an exception....
Read more >IV66036: ARITHMETIC DIVIDE BY ZERO EXCEPTION ... - IBM
This problem can happen when the primary induction variable in a loop has a non-constant increment. JIT will incorrectly optimize the loop, resulting...
Read more >divide by zero' exception in android.widget.TableLayout ...
I get a 'java.lang.ArithmeticException: divide by zero' exception when programmatically building a table layout with setStretchAllColumns(true).
Read more >Division by zero crash with alternating /recipe commands - Jira
crash-2017-04-12_22.17.28-client.txt. Description: Unexpected error java.lang.ArithmeticException: / by zero at bio$b.a(SourceFile:187) at ...
Read more >Examples - ZIO
As we see, because we entered the zero for the denominator, the ArithmeticException defect, makes the application crash. Defects are any unexpected errors...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please let me know if is there any fix for this issue
I am also facing this issue. Any fix for this.