-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Memory leak #329
Comments
@Salaah01 Thanks for submitting this issue! A little more info would be very helpful to see if this particular scenario can be reproduced.
Is there any chance you can share the view code? (or a simplified copy of the code that calls Also, to clarify, does the process simply stall indefinitely? Or are you getting some sort of exception / stack trace? Thanks in advance. |
@Salaah01 just by upgrading bakery to a new version, doesn't enforces it as being the root of your memory leak. Actually, your test crashes at your Anyway, as suggested by @timjklein36, can you share the traceback with us? Another suggestion is to run this test with the memory leak with a python profiler tool so you can check where the memory is leaking indeed. |
I am going to close the issue, as there is no new input. |
Describe the issue
I have come across a memory leak when running a particular test. We were using version 1.6.0 of model_bakery, and only when I reverted to version 1.0.0 was the issue resolved. I have tested all other versions including 1.1.0 and the issue persists.
To Reproduce
I am not exactly sure what is causing this and so I will try to best describe the scenario.
Create a model with 2 m2m fields which reference the same model:
We also have a form where these fields can be edited where the user is able to pick any item from
ModelB
to be the value fortype
andsubtype
.We have a simple test case where all we do something similar to the following:
The test crashes on
response = client.get(url)
due to a memory leak. It seems usual that this is related to model_bakery, however, downgrading to version 1.0.0 fixed the issue.Expected behavior
For tests to pass/fail and not to instead crash.
Versions
The text was updated successfully, but these errors were encountered: