Bug 2003120 - CI: Uncaught error with ResizeObserver on operand details page
Summary: CI: Uncaught error with ResizeObserver on operand details page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.0
Assignee: Jon Jackson
QA Contact: Yanping Zhang
URL:
Whiteboard:
Depends On:
Blocks: 2040291
TreeView+ depends on / blocked
 
Reported: 2021-09-10 12:25 UTC by Samuel Padgett
Modified: 2022-03-10 16:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:09:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (137.33 KB, image/png)
2021-09-10 12:25 UTC, Samuel Padgett
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10114 0 None open Bug 2003120: Prevent null references and "ResizeObserver loop limit exceeded" errors in IFrameMarkdownView 2021-09-21 16:06:34 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:09:58 UTC

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


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