Skip to content

Decodable example panics with assertion failed: component_info.is_send_and_sync #7260

Closed
@rparrett

Description

@rparrett

Bevy version

0df67cd

caught by https://rparrett.github.io/prototype_bevy_example_runner/

Relevant system information

AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
SystemInfo { os: "MacOS 13.1 ", kernel: "22.2.0", cpu: "Apple M1 Max", core_count: "10", memory: "64.0 GiB" }

What you did

cargo run --example decodable

What went wrong

thread 'main' panicked at 'assertion failed: component_info.is_send_and_sync()', /Users/robparrett/src/bevy/crates/bevy_ecs/src/storage/resource.rs:266:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The ComponentInfo that it's choking on is

ComponentInfo {
    id: ComponentId(110),
    descriptor: ComponentDescriptor {
        name: "bevy_audio::audio_output::AudioOutput<decodable::SineAudio>",
        storage_type: Table,
        is_send_and_sync: false,
        type_id: Some(TypeId { t: 3483996255914330560 }),
        layout: Layout { size: 8, align: 8 (1 << 3) }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AudioSounds playback and modificationA-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examples

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions