You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a really finicky one, but I finally got a usable repro. As far as I can tell, the number of entities is irrelevant, and the number of components is irrelevant; it's entirely based on 30-31 different components first existing in the World.
With Sourcegen, those components can be instead simply located in a [Query], either in the attribute or as a parameter to the query method. Then, the construction of the enclosing class triggers the component types to be added to the world.
One aspect to perhaps also test is to see if it breaks if the number of components added is 62 or 63. But I didn't try that.
You need to right click and run each test case individually, like so:
I don't know why the behavior changes when all the tests are run (they either all succeed or all fail depending on if you're debugging), but that issue should be fixed before this test is added to the suite. I didn't have any luck splitting it up into other methods, either, even with Nunit's [NonParallelizable] on each method.
This is ONLY present in Arch 1.2.6.8-alpha (not 1.2.6.7); Arch.Extended isn't updated to require that package version yet. If you're running the test, you need to change the version in Arch.Relationships.csproj to fetch the correct version from Nuget.
Any ideas? I assume it has something to do with an allocation failure on some 33rd bit somewhere...?
The text was updated successfully, but these errors were encountered:
This is a really finicky one, but I finally got a usable repro. As far as I can tell, the number of entities is irrelevant, and the number of components is irrelevant; it's entirely based on 30-31 different components first existing in the World.
With Sourcegen, those components can be instead simply located in a
[Query]
, either in the attribute or as a parameter to the query method. Then, the construction of the enclosing class triggers the component types to be added to the world.One aspect to perhaps also test is to see if it breaks if the number of components added is 62 or 63. But I didn't try that.
Here is a test that demonstrates the issue:
RelationshipManyComponents.zip
Two important notes:
You need to right click and run each test case individually, like so:
I don't know why the behavior changes when all the tests are run (they either all succeed or all fail depending on if you're debugging), but that issue should be fixed before this test is added to the suite. I didn't have any luck splitting it up into other methods, either, even with Nunit's
[NonParallelizable]
on each method.This is ONLY present in Arch 1.2.6.8-alpha (not 1.2.6.7); Arch.Extended isn't updated to require that package version yet. If you're running the test, you need to change the version in Arch.Relationships.csproj to fetch the correct version from Nuget.
Any ideas? I assume it has something to do with an allocation failure on some 33rd bit somewhere...?
The text was updated successfully, but these errors were encountered: