-
Notifications
You must be signed in to change notification settings - Fork 28
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 #92
Comments
Could you test this version? This should fix the problem, although I still have to look into the DataPoints, not sure if those are released as well |
Update: Same link now links to version that will also release datapoints if they are there. It uses https://apidocs.mendix.com/6/client/mx.data.html and is done in uninitialize. It checks if |
Hi Jelte, We've given the fix a try, and it seems we have only part of the solution. The cache is cleared when the user signs out of the app, which is good, but it is not cleared when they leave the page. We believe the datapoints, datasets and chart objects should be cleared when the user leaves the page where they generated said charts. |
What do you mean with 'cleared'? As in, this should be cleared in the backend? If that's the case, this should be fixed by my fix, using If it is indeed back-end, we have to check it with R&D, because this is the only viable solution that I can think of. |
Got some other feedback that this doesn't solve the issue yet (keeping objects in the cache), which seems strange. Next thing I am going to try is doing a |
Has this been addressed? It doesn't look like it has been resolved on our end. |
Hi Jelte - anything new to report here? We are running into big issues. |
Well I still haven't found out what the problem is. We are releasing all objects in the widget, I double checked. This might be an issue R&D has to investigate, because I'm running out of options here |
I did some intensive investigation and I conclude that this is not an issue with the widget itself. Yes, objects weren't released in previous versions of the widget, which is bad practice, so it seems. That's why we introduce Did this solve the problem in the test-project (GC-Test on Sprintr)? No. This was created in Mendix 5.21.5. I checked the issue in our own test-project and objects were kept in the cache. But, then I decided to open our test-project in Mx 6.4.1. The non-persistent objects are not kept in cache when To solve the problem, the options are limited:
That's all I can say about this issue. I know this will not solve the problem in Mendix 5, but that's not something I can do. What I will do is this: introduce an |
Suggestion added to 3.6.0 |
We are using Mx 6.10.3, and the issue persists. |
Every object that gets into the widget, is released upon |
Out of curiosity, two things you could try (might not make sense, but could help):
As far as I know I have everything covered in the widget to release the objects. This would mean that there is something else wrong with the logic in your project. Contact Support, I think we'll need access to the project to see where the problem occurs. It can't be this widget, because the issue was resolved in our own test-project. |
Hello,
It appears a recent version of the widget results in a large memory leak. As I am sure you can imagine, that has caused all sorts of performance related issues for us. We utilize temporary objects in conjunction with this widget, but it seems that the temporary objects are not actually temporary.
I've attached a couple screenshots to show you what we are seeing within our app. We have also brought this up to Mx and they confirmed our suspicion, that the chartjs widget is causing a memory leak. Our contact at Mx was sure this is only fixable within the widget itself.
Can you take a look?
The text was updated successfully, but these errors were encountered: