Bug 2003120

Summary: CI: Uncaught error with ResizeObserver on operand details page
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, yapei
Target Milestone: ---   
Target Release: 4.10.0   
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: 2022-03-10 16:09:11 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:
Bug Depends On:    
Bug Blocks: 2040291    
Attachments:
Description Flags
Screenshot none

Description Samuel Padgett 2021-09-10 12:25:57 UTC
Created attachment 1822110 [details]
Screenshot

It looks like we're occasionally seeing an error with ResizeObserver in CI on the CSV details page. This could be related to https://github.com/openshift/console/pull/9929.

https://search.ci.openshift.org/?search=Cannot+read+property+%27firstChild%27&maxAge=48h&context=1&type=bug%2Bjunit&name=&excludeName=&maxMatches=5&maxBytes=20971520&groupBy=job

AssertionError: unhandled error: Uncaught TypeError: Cannot read property 'firstChild' of null TypeError: Cannot read property 'firstChild' of null
    at ResizeObserver.<anonymous> (https://console-openshift-console.apps.ci-op-iw0iz331-75d12.**********************/static/operator-hub-chunk-c762bf09078f229b2014.min.js:1:105875): expected false to be true

One failure:

https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/batch/pull-ci-openshift-console-master-e2e-gcp-console/1436011339775479808

Comment 2 Samuel Padgett 2021-09-10 13:32:03 UTC
Debugging this, I also see the following error in the JS console:

> unhandled error: ResizeObserver loop limit exceeded

It looks like we're resizing the frame, which triggers a resize event, which resizes the frame, etc.

https://github.com/openshift/console/pull/9929/files#r706183601

Comment 7 Yanping Zhang 2021-09-26 01:57:10 UTC
Search log in jobs agains, there is no error " Uncaught TypeError: Cannot read property 'firstChild' of null" now:
https://search.ci.openshift.org/?search=Cannot+read+property+%27firstChild%27&maxAge=48h&context=1&type=bug%2Bjunit&name=&excludeName=&maxMatches=5&maxBytes=20971520&groupBy=job
Also check on js console from cluster with payload 4.10.0-0.nightly-2021-09-23-210724, there is no "unhandled error: ResizeObserver loop limit exceeded" now.
The bug is fixed.

Comment 11 errata-xmlrpc 2022-03-10 16:09:11 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056