java.lang.ArithmeticException: divide by zero

GitHub | moelfassi | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.ArithmeticException

    divide by zero

    at github.hellocsl.cursorwheel.CursorWheelLayout.onLayout()
  2. github.hellocsl.cursorwheel
    CursorWheelLayout.onLayout
    1. github.hellocsl.cursorwheel.CursorWheelLayout.onLayout(CursorWheelLayout.java:362)
    1 frame
  3. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16637)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    5. android.view.View.layout(View.java:16637)
    6. android.view.ViewGroup.layout(ViewGroup.java:5437)
    7. android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
    8. android.view.View.layout(View.java:16637)
    9. android.view.ViewGroup.layout(ViewGroup.java:5437)
    10. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1735)
    11. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1579)
    12. android.widget.LinearLayout.onLayout(LinearLayout.java:1488)
    13. android.view.View.layout(View.java:16637)
    14. android.view.ViewGroup.layout(ViewGroup.java:5437)
    15. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    16. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    17. android.view.View.layout(View.java:16637)
    18. android.view.ViewGroup.layout(ViewGroup.java:5437)
    18 frames
  4. Android v7
    ActionBarOverlayLayout.onLayout
    1. android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:435)
    1 frame
  5. Android Platform
    ViewGroup.layout
    1. android.view.View.layout(View.java:16637)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    5. android.view.View.layout(View.java:16637)
    6. android.view.ViewGroup.layout(ViewGroup.java:5437)
    7. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1735)
    8. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1579)
    9. android.widget.LinearLayout.onLayout(LinearLayout.java:1488)
    10. android.view.View.layout(View.java:16637)
    11. android.view.ViewGroup.layout(ViewGroup.java:5437)
    12. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1735)
    13. android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1724)
    14. android.widget.LinearLayout.onLayout(LinearLayout.java:1490)
    15. android.view.View.layout(View.java:16637)
    16. android.view.ViewGroup.layout(ViewGroup.java:5437)
    16 frames
  6. Android Support v4
    DrawerLayout.onLayout
    1. android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1187)
    1 frame
  7. Android Platform
    FrameLayout.onLayout
    1. android.view.View.layout(View.java:16637)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:273)
    4 frames
  8. Android
    PhoneWindow$DecorView.onLayout
    1. com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2678)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:16637)
    2. android.view.ViewGroup.layout(ViewGroup.java:5437)
    3. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2179)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1939)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1115)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6029)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    9. android.view.Choreographer.doFrame(Choreographer.java:606)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:148)
    14. android.app.ActivityThread.main(ActivityThread.java:5458)
    14 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  11. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    1 frame