Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1748286

Summary: Warnings about memory leaks from reactjs
Product: Red Hat Directory Server Reporter: Viktor Ashirov <vashirov>
Component: cockpit-389-dsAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 11.0CC: lkrispen, mhonek, pasik, spichugi, tbordaz
Target Milestone: DS11.1   
Target Release: dirsrv-11.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-29 08:04:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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