bevyengine / bevyengine/bevy

Dead assert for !Send data in run conditions

Open
#7,842 0 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Code-Quality
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

I want to note that this assert currently does nothing, since a system's "send-ness" only gets set when it's initialized. This assert never gets triggered, so instead a panic occurs later on when the system actually tries to access a `NonSend` resource from the wrong thread. I'm not sure what the best solution to this is, but it's probably worth opening an issue about it.

_Originally posted by @JoJoJet in https://github.com/bevyengine/bevy/pull/7841#discussion_r1119537179_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.