Bug 1748286 - Warnings about memory leaks from reactjs
Summary: Warnings about memory leaks from reactjs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 11.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DS11.1
: dirsrv-11.1
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-03 09:56 UTC by Viktor Ashirov
Modified: 2020-04-29 08:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-29 08:04:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1961 0 None None None 2020-04-29 08:04:48 UTC

Description Viktor Ashirov 2019-09-03 09:56:52 UTC
Description of problem:
While using console I see from time to time following messages in the browser console:
react-dom.development.js:506 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.                                                      


Version-Release number of selected component (if applicable):
389-ds-base-1.4.1.6-2.module+el8dsrv+3912+aa2ce078.x86_64


How reproducible:
non-deterministic

Expected results:
No memory leaks in the web app


Additional info:
I'm attaching a log from console that I used for a few tests.

Comment 2 mreynolds 2019-09-04 18:41:06 UTC
This happens when you click on different components before they are done rendering.  So if you click around between tabs really fast you will see these errors.   We need better handling of component state and not allow rendering of a new comp until the first one is complete.

Comment 3 mreynolds 2020-02-13 18:31:02 UTC
Most of these timing issues have been addressed now that we are using react.

Comment 6 Viktor Ashirov 2020-04-20 12:37:27 UTC
Build tested: cockpit-389-ds-1.4.2.12-1.module+el8dsrv+6328+f04d7471.noarch

I don't see messages from comment #0 anymore, marking as VERIFIED.

Comment 8 errata-xmlrpc 2020-04-29 08:04:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1961


Note You need to log in before you can comment on or make changes to this bug.