question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash : java.lang.ArithmeticException: divide by zero

See original GitHub issue

Description 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:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
kiran-choudharycommented, Jul 18, 2018

Please let me know if is there any fix for this issue

3reactions
nitintechjinicommented, May 18, 2018

I am also facing this issue. Any fix for this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found