RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1751121 - Various JS WARNING from gnome-shell
Summary: Various JS WARNING from gnome-shell
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-shell
Version: 7.6
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Florian Müllner
QA Contact: Desktop QE
URL:
Whiteboard:
: 1845484 1845487 1845490 1883641 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-11 08:44 UTC by Yaniv Ferszt
Modified: 2024-12-20 18:53 UTC (History)
10 users (show)

Fixed In Version: gnome-shell-3.28.3-29.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 20:21:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5543701 0 None None None 2023-06-02 12:12:01 UTC
Red Hat Product Errata RHBA-2020:3987 0 None None None 2020-09-29 20:22:23 UTC

Internal Links: 1845660

Description Yaniv Ferszt 2019-09-11 08:44:49 UTC
Description of problem:
* Various JS WARNING from gnome-shell
on all RHEL 7.5 and 7.6 systems I see the JS warnings from gnome-shell after every boot.
8<----------8<----------8<----------
# journalctl -b | grep "JS WARNING"
Aug 09 10:10:06 HOSTNAME gnome-shell[1907]: JS WARNING: [resource:///org/gnome/shell/ui/main.js 315]: reference to undefined property "MetaStage"
Aug 09 10:10:06 HOSTNAME gnome-shell[1907]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 221]: reference to undefined property "MetaWindowGroup"
Aug 09 10:10:06 HOSTNAME gnome-shell[1907]: JS WARNING: [resource:///org/gnome/shell/ui/osdMonitorLabeler.js 59]: reference to undefined property "MetaDBusDisplayConfigSkeleton"
Aug 09 10:10:07 HOSTNAME gnome-shell[1907]: JS WARNING: [resource:///org/gnome/shell/ui/slider.js 38]: reference to undefined property "CallyActor"
Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined property "MetaWindowX11"
Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING: [resource:///org/gnome/shell/gdm/realmd.js 130]: reference to undefined property "_loginFormat"
Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING: [resource:///org/gnome/shell/gdm/realmd.js 142]: reference to undefined property "_loginFormat"
8<----------8<----------8<----------

Version-Release number of selected component (if applicable):
[yf@cb-rhel7 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.6 (Maipo)

[yf@cb-rhel7 ~]$ rpm -qa | grep gnome-shell
gnome-shell-3.28.3-6.el7.x86_64



How reproducible:
1) Installed OS with GUI from the RHEL 7.6 ISO

Actual results:
1) Open a terminal
2)
[yf@cb-rhel7 ~]$ journalctl -b | grep "JS WARNING"
Sep 11 09:35:07 cb-rhel7.6 gnome-shell[4157]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined property "MetaWindowX11"
Sep 11 09:47:15 cb-rhel7.6 gnome-shell[4959]: JS WARNING: [resource:///org/gnome/shell/ui/popupMenu.js 717]: reference to undefined property "_delegate"



Expected results:
No "JS WARNING" in "journalctl -b | grep "JS WARNING""

Comment 3 Yaniv Ferszt 2019-09-11 09:43:06 UTC
System update and tested again.

[yf@cb-rhel7 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.7 (Maipo)

[yf@cb-rhel7 ~]$ rpm -qa | grep gnome-shell
gnome-shell-3.28.3-11.el7.x86_64

[yf@cb-rhel7 ~]$ journalctl -b | grep "JS WARNING"
Sep 11 11:40:13 cb-rhel7.6 gnome-shell[1924]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined property "MetaWindowX11"

RESULT:
There are still "JS WARNING's"

Comment 4 Florian Müllner 2020-05-26 18:04:00 UTC
(In reply to Yaniv Ferszt from comment #3)

> [yf@cb-rhel7 ~]$ journalctl -b | grep "JS WARNING"
> Sep 11 11:40:13 cb-rhel7.6 gnome-shell[1924]: JS WARNING:
> [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined
> property "MetaWindowX11"

This cannot be fixed in gnome-shell.

The issue is that only the "MetaWindow" type is introspected and public, but none of the subtypes that are actually used by windows ("MetaWindowX11", "MetaWindowWayland", "MetaWindowXwayland").

Either mutter needs to expose those types to introspection, or gjs needs changing to avoid the warning.

Comment 9 Florian Müllner 2020-06-09 18:34:22 UTC
*** Bug 1845490 has been marked as a duplicate of this bug. ***

Comment 10 Florian Müllner 2020-06-09 18:34:26 UTC
*** Bug 1845487 has been marked as a duplicate of this bug. ***

Comment 11 Florian Müllner 2020-06-09 18:36:31 UTC
*** Bug 1845484 has been marked as a duplicate of this bug. ***

Comment 14 Florian Müllner 2020-06-14 13:22:34 UTC
> Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING:
> [resource:///org/gnome/shell/gdm/realmd.js 130]: reference to undefined
> property "_loginFormat"
> Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING:
> [resource:///org/gnome/shell/gdm/realmd.js 142]: reference to undefined
> property "_loginFormat"

gnome-shell-3.28.3-28.el7 fixes those and all "regular" JS warnings that were mentioned in the bugs marked as duplicates.

However as mentioned earlier, the type of warnings that are triggered by encountering a non-introspected subtype like this one:

> Aug 09 10:10:08 HOSTNAME gnome-shell[1907]: JS WARNING:
> [resource:///org/gnome/shell/ui/layout.js 29]: reference to undefined
> property "MetaWindowX11"

cannot be addressed in gnome-shell. Some of those warnings that are mentioned in the subject were addressed in https://gitlab.gnome.org/GNOME/mutter/commit/7655e09d004ec1, but others are still present; mostly because making the types public requires code churn that's not proportional to the minor benefit (avoid a harmless warning).

Ideally gjs should be fixed to not trigger those warnings, as keeping subtypes private and expecting any manipulation to be done through API on the public parent type is perfectly legitimate.

Comment 18 Florian Müllner 2020-06-14 13:58:25 UTC
*** Bug 1845660 has been marked as a duplicate of this bug. ***

Comment 19 Michael Boisvert 2020-06-15 17:52:46 UTC
Using gnome-shell-3.28.3-28.el7 I do not see any unexpected JS warnings in the journal.

Comment 25 Michael Boisvert 2020-06-23 12:41:21 UTC
After testing gnome-shell-3.28.3-29.el7, there are no unexpected warnings in the journal.

Comment 32 errata-xmlrpc 2020-09-29 20:21:50 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 (GNOME bug fix and enhancement 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/RHBA-2020:3987

Comment 34 Florian Müllner 2021-04-13 18:02:52 UTC
*** Bug 1883641 has been marked as a duplicate of this bug. ***


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