SceneView / sceneview-android

SceneView is a 3D and AR Android Composable and View with Google Filament and ARCore. This is a Sceneform replacement in Kotlin
Apache License 2.0
849 stars 161 forks source link

Couldn't create Engine #519

Closed zonda-alias closed 2 months ago

zonda-alias commented 5 months ago

Logs eglChooseConfig failed with EGL_BAD_ATTRIBUTE 2024-06-04 17:47:34.464 7261-7261 AndroidRuntime io....ew.sample.modelviewer.compose D Shutting down VM 2024-06-04 17:47:34.481 7261-7261 AndroidRuntime io....ew.sample.modelviewer.compose E FATAL EXCEPTION: main Process: io.github.sceneview.sample.modelviewer.compose, PID: 7261 java.lang.IllegalStateException: Couldn't create Engine at com.google.android.filament.Engine$Builder.build(Engine.java:254) at com.google.android.filament.Engine.create(Engine.java:483) at io.github.sceneview.SceneView$Companion.createEngine(SceneView.kt:940) at io.github.sceneview.SceneKt$rememberEngine$2.invoke(Scene.kt:259) at io.github.sceneview.SceneKt$rememberEngine$2.invoke(Scene.kt:259) at io.github.sceneview.SceneKt.rememberEngine(Scene.kt:262) at io.github.sceneview.sample.modelviewer.compose.ComposableSingletons$MainActivityKt$lambda-2$1.invoke(MainActivity.kt:50) at io.github.sceneview.sample.modelviewer.compose.ComposableSingletons$MainActivityKt$lambda-2$1.invoke(MainActivity.kt:48) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:248) at androidx.compose.material3.TextKt.ProvideTextStyle(Text.kt:352) at androidx.compose.material3.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:72) at androidx.compose.material3.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:71) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228) at androidx.compose.material3.MaterialThemeKt.MaterialTheme(MaterialTheme.kt:64) at io.github.sceneview.sample.ThemeKt.SceneviewTheme(Theme.kt:168) at io.github.sceneview.sample.modelviewer.compose.ComposableSingletons$MainActivityKt$lambda-3$1.invoke(MainActivity.kt:48) at io.github.sceneview.sample.modelviewer.compose.ComposableSingletons$MainActivityKt$lambda-3$1.invoke(MainActivity.kt:47) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.ui.platform.ComposeView.Content(ComposeView.android.kt:428) at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:252) at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:251) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228) at androidx.compose.ui.platform.CompositionLocalsKt.ProvideCommonCompositionLocals(CompositionLocals.kt:186) at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:119) at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:118) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:228) at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.ProvideAndroidCompositionLocals(AndroidCompositionLocals.android.kt:110) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$2.invoke(Wrapper.android.kt:139) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$2.invoke(Wrapper.android.kt:138) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) 2024-06-04 17:47:34.494 7261-7261 AndroidRuntime io....ew.sample.modelviewer.compose E at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:248) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:138) at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:123) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:109) at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:35) at androidx.compose.runtime.ActualJvm_jvmKt.invokeComposable(ActualJvm.jvm.kt:90) at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:3302) at androidx.compose.runtime.ComposerImpl.composeContent$runtime_release(Composer.kt:3235) at androidx.compose.runtime.CompositionImpl.composeContent(Composition.kt:725) at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:1071) at androidx.compose.runtime.CompositionImpl.composeInitial(Composition.kt:633) at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:619) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:123) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:114) at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:1289) at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:114) at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:164) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.kt:322) at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.kt:199) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:121) at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:114) at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1364) at android.view.View.dispatchAttachedToWindow(View.java:18370) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3406) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3413) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3413) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3413) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3413) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1774) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1472) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7229) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:952) at android.view.Choreographer.doCallbacks(Choreographer.java:761) at android.view.Choreographer.doFrame(Choreographer.java:696) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:938) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6722) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 2024-06-04 17:47:34.522 7261-7261 Process io....ew.sample.modelviewer.compose I Sending signal. PID: 7261 SIG: 9 2024-06-04 17:47:34.570 1963-2034 InputDispatcher system_server E channel '2680446 io.github.sceneview.sample.modelviewer.compose/io.github.sceneview.sample.modelviewer.compose.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

OS: [Android Pie 9.0]

github-actions[bot] commented 2 months ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 months ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.