java.lang.ArithmeticException: divide by zero

GitHub | lenmoyouziJiangjun | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    This issue was solved in 2.2.6. If updating doesn't solve, try using notifyItemRangeChanged(1, mDatas.size()) instead of notifyItemRangeChanged(0, mDatas.size()).
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0
    samebug tip
    Also, you should dispatch events as soon as they happen, ReciclerView already bundles all updates.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArithmeticException

      divide by zero

      at fm.jiecao.jcvideoplayer_lib.JCResizeTextureView.onMeasure()
    2. fm.jiecao.jcvideoplayer_lib
      JCResizeTextureView.onMeasure
      1. fm.jiecao.jcvideoplayer_lib.JCResizeTextureView.onMeasure(JCResizeTextureView.java:133)
      1 frame
    3. Android Platform
      View.measure
      1. android.view.View.measure(View.java:17547)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
      3. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
      4. android.view.View.measure(View.java:17547)
      5. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)
      6. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)
      7. android.view.View.measure(View.java:17547)
      7 frames
    4. fm.jiecao.jcvideoplayer_lib
      JCVideoPlayer.onMeasure
      1. fm.jiecao.jcvideoplayer_lib.JCVideoPlayer.onMeasure(JCVideoPlayer.java:304)
      1 frame
    5. Android Platform
      View.measure
      1. android.view.View.measure(View.java:17547)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      6. android.view.View.measure(View.java:17547)
      7. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
      8. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      9. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      10. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      11. android.view.View.measure(View.java:17547)
      11 frames
    6. Android v7
      RecyclerView.onMeasure
      1. android.support.v7.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:8163)
      2. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1471)
      3. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1408)
      4. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:580)
      5. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3379)
      6. android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:2906)
      6 frames
    7. Android Platform
      View.measure
      1. android.view.View.measure(View.java:17547)
      2. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)
      3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)
      4. android.view.View.measure(View.java:17547)
      5. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)
      6. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)
      7. android.view.View.measure(View.java:17547)
      8. android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1063)
      9. android.widget.LinearLayout.onMeasure(LinearLayout.java:615)
      10. android.view.View.measure(View.java:17547)
      11. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
      12. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      13. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      14. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      15. android.view.View.measure(View.java:17547)
      16. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
      17. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
      18. android.view.View.measure(View.java:17547)
      18 frames
    8. Android Support v4
      DrawerLayout.onMeasure
      1. android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1081)
      1 frame
    9. Android Platform
      FrameLayout.onMeasure
      1. android.view.View.measure(View.java:17547)
      2. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:727)
      3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:463)
      4. android.view.View.measure(View.java:17547)
      5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
      6. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
      6 frames
    10. Android v7
      ContentFrameLayout.onMeasure
      1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
      1 frame
    11. Android Platform
      View.measure
      1. android.view.View.measure(View.java:17547)
      2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5535)
      3. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
      4. android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
      5. android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
      6. android.view.View.measure(View.java:17547)
      6 frames