Comments (3)
Thanks for following up on this. We are unable to see evidence of a memory leak in v31.3.2
See here for comparison:
v31.2. https://plnkr.co/edit/BMkZ7eAdb87z2luB?open=index.tsx&preview
v31.3.2 https://plnkr.co/edit/3OG0A8cnc5tSZiud?open=index.tsx
Can we please ask you to follow this sequence of steps to provide us with more information in regards to this:
- Either use the plunker provided above or one of your one
- Open console and navigate to memory tab
- Take several heap snapshots over a period of time to show that show potential memory leak
- Save the profile by downloading it from the console
- Please send us the file of snapshots showcasing the observed memory leak
This would be the best way forward for us to investigate this further.
Much appreciated!
Kind regards,
Zoheil
from ag-grid.
Hi Zoheil,
Thank you for checking this issue out. I noticed three things about your Plunker links:
- both use 31.2.0 Ag Grid, although second one should use 31.3.2 if I understood you correctly
- none of them uses React version used in original issue #7854 (React 18.2.0)
- none of them treats issue mentioned in original issue #7854 - update of data with applyTransactionAsync
I analyzed memory with your Plunker examples (which use 31.2.0 AgGrid). Since it had memory leaks (measured about 6 minutes timespan), I created a fork of your code with updated versions (AgGrid 31.3.2 and react 18.2.0). After measuring memory in 10 minutes span, it seems that memory is managed well. So manipulating rowData via AgGrid component prop is probably OK.
Back to original issue, applyTransactionAsync, I created a fork of my previous Plunker, mentioned in #7854 : https://plnkr.co/edit/d3MII5h8YswsuN3N?open=index.tsx
It uses AgGrid v31.3.2 now. Issue with memory is still reproducible. Here are links to 4 memory snapshots, made in 8 minute span (files are ~70MB each):
https://drive.google.com/file/d/1R4JAf3wjo7IJUYQy0aZ86QoiEmT7KE4i/view?usp=sharing
https://drive.google.com/file/d/1gtE2lNu02sjPQKsdcaJvbU3cTEJ_Ru66/view?usp=sharing
https://drive.google.com/file/d/1ONTT_uZ0WhaH713LMKi542Dm3RT1TjFr/view?usp=sharing
https://drive.google.com/file/d/18l6cUm_akWT_TPLoS22W0vdU6Es9K6_l/view?usp=sharing
All measurements I've done were made by taking heap snapshots of "pnklr.co:Main" Javascript VM instance. During the time of measurement, I didn't navigate from selected browser tab, nor did I change viewed file from Plunker file section, located on the left. All browser extensions have been turned off.
from ag-grid.
Hello @nikolastojanovictt,
Thank you for your thorough review and comment.
I have raised another item in our backlog to specifically look at the scenario you've described. We appreciate you forking and providing a most up to date plunker as well.
We have added this requirement to our backlog and we are tracking it with the following reference: AG-11669
We have no timeline for this at the moment, but this can still be picked up by our team when they're making modifications to this functional area of AG Grid. Please use the functionality currently provided by AG Grid until this is delivered at a later point.
See whether this item will be in the next release by checking the NEXT RELEASE checkbox on the product pipeline page:
https://www.ag-grid.com/ag-grid-pipeline/
The best way to track this is to sign up for AG Grid new release notifications using the instructions here. This way you'll know as soon as a new version is out and you can check whether this specific item was implemented on the changelog page.
Thanks again for bringing this up with us.
Kind regards,
Zoheil
from ag-grid.
Related Issues (20)
- RIP to Niall Crosby
- Pinned columns are automatically swapped as you narrow the window HOT 1
- AgGridReact Pagination Dropdown Overlapping with Table - CSS Z-index Not Effective
- Add export of font styles to the package HOT 1
- Accessibility: ARIA widget required owned element HOT 1
- Background Loader Issue with Multiple Popups After Upgrading to 31.2.1 Version HOT 1
- Custom Filter Flyout Not Moving with Column When Grid is Scrolled Horizontally HOT 1
- pagination with cache
- Add pagination to scrolling loads
- The animation for the rows is not working correctly. HOT 1
- agDateColumnFilter: filterPlaceholder not applied HOT 1
- Can't import the named export 'AgPromise' from non EcmaScript module (only default export is available) HOT 1
- Flex property not inherited from column defs when using initialState HOT 1
- Number filtering not working when using valueGetter HOT 3
- Tree data cannot edit parent level!v32.0.2 HOT 1
- Nested data for Tree data HOT 3
- Vite/Rollup build warning for ag-grid-vue3 version 32.x
- Initialising a license key in safari <16.5 throws a regexp error HOT 1
- Event.stopPropagation stops working after ag-grid upgrade HOT 1
- Columns Tool Panel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ag-grid.