Bug 2029797 - Uncaught exception: ResizeObserver loop limit exceeded
Summary: Uncaught exception: ResizeObserver loop limit exceeded
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Robb Hamilton
QA Contact: Yadan Pei
Depends On:
TreeView+ depends on / blocked
Reported: 2021-12-07 10:32 UTC by Udi Kalifon
Modified: 2022-08-10 10:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Last Closed: 2022-08-10 10:40:31 UTC
Target Upstream Version:

Attachments (Terms of Use)
Exception in the Firefox console (341.62 KB, image/png)
2021-12-07 10:32 UTC, Udi Kalifon
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11696 0 None open Bug 2029797: if linkTo is false, do not attempt to get path 2022-06-13 18:16:53 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:40:47 UTC

Description Udi Kalifon 2021-12-07 10:32:19 UTC
Created attachment 1845050 [details]
Exception in the Firefox console

Description of problem:
When going to OperatorHub in the console, and clicking on one of the operators to install it - you get an exception in the browser console. See attached screenshot. This in not noticible to a user, but would fail an automatic test in Cypress because uncaught exceptions in the application under test automatically fail the test.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Log in to the UI
2. Make sure you have the browser console open (F12)
3. Navigate to Operators -> OperatorHub
4. Search for "Special Resource Operator"
5. Click on the RedHat-provided operator (not the community one)

Actual results:
An exception is logged

Expected results:
No exceptions

Additional info:
When running with Cypress, you can determine that the exception is: "ResizeObserver loop limit exceeded". This is not visible in the console on a regular browser session, and I'm relying on Cypress for this information.

Comment 1 David Taylor 2021-12-07 15:49:12 UTC
Hi, we recently introduced the ability for our Cypress tests to catch certain exceptions and continue on with tests:

You can probably update to:

Cypress.on('uncaught:exception', (err) => {
  if (err.message.includes('> Unauthorized') || err.message.includes('ResizeObserver loop limit exceeded')) {
    console.error('Cypress caught "> Unauthorized exception", continuing tests', err);
    return false; // test continues
  return true; // test fails

Comment 2 David Taylor 2021-12-13 21:05:59 UTC
Reassigning to "Special Resource Operator" component team as I don't see this exception installing other operators from OpenShift console UI.

Comment 4 Samuel Padgett 2022-01-24 13:01:30 UTC
This is a legitimate problem, and the runtime error is in the console code. Regardless of what's in the CSV, the console should not have these errors, and we shouldn't be ignoring the exception in our tests. Moving back to the management console component.

Dave, do you mind opening a BZ to remove the special case for the unauthorized exceptions as well? Those exceptions should be caught. We should avoid putting in special cases for errors like this and make sure we have a BZ tracking when we do.

Comment 5 Robb Hamilton 2022-06-13 19:43:31 UTC
I am unable to reproduce the bug as written on a fresh 4.9.0-0.nightly-2022-06-08-150705 or 4.11.0-0.nightly-2022-06-06-201913 cluster.  It's possible the original bug as written no longer exists?

I am, however, able to produce a console error [1] when clicking the `Install` button inside the `Special Resource Operator` modal.  I've put up a fix to address this different error in https://github.com/openshift/console/pull/11696.  

[1] 'resourcePath: no model for "sro.openshift.io~v1beta1~SpecialResource"'

Comment 7 Udi Kalifon 2022-06-24 13:28:14 UTC
Verified on 4.11.0-fc.0

Comment 9 errata-xmlrpc 2022-08-10 10:40:31 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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.


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