java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.

Stack Overflow | Code Pirate | 4 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
    Try to use "Base.Theme.AppCompat.Light.DarkActionBar". It seems sometimes it need the "Base" prefix to work properly. If that doesn't work, go for Build > Rebuild Project and File > Invalidate caches/Restart.
  2. 0

    Issue 215369 - android - rendering error - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 6 months ago
    java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.
  3. 0

    AndroidStudio - Couldn't resolve resource @id/visible in layout xml file

    Stack Overflow | 5 months ago | Francis Rodrigues
    java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Studio Rendering Problems java.util.concurrent.TimeoutException

    Stack Overflow | 4 months ago | Code Pirate
    java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.
  6. 0

    Android studio rendering showing errors

    Stack Overflow | 7 months ago | Shubham Singh
    java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.

    1 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.util.concurrent.TimeoutException

      Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.

      at java.util.zip.ZipFile.read()
    2. Java RT
      InflaterInputStream.read
      1. java.util.zip.ZipFile.read(Native Method)
      2. java.util.zip.ZipFile.access$1400(ZipFile.java:60)
      3. java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
      4. java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
      5. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
      5 frames
    3. Openapi
      UrlClassLoader._findClass
      1. com.intellij.openapi.util.io.FileUtilRt.loadBytes(FileUtilRt.java:627)
      2. com.intellij.openapi.util.io.FileUtil.loadBytes(FileUtil.java:1604)
      3. com.intellij.util.lang.MemoryResource.load(MemoryResource.java:74)
      4. com.intellij.util.lang.JarLoader.getResource(JarLoader.java:134)
      5. com.intellij.util.lang.ClassPath$ResourceStringLoaderIterator.process(ClassPath.java:342)
      6. com.intellij.util.lang.ClassPath$ResourceStringLoaderIterator.process(ClassPath.java:332)
      7. com.intellij.util.lang.ClasspathCache.iterateLoaders(ClasspathCache.java:98)
      8. com.intellij.util.lang.ClassPath.getResource(ClassPath.java:106)
      9. com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:220)
      9 frames
    4. IDEA
      PluginClassLoader.loadClass
      1. com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:119)
      2. com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:73)
      3. com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:62)
      3 frames
    5. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:411)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      2 frames
    6. JetBrains android
      ModuleClassLoader.loadClass
      1. org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:193)
      1 frame
    7. Android v7
      AppCompatImageView.<init>
      1. android.support.v7.widget.VectorEnabledTintResources.shouldBeUsed(VectorEnabledTintResources.java:41)
      2. android.support.v7.widget.TintContextWrapper.shouldWrap(TintContextWrapper.java:84)
      3. android.support.v7.widget.TintContextWrapper.wrap(TintContextWrapper.java:45)
      4. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:60)
      5. android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:56)
      5 frames
    8. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      4 frames
    9. JetBrains android
      ViewLoader.loadClass
      1. org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:465)
      2. org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:172)
      3. org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:150)
      3 frames
    10. com.android.tools
      LayoutlibCallbackImpl.loadClass
      1. com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadClass(LayoutlibCallbackImpl.java:193)
      1 frame
    11. Android Platform
      LayoutInflater.inflate
      1. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:333)
      2. android.view.BridgeInflater.onCreateView(BridgeInflater.java:152)
      3. android.view.LayoutInflater.onCreateView(LayoutInflater.java:717)
      4. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:785)
      5. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:222)
      6. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
      7. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
      8. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
      9. android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
      10. android.view.LayoutInflater.inflate(LayoutInflater.java:492)
      10 frames
    12. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.bars.CustomBar.<init>(CustomBar.java:95)
      2. com.android.layoutlib.bridge.bars.NavigationBar.<init>(NavigationBar.java:52)
      3. com.android.layoutlib.bridge.bars.NavigationBar.<init>(NavigationBar.java:46)
      4. com.android.layoutlib.bridge.impl.Layout.createNavBar(Layout.java:281)
      5. com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:137)
      6. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:301)
      7. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
      7 frames
    13. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
      1 frame
    14. 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
    15. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
      1 frame
    16. 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