#7 Render problem in activity_account_recovery.xml

Open
opened 3 years ago by victor.hernandez17 · 1 comments

Render problem causes navigation buttons from below to not work.

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
	at java.util.ArrayList.get(ArrayList.java:433)
	at com.android.ninepatch.NinePatchChunk.draw(NinePatchChunk.java:190)
	at com.android.ninepatch.NinePatchChunk.draw(NinePatchChunk.java:106)
	at android.graphics.BaseCanvas_Delegate$1.draw(BaseCanvas_Delegate.java:464)
	at com.android.layoutlib.bridge.impl.GcSnapshot.drawInLayer(GcSnapshot.java:697)
	at com.android.layoutlib.bridge.impl.GcSnapshot.draw(GcSnapshot.java:587)
	at android.graphics.BaseCanvas_Delegate.nDrawNinePatch(BaseCanvas_Delegate.java:461)
	at android.graphics.BaseCanvas.nDrawNinePatch(BaseCanvas.java)
	at android.graphics.BaseCanvas.drawPatch(BaseCanvas.java:307)
	at android.graphics.Canvas.drawPatch(Canvas.java:1825)
	at android.graphics.NinePatch.draw(NinePatch.java:217)
	at android.graphics.drawable.NinePatchDrawable.draw(NinePatchDrawable.java:249)
	at android.graphics.drawable.DrawableContainer.draw(DrawableContainer.java:87)
	at android.graphics.drawable.DrawableWrapper.draw(DrawableWrapper.java:240)
	at android.view.View.drawBackground(View.java:21674)
	at android.view.View.draw_Original(View.java:21435)
	at android.view.View_Delegate.draw(View_Delegate.java:56)
	at android.view.View.draw(View.java:21417)
	at android.view.View.draw_Original(View.java:21317)
	at android.view.View_Delegate.draw(View_Delegate.java:68)
	at android.view.View.draw(View.java:21089)
	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388)
	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4388)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149)
	at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:2023)
	at android.view.View.draw_Original(View.java:21446)
	at android.view.View_Delegate.draw(View_Delegate.java:56)
	at android.view.View.draw(View.java:21417)
	at android.view.View.draw_Original(View.java:21317)
	at android.view.View_Delegate.draw(View_Delegate.java:68)
	at android.view.View.draw(View.java:21089)
	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388)
	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4388)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149)
	at android.view.View.draw_Original(View.java:21315)
	at android.view.View_Delegate.draw(View_Delegate.java:68)
	at android.view.View.draw(View.java:21089)
	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388)
	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4388)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149)
	at android.view.View.draw_Original(View.java:21315)
	at android.view.View_Delegate.draw(View_Delegate.java:68)
	at android.view.View.draw(View.java:21089)
	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388)
	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65)
	at android.view.ViewGroup.drawChild(ViewGroup.java:4388)
	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149)
	at android.view.View.draw_Original(View.java:21446)
	at android.view.View_Delegate.draw(View_Delegate.java:56)
	at android.view.View.draw(View.java:21417)
	at com.android.layoutlib.bridge.impl.RenderSessionImpl.renderAndBuildResult(RenderSessionImpl.java:404)
	at com.android.layoutlib.bridge.impl.RenderSessionImpl.renderAndBuildResult(RenderSessionImpl.java:565)
	at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:425)
	at com.android.layoutlib.bridge.BridgeRenderSession.render(BridgeRenderSession.java:115)
	at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:143)
	at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:125)
	at com.android.tools.idea.rendering.RenderTask.lambda$null$11(RenderTask.java:966)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Render problem causes navigation buttons from below to not work. ``` java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at com.android.ninepatch.NinePatchChunk.draw(NinePatchChunk.java:190) at com.android.ninepatch.NinePatchChunk.draw(NinePatchChunk.java:106) at android.graphics.BaseCanvas_Delegate$1.draw(BaseCanvas_Delegate.java:464) at com.android.layoutlib.bridge.impl.GcSnapshot.drawInLayer(GcSnapshot.java:697) at com.android.layoutlib.bridge.impl.GcSnapshot.draw(GcSnapshot.java:587) at android.graphics.BaseCanvas_Delegate.nDrawNinePatch(BaseCanvas_Delegate.java:461) at android.graphics.BaseCanvas.nDrawNinePatch(BaseCanvas.java) at android.graphics.BaseCanvas.drawPatch(BaseCanvas.java:307) at android.graphics.Canvas.drawPatch(Canvas.java:1825) at android.graphics.NinePatch.draw(NinePatch.java:217) at android.graphics.drawable.NinePatchDrawable.draw(NinePatchDrawable.java:249) at android.graphics.drawable.DrawableContainer.draw(DrawableContainer.java:87) at android.graphics.drawable.DrawableWrapper.draw(DrawableWrapper.java:240) at android.view.View.drawBackground(View.java:21674) at android.view.View.draw_Original(View.java:21435) at android.view.View_Delegate.draw(View_Delegate.java:56) at android.view.View.draw(View.java:21417) at android.view.View.draw_Original(View.java:21317) at android.view.View_Delegate.draw(View_Delegate.java:68) at android.view.View.draw(View.java:21089) at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388) at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:2023) at android.view.View.draw_Original(View.java:21446) at android.view.View_Delegate.draw(View_Delegate.java:56) at android.view.View.draw(View.java:21417) at android.view.View.draw_Original(View.java:21317) at android.view.View_Delegate.draw(View_Delegate.java:68) at android.view.View.draw(View.java:21089) at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388) at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at android.view.View.draw_Original(View.java:21315) at android.view.View_Delegate.draw(View_Delegate.java:68) at android.view.View.draw(View.java:21089) at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388) at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at android.view.View.draw_Original(View.java:21315) at android.view.View_Delegate.draw(View_Delegate.java:68) at android.view.View.draw(View.java:21089) at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4388) at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:65) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at android.view.View.draw_Original(View.java:21446) at android.view.View_Delegate.draw(View_Delegate.java:56) at android.view.View.draw(View.java:21417) at com.android.layoutlib.bridge.impl.RenderSessionImpl.renderAndBuildResult(RenderSessionImpl.java:404) at com.android.layoutlib.bridge.impl.RenderSessionImpl.renderAndBuildResult(RenderSessionImpl.java:565) at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:425) at com.android.layoutlib.bridge.BridgeRenderSession.render(BridgeRenderSession.java:115) at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:143) at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:125) at com.android.tools.idea.rendering.RenderTask.lambda$null$11(RenderTask.java:966) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) ```
victor.hernandez17 added the
bug
label 3 years ago
victor.hernandez17 commented 3 years ago
Collaborator

Upgrading to Android Studio 4.1.1 (which includes new rendering engine) makes the error go away while using Layout Inspector.

Upgrading to `Android Studio 4.1.1` (which includes new rendering engine) makes the error go away while using Layout Inspector.
victor.hernandez17 removed the
bug
label 3 years ago
victor.hernandez17 added the
warning
label 3 years ago
Sign in to join this conversation.
Loading…
Cancel
Save
There is no content yet.