java.lang.IllegalStateException: Timer was cancelled

GitHub | itkach | 6 years 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
    Android has some problem with big images, so, probably, the image you're trying to use is too big for Canvas. You can either use Picasso or compress your image to reduce it's size (both pixel wise and filesize wise)
  2. 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()).
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    Also, you should dispatch events as soon as they happen, ReciclerView already bundles all updates.
  5. 0
    samebug tip
    When you use findViewById inside an activity it is going to look for a View inside your main_activity.xml. If it's not there, it throws this exception, try to use the right view to call findviewById.

  1. eti22 2 times, last 4 months ago
  2. mauritius 19 times, last 2 months ago
  3. poroszd 2 times, last 6 months ago
  4. Stefan Braune 3 times, last 9 months ago
  5. dmitry 1 times, last 10 months ago
2 more registered users
4 unregistered visitors
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.IllegalStateException

    Timer was cancelled

    at java.util.Timer.scheduleImpl()
  2. Java RT
    Timer.schedule
    1. java.util.Timer.scheduleImpl(Timer.java:566)
    2. java.util.Timer.schedule(Timer.java:463)
    2 frames
  3. aarddict.android
    ArticleViewActivity$5.onTouch
    1. aarddict.android.ArticleViewActivity.updateNextButtonVisibility(ArticleViewActivity.java:530)
    2. aarddict.android.ArticleViewActivity.access$9(ArticleViewActivity.java:499)
    3. aarddict.android.ArticleViewActivity$5.onTouch(ArticleViewActivity.java:234)
    3 frames
  4. Android Platform
    ActivityThread.main
    1. android.view.View.dispatchTouchEvent(View.java:3759)
    2. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:913)
    3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:965)
    4. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:965)
    5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:965)
    6. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:965)
    7. android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:1190)
    8. android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1640)
    9. android.view.ViewRoot.doDie(ViewRoot.java:2681)
    10. android.view.ViewRoot.die(ViewRoot.java:2651)
    11. android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:218)
    12. android.view.Window$LocalWindowManager.removeViewImmediate(Window.java:436)
    13. android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3684)
    14. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3789)
    15. android.app.ActivityThread.access$2400(ActivityThread.java:125)
    16. android.app.ActivityThread$H.handleMessage(ActivityThread.java:2037)
    17. android.os.Handler.dispatchMessage(Handler.java:99)
    18. android.os.Looper.loop(Looper.java:123)
    19. android.app.ActivityThread.main(ActivityThread.java:4627)
    19 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:521)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame