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 and poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    The image you're trying to use is too big for Canvas, try compressing it or reducing resolution so the size becomes smaller.
  2. 0
    samebug tip
    Also, you should dispatch events as soon as they happen, ReciclerView already bundles all updates.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    You cannot update your adapter contents in the background. Prepare your data on the background thread and then pass it to the main thread to update the adapter and call notify.
  5. 0
    samebug tip
    You have to provide valid identical number for each child items.
    via GitHub by h6ah4i

  1. eti22 2 times, last 3 months ago
  2. mauritius 19 times, last 2 weeks ago
  3. poroszd 2 times, last 5 months ago
  4. Stefan Braune 3 times, last 8 months ago
  5. dmitry 1 times, last 9 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