Skip to content

Conversation

@AtCliffUnderline
Copy link

Due to every transformer being filled with the current scope, there is a reference recursion.

Transformer -> Scope -> Resource -> Transformer -> Scope...

This causes memory leaks in daemons and workers, I guess because GC is not able to collect these cyclomatic references; even running gc_collect_cycles after each job is not helping.

I think this is not breaking change, but kind of messy. Begging for comments and help with this issue

@gam6itko
Copy link

Hello. I also need to run fractal in long-lived applications. My opinion is that the transformer should be immutable and the method setCurrentScope should be removed.

@gam6itko
Copy link

Hey @AtCliffUnderline look at my solution of this issue. I hope it will help you to avoid memory leaks

#569

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants