SceneView / sceneform-android

Sceneform Maintained is an ARCore Android SDK with Google Filament as 3D engine. This is the continuation of the archived Sceneform
https://sceneview.github.io/sceneform-android/
Apache License 2.0
633 stars 145 forks source link

java.lang.IllegalStateException: Calling method on destroyed View when i have scene inside horizontalpager #459

Closed fadiselim closed 9 months ago

fadiselim commented 9 months ago

I am trying to add Scene inside a horizontal pager, but i get this crash when i go back forth in the horizontal pager in compose

java.lang.IllegalStateException: Calling method on destroyed View

Here is my code Sample:

        HorizontalPager(state = pagerState) { page ->
            // Our page content
            Box(modifier = Modifier
                .background(Color.DarkGray)
                .fillMaxSize()) {
                Scene(
            )
} 

Thank you in advance