Open nathan-de-pachtere opened 3 days ago
Hi, did you try to add a dump in your fixture / story / factory to ensure you're not facing an Infinite loop?
@nikophil Yes, already done to track where it crashes. And didn't catch any infinite loop.
And the code logic didn't change, it's working with v1.x of Zenstruck. Process not going more than 190MiB of MEM USAGE.
Hi,
I’m encountering an issue with my fixtures while using zenstruck/foundry. I’m migrating to Symfony 7.1 and updating Zenstruck to v2. After the migration, my fixtures started crashing, even though I haven’t changed the data creation logic. Everything works fine with v1.
What I’ve tried:
Setting memory_limit to -1 ⇾
This causes my computer (32GB of memory) to crash.
Reducing the number of objects handled by my fixtures ⇾No changes.
Setting profiling: false in the Doctrine configuration ⇾No changes.
Observations:
The crash happens at the first
Story::load()
encountered in my fixtures.It’s not an immediate crash. Instead, I see my Docker container’s memory usage spike until my computer crashes.
This issue is challenging to debug. I’m happy to provide access to my private repo if that would help solve the problem.