Skip to content

[Catalog] BottomWindowInsetView render problem #4699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pubiqq opened this issue Mar 20, 2025 · 0 comments · May be fixed by #4700
Open

[Catalog] BottomWindowInsetView render problem #4699

pubiqq opened this issue Mar 20, 2025 · 0 comments · May be fixed by #4700
Assignees

Comments

@pubiqq
Copy link
Contributor

pubiqq commented Mar 20, 2025

How to reproduce:
Try to open cat_extended_fab_fragment.xml in Layout Editor (Design mode).

Result:

Render problem

java.lang.ClassCastException: class android.view.ViewRootImpl cannot be cast to class android.view.ViewGroup (android.view.ViewRootImpl and android.view.ViewGroup are in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @560adae2)
	at io.material.catalog.feature.BottomWindowInsetView.onAttachedToWindow(BottomWindowInsetView.java:53)
	at android.view.View.dispatchAttachedToWindow(View.java:22895)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3513)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3513)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3513)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3513)
	at android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:69)
	at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:361)
	at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:462)
	at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:125)
	at com.android.tools.rendering.RenderTask.createRenderSession(RenderTask.java:782)
	at com.android.tools.rendering.RenderTask.lambda$inflate$6(RenderTask.java:930)
	at com.android.tools.rendering.RenderExecutor.runAsyncActionWithTimeout$lambda$12(RenderExecutor.kt:210)
	at com.android.tools.rendering.RenderExecutor$PriorityRunnable.run(RenderExecutor.kt:327)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Material Library version: a822f4f

@pubiqq pubiqq added the bug label Mar 20, 2025
@pubiqq pubiqq linked a pull request Mar 20, 2025 that will close this issue
@paulfthomas paulfthomas self-assigned this Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants