Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange CannotWriteArchetype error. #382

Closed
kakoeimon opened this issue Aug 28, 2020 · 3 comments
Closed

Strange CannotWriteArchetype error. #382

kakoeimon opened this issue Aug 28, 2020 · 3 comments
Labels
A-ECS Entities, components, systems, and events C-Bug An unexpected or incorrect behavior

Comments

@kakoeimon
Copy link

kakoeimon commented Aug 28, 2020

I cannot reproduce this error so I will share my project here.
I was changing irrelevant parts of my project when this error came into existance.
Edit: I deleted and closed the issue cause the error was from my misuse of Entity and the misunderstanfing of archetype ecs.

@GabCampbell GabCampbell added the C-Bug An unexpected or incorrect behavior label Aug 29, 2020
@GabCampbell
Copy link
Contributor

Hey thanks for raising that issue. Can you paste some of the key parts of the code so that people can view what is going on without necessarily having to open stuff in their text editors?

@BoxyUwU
Copy link
Member

BoxyUwU commented Aug 29, 2020

Building with #383 seems to fix this or at least give a different error:

thread 'main' panicked at 'called Result::unwrap() on an Err value: NoSuchEntity'

which is caused by despawning the same entity twice, once that's fixed everything seems to work fine. (note that fixing the NoSuchEntity error and then trying to build without #383 still gives the old CannotWriteArchetype error)

I don't know what's causing the CannotWriteArchetype error so it's possible the PR is just making code work that shouldn't, although it's also possible that it just fixes the bug x)

edit: #383 is merged now so when building this on master the error should be gone :D

@karroffel karroffel added the A-ECS Entities, components, systems, and events label Aug 30, 2020
@kakoeimon
Copy link
Author

I close the issue and deleted it cause it was misleading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

No branches or pull requests

4 participants