Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0050727 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] POS | major | have not tried | 2022-11-03 23:41 | 2022-11-07 16:37 | |||
Reporter | AugustoMauch | View Status | public | |||||
Assigned To | Retail | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 23Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | merged | |||||||
Review Assigned To | jarmendariz | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0050727: Memory leak in Carousel.jsx - DOM event listeners are not being removed | |||||||
Description | The Carousel.jsx component has a memory leak because it is registering DOM events on a useEffect hook but is never unregistering them. The useEffect hook should return a function that will be invoked when unmounting the component and that will unregister the DOM events | |||||||
Steps To Reproduce | See the code here [1], it is adding two event listeners but never removing them. It should removee them like it is done here [2] [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/components/Carousel/Carousel.jsx#L66 [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/components/DrawerMenu/DrawerMenuGroup.jsx#L250 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0142891) hgbot (developer) 2022-11-03 23:44 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/891 [^] |
(0143170) hgbot (developer) 2022-11-07 16:34 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/891 [^] |
(0143171) hgbot (developer) 2022-11-07 16:34 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^] Changeset: a2f02c8266bcb6d277f50a5b1ac12339da13fb89 Author: Augusto Mauch <augusto.mauch@openbravo.com> Date: 07-11-2022 15:33:56 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/a2f02c8266bcb6d277f50a5b1ac12339da13fb89 [^] Fixes ISSUE-50727: Avoids memory leak in Carousel.jsx by unregistering event listeners --- M web-jspack/org.openbravo.core2/src/components/BaseKeymap/hooks/usePagination.js M web-jspack/org.openbravo.core2/src/components/Carousel/Carousel.jsx --- |
![]() |
|||
Date Modified | Username | Field | Change |
2022-11-03 23:41 | AugustoMauch | New Issue | |
2022-11-03 23:41 | AugustoMauch | Assigned To | => Retail |
2022-11-03 23:41 | AugustoMauch | OBNetwork customer | => No |
2022-11-03 23:41 | AugustoMauch | Triggers an Emergency Pack | => No |
2022-11-03 23:41 | AugustoMauch | Status | new => scheduled |
2022-11-03 23:44 | hgbot | Merge Request Status | => open |
2022-11-03 23:44 | hgbot | Note Added: 0142891 | |
2022-11-07 16:00 | guilleaer | Status | scheduled => acknowledged |
2022-11-07 16:00 | guilleaer | Status | acknowledged => scheduled |
2022-11-07 16:34 | hgbot | Resolution | open => fixed |
2022-11-07 16:34 | hgbot | Status | scheduled => resolved |
2022-11-07 16:34 | hgbot | Merge Request Status | open => merged |
2022-11-07 16:34 | hgbot | Note Added: 0143170 | |
2022-11-07 16:34 | hgbot | Fixed in Version | => 23Q1 |
2022-11-07 16:34 | hgbot | Note Added: 0143171 | |
2022-11-07 16:37 | jarmendariz | Review Assigned To | => jarmendariz |
2022-11-07 16:37 | jarmendariz | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |