java.lang.IllegalStateException: Unable to locate mode 0

Stack Overflow | Geo Antony | 1 week ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

    2 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

      Unable to locate mode 0

      at android.view.DisplayInfo.findMode()
    2. Android Platform
      Display.getRefreshRate
      1. android.view.DisplayInfo.findMode(DisplayInfo.java:458)
      2. android.view.DisplayInfo.getMode(DisplayInfo.java:445)
      3. android.view.Display.getRefreshRate(Display.java:648)
      3 frames
    3. Android v7
      RecyclerView.onAttachedToWindow
      1. android.support.v7.widget.RecyclerView.onAttachedToWindow(RecyclerView.java:2392)
      1 frame
    4. Android Platform
      AttachInfo_Accessor.setAttachInfo
      1. android.view.View.dispatchAttachedToWindow(View.java:15392)
      2. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2953)
      3. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
      4. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
      5. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
      6. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
      7. android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
      8. android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:42)
      8 frames
    5. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:333)
      2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
      2 frames
    6. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
      1 frame
    7. com.android.tools
      RenderTask$2.compute
      1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548)
      2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533)
      2 frames
    8. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
      1 frame
    9. com.android.tools
      RenderTask.lambda$inflate$70
      1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)
      2. com.android.tools.idea.rendering.RenderTask.lambda$inflate$70(RenderTask.java:659)
      2 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames