Skip to content

Filament crashes on destroy after updating to 2.3.1 #646

@IuliiaSQM

Description

@IuliiaSQM

Description:
After updating to v2.3.1, the app crashes with a native SIGABRT when the SceneView is disposed in Jetpack Compose.

Error:
Precondition in destroy:1262
reason: destroying MaterialInstance "Opaque Colored" which is still in use by Renderable (entity=3, instance=1, index=0)
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 15917

Usage:

@Composable
private fun SceneView(
    modifier: Modifier,
    engine: Engine,
    view: View,
    modelLoader: ModelLoader,
    cameraNode: CameraNode,
    childNodes: List<Node>,
    onFrame: () -> Unit,
) {
    Scene(
        modifier = modifier.pointerInteropFilter { true },
        view = view,
        engine = engine,
        isOpaque = true,
        modelLoader = modelLoader,
        cameraNode = cameraNode,
        childNodes = childNodes,
        onFrame = { onFrame() },
    )
}

Previous version 2.3.0 works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions