Bug 2120293

Summary: Broken scrolling on the main hub, unable to create user in Japanese
Product: Red Hat Enterprise Linux 9 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact: Sagar Dubewar <sdubewar>
Priority: high    
Version: 9.1CC: bbarve, jwboyer, ljanda, mclasen, otte, pvlasin, rvykydal, sbarcomb, sdubewar, tpopela
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-34.25.1.13-1.el9 Doc Type: Known Issue
Doc Text:
.User Creation screen is unresponsive in Japanese When installing RHEL with the Japanese language and using a graphical user interface, the User Creation screen is unresponsive. As a consequence, creating users during installation is more difficult. To work around this problem, use one of the following solutions to create users: * Access the User Creation dialogue by using keyboard shortcuts (press `Alt+U` and then `Enter`). * Run the installation in VNC mode and resize the VNC window. * Create users after completing the installation process.
Story Points: ---
Clone Of:
: 2122636 2123368 (view as bug list) Environment:
Last Closed: 2022-11-15 09:58:45 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: 2071990, 2123368    
Attachments:
Description Flags
Screenshot, VNC mode
none
Screenshot, install in Japanese, RHEL-9.1
none
Screenshot, install in Japanese, RHEL-9.0 none

Description Jan Stodola 2022-08-22 12:53:06 UTC
Description of problem:
Sometimes it's not possible to scroll the main hub screen if all the items do not fit on the screen.

This is a problem for example when running the installation process in Japanese and the screen resolution is set to 1024x768 (the default resolution in KVM or when running the installation via VNC). In such a case the "User Creation" button is not visible and it's not possible to scroll to show it.

It can be reproduced in English as well - run the installation in VNC mode (use "inst.vnc" on the kernel command line), connect to the started vnc server and resize the vnc window after entering the main hub. At some point the "User Creation" button is (partially) hidden, the scroll bar is visible, but it's not possible to use it. It's also not possible to use the key arrows/mouse wheel to scroll down.

Version-Release number of selected component (if applicable):
RHEL-9.1.0-20220819.0
anaconda-34.25.1.11-1.el9
gtk2-2.24.33-7.el9

How reproducible:
always

Steps to Reproduce:
1. Run the installation in KVM/via VNC and select Japanese as the installation language. OR
1. Run the installation with "inst.vnc" on the kernel cmdline and resize the vnc window after entering the main hub. Some screen sizes do not allow to scroll the screen (some screen sizes work just fine).

Actual results:
Unable to scroll to create a user account.

Expected results:
All items on the main hub fit on the screen, or the user is able to scroll on the main hub to reach the hidden ones.

Additional info:
This problem can also be reproduced on RHEL-9.0 GA via VNC, but it is not a problem for the main hub in Japanese, since all items fit on the screen in the RHEL-9.0 installer. It could be caused partially due to the missing "pre-release" warning in GA version of the installer, due to slightly different padding and/or due to new translation of the "Security Profile" spoke.

Comment 1 Jan Stodola 2022-08-22 12:54:46 UTC
Created attachment 1906906 [details]
Screenshot, VNC mode

Screenshot from VNC installation. The screen cannot be scrolled down.

Comment 3 Jan Stodola 2022-08-22 12:59:49 UTC
Created attachment 1906910 [details]
Screenshot, install in Japanese, RHEL-9.1

Comment 4 Jan Stodola 2022-08-22 13:00:43 UTC
Created attachment 1906911 [details]
Screenshot, install in Japanese, RHEL-9.0

Comment 8 Radek Vykydal 2022-08-23 09:55:36 UTC
Reassigning to Gtk for help and expertise.

Basically it seems a vertical scrollbar of a scrolled window is not able to reach the bottom of the window in case of some elements inside got higher due to label wrapping caused by new translations.

Is there anything we are perhaps missing creating the scrolled window (https://github.com/rhinstaller/anaconda/blob/7d13d2e0978cbefb27953be6f4d47c5d5fb222a3/pyanaconda/ui/gui/hubs/summary.glade#L47) or its content (https://github.com/rhinstaller/anaconda/blob/rhel-9/widgets/src/SpokeSelector.c) that can fix the problem?

Comment 12 Benjamin Otte 2022-08-23 20:32:51 UTC
From a quick, the status label in https://github.com/rhinstaller/anaconda/blob/rhel-9/widgets/src/SpokeSelector.c#L301 does not call gtk_label_set_line_wrap() (the title label does), and I remember there being some weirdness in GTK4 associated with that combination. I can't find the upstream issue where this was discussed though, so no more details for now.

But could you try adding a call to gtk_label_set_line_wrap(GTK_LABEL(spoke->priv->status_label), TRUE); and see if that helps?

Comment 18 Radek Vykydal 2022-08-29 12:00:21 UTC
I've reproduced also in Gnome Boxes, one just needs to play with the width / height of the window a bit:

https://rvykydal.fedorapeople.org/scrollbar_rhel9.1_boxes.png

In virt-manager it seems to be reproducible with default settings.

Comment 22 Radek Vykydal 2022-08-30 13:52:23 UTC
I think we can accept the solution / workaround from comment #12 for this release. It seems to actually improve the layout for Japanese language and not to break it for other languages.

I'll clone the BZ for Gtk so that the issue with scrollbar can be investigated / fixed eventually if needed.

Comment 29 Jan Stodola 2022-09-07 10:55:18 UTC
Tested all these supported languages and all elements on the main hub are now visible on the default-sized screen (1024x768): English, French, German, Italian, Russian, Spanish, Portuguese, Chinese, Japanese, Korean

Tested with anaconda-34.25.1.13-1.el9, marking as Verified:Tested.

Comment 32 Jan Stodola 2022-09-08 07:05:40 UTC
anaconda-34.25.1.13-1.el9 is present in RHEL-9.1.0-20220908.0, moving to VERIFIED.

Comment 34 errata-xmlrpc 2022-11-15 09:58:45 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 (anaconda 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-2022:7977