Bug 2196028 - 0ad looks windowed even when in full screen mode---mouse pointer and pointed location are different---unable to play
Summary: 0ad looks windowed even when in full screen mode---mouse pointer and pointed ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: 0ad
Version: 38
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kalev Lember
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-07 16:36 UTC by Ankur Sinha (FranciscoD)
Modified: 2023-05-10 10:21 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
screenshot showing 0ad now properly being full screen (1.39 MB, image/png)
2023-05-07 16:36 UTC, Ankur Sinha (FranciscoD)
no flags Details

Description Ankur Sinha (FranciscoD) 2023-05-07 16:36:29 UTC
The 0ad GUI looks windowed even in full screen mode. There is also an offset between the location of the mouse pointer and the actual location that is being pointed to.

This is happening on two of my machines---both completely up to date Fedora 38 installs. Also created a new user to test, issue persists.

I also tried the flatpak off FlatHub and got the same issue, so perhaps it's not a 0ad issue---but I don't know how to debug it any further.

rpm -qa \*0ad\*
0ad-data-0.0.26-2.fc38.noarch
0ad-0.0.26-7.fc38.x86_64



Reproducible: Always

Steps to Reproduce:
1. start 0ad
2.
3.
Actual Results:  
- window is full screen but 0ad GUI/display looks like it is windowed
- mouse pointer location and where it is actually pointing are different

Expected Results:  
- should work properly


Output of fpaste:

$ fpaste --sysinfo --printonly
=== fpaste 0.4.3.0 System Information ===
* OS Release (lsb_release -ds):
     "Fedora release 38 (Thirty Eight)"

* Kernel (uname -r ; cat /proc/cmdline):
     6.2.14-300.fc38.x86_64
     BOOT_IMAGE=(hd0,msdos1)/vmlinuz-6.2.14-300.fc38.x86_64 root=UUID=ca51f7bd-aa8e-417e-87cb-2ee37aa19f69 ro resume=UUID=6c3ad40a-3833-451d-b639-b37ad11900e0 rhgb quiet crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M

* Desktop(s) Running (ps -eo comm= | grep -E '(gnome-session|startkde|startactive|xfce.?-session|fluxbox|blackbox|hackedbox|ratpoison|enlightenment|icewm-session|od-session|wmaker|wmx|openbox-lxde|openbox-gnome-session|openbox-kde-session|mwm|e16|fvwm|xmonad|sugar-session|mate-session|lxqt-session|cinnamon|lxdm-session)' ):
     gnome-session-b
     gnome-session-c
     gnome-session-b

* Desktop(s) Installed (ls -m /usr/share/xsessions/ | sed 's/\.desktop//g' ):
     gnome, gnome-xorg

* SELinux Status (sestatus):
     SELinux status:                 enabled
     SELinuxfs mount:                /sys/fs/selinux
     SELinux root directory:         /etc/selinux
     Loaded policy name:             targeted
     Current mode:                   enforcing
     Mode from config file:          enforcing
     Policy MLS status:              enabled
     Policy deny_unknown status:     allowed
     Memory protection checking:     actual (secure)
     Max kernel policy version:      33

* SELinux Errors (selinuxenabled && journalctl --since yesterday |grep avc: | grep -Eo comm="[^ ]+" | sort |uniq -c |sort -rn):
           4 comm="systemd"
           1 comm="ModemManager"

* CPU Model (grep 'model name' /proc/cpuinfo | awk -F: '{print $2}' | uniq -c |
     sed -re 's/^ +//' ):
     8  Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz

* 64-bit Support (grep -q ' lm ' /proc/cpuinfo && echo Yes || echo No):
     Yes

* Hardware Virtualization Support (grep -Eq '(vmx|svm)' /proc/cpuinfo && echo Yes || echo No):
     Yes

* Load average (uptime):
      17:16:00 up 22:52,  2 users,  load average: 0.67, 1.05, 1.47

* Pressure Stall Information (grep -R . /proc/pressure/):
     /proc/pressure/io:some avg10=0.00 avg60=0.06 avg300=0.42 total=35217890
     /proc/pressure/io:full avg10=0.00 avg60=0.03 avg300=0.34 total=28736488
     /proc/pressure/cpu:some avg10=0.79 avg60=0.87 avg300=1.28 total=90821255
     /proc/pressure/cpu:full avg10=0.00 avg60=0.00 avg300=0.00 total=0
     /proc/pressure/irq:full avg10=0.00 avg60=0.00 avg300=0.00 total=6014150
     /proc/pressure/memory:some avg10=0.00 avg60=0.00 avg300=0.00 total=2055
     /proc/pressure/memory:full avg10=0.00 avg60=0.00 avg300=0.00 total=1933

* Memory usage (free -m):
                    total        used        free      shared  buff/cache   available
     Mem:           31698       10382        9969        3679       11346       17185
     Swap:          16000           0       16000

* ZRAM usage (zramctl --output-all):
     NAME       DISKSIZE DATA COMPR ALGORITHM STREAMS ZERO-PAGES TOTAL MEM-LIMIT MEM-USED MIGRATED MOUNTPOINT
     /dev/zram0       8G   4K   80B lzo-rle         8          0   12K        0B      12K       0B [SWAP]

* Top 5 CPU hogs (ps axuScnh | awk '$2!=37692' | sort -rnk3 | head -5):
         1000   33099  7.4  0.4 5981964 146100 ?      Sl   17:11   0:20 QtWebEngineProc
         1000    1070  1.5  0.0  31564 16976 ?        Ss   May06  21:14 systemd
         1000   34117  1.3  0.4 2103316 161364 ?      Ssl  17:12   0:02 nautilus
            0   22015  0.6  0.1 270168 39820 ?        Ss   17:01   0:05 sssd_kcm
         1000    3312  0.2  4.0 12235836 1325840 ?    Sl   May06   3:43 qutebrowser

* Top 5 Memory hogs (ps axuScnh | sort -rnk4 | head -5):
         1000    3312  0.2  4.0 12235836 1325840 ?    Sl   May06   3:43 qutebrowser
         1000    2540  0.0  1.3 2876580 433156 ?      Sl   May06   0:23 gnome-software
         1000    2216  0.1  1.1 5440676 367124 ?      Ssl  May06   1:37 gnome-shell
         1000    3820  0.0  0.9 6171824 307296 ?      Sl   May06   0:21 QtWebEngineProc
         1000    2788  0.0  0.9 5467372 293720 ?      Ssl  May06   0:12 dropbox

* Disk space usage (df -hT):
     Filesystem     Type      Size  Used Avail Use% Mounted on
     devtmpfs       devtmpfs  4.0M     0  4.0M   0% /dev
     tmpfs          tmpfs      16G  285M   16G   2% /dev/shm
     tmpfs          tmpfs     6.2G  1.9M  6.2G   1% /run
     /dev/sdb5      ext4       89G   60G   25G  71% /
     tmpfs          tmpfs      16G  125M   16G   1% /tmp
     /dev/sda1      ext4      222G   56G  156G  27% /mnt/Scratch
     /dev/sdb1      ext4      474M  286M  160M  65% /boot
     /dev/sdb2      ext4      591G  258G  303G  47% /home
     tmpfs          tmpfs     3.1G  272K  3.1G   1% /run/user/1000

* Block devices (without results: "blkid" AND "/sbin/blkid"):
     N/A

* PCI devices (lspci -nn):
     00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM Controller [8086:0c00] (rev 06)
     00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06)
     00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
     00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
     00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 05)
     00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
     00:16.3 Serial controller [0700]: Intel Corporation 8 Series/C220 Series Chipset Family KT Controller [8086:8c3d] (rev 04)
     00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection I217-LM [8086:153a] (rev 05)
     00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 05)
     00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
     00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26] (rev 05)
     00:1f.0 ISA bridge [0601]: Intel Corporation Q87 Express LPC Controller [8086:8c4e] (rev 05)
     00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [8086:8c02] (rev 05)
     00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 05)

* USB devices (lsusb):
     Bus 002 Device 002: ID 8087:8000 Intel Corp. Integrated Rate Matching Hub
     Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     Bus 004 Device 002: ID 8087:8008 Intel Corp. Integrated Rate Matching Hub
     Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
     Bus 001 Device 004: ID 2f68:0082 Hoksi Technology DURGOD Taurus K320
     Bus 001 Device 003: ID 1b3f:2247 Generalplus Technology Inc. GENERAL WEBCAM
     Bus 001 Device 002: ID 045e:07a5 Microsoft Corp. Wireless Receiver 1461C
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

* DRM Information (journalctl -k -b | grep -o 'kernel:.*drm.*$' | cut -d ' ' -f 2- ):
     ACPI: bus type drm_connector registered
     [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
     fbcon: i915drmfb (fb0) is primary device
     i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device

* Xorg modules (grep LoadModule /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d \" -f 2 | xargs):
     glx modesetting fbdev vesa fbdevhw glamoregl fb libinput

* GL Support (glxinfo | grep -E "OpenGL version|OpenGL renderer"):
     OpenGL renderer string: Mesa Intel(R) HD Graphics 4600 (HSW GT2)
     OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.0.3

* Xorg errors (grep '^\[.*(EE)' /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d ':' -f 2- ):
     [    17.540] (EE) open /dev/fb0: Permission denied

* Kernel buffer tail (dmesg | tail):
     [  729.991767] ata1.00: configured for UDMA/100
     [  730.001361] PM: resume devices took 6.975 seconds
     [  730.001610] OOM killer enabled.
     [  730.001611] Restarting tasks ... done.
     [  730.014298] random: crng reseeded on system resumption
     [  730.014432] PM: suspend exit
     [  730.248961] e1000e 0000:00:19.0 eno1: NIC Link is Down
     [  743.523903] e1000e 0000:00:19.0 eno1: NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx
     [  743.523960] IPv6: ADDRCONF(NETDEV_CHANGE): eno1: link becomes ready
     [  931.002895] EXT4-fs (sda2): unmounting filesystem d5cf62c2-5021-4d48-aeea-8a7f931d4d48.

* Last few reboots (last -x -n10 reboot runlevel):
     runlevel (to lvl 5)   6.2.14-300.fc38. Sat May  6 18:23   still running
     reboot   system boot  6.2.14-300.fc38. Sat May  6 18:23   still running
     reboot   system boot  6.2.13-300.fc38. Sat May  6 18:19 - 18:23  (00:03)
     runlevel (to lvl 5)   6.2.13-300.fc38. Fri Apr 28 11:12 - 18:19 (8+07:07)
     reboot   system boot  6.2.13-300.fc38. Fri Apr 28 11:11 - 18:19 (8+07:07)
     reboot   system boot  6.2.11-300.fc38. Fri Apr 28 11:08 - 11:11  (00:02)
     runlevel (to lvl 5)   6.2.11-300.fc38. Mon Apr 24 09:20 - 11:08 (4+01:48)
     reboot   system boot  6.2.11-300.fc38. Mon Apr 24 09:19 - 11:08 (4+01:48)
     reboot   system boot  6.2.11-300.fc38. Mon Apr 24 09:17 - 09:19  (00:01)
     runlevel (to lvl 5)   6.2.11-300.fc38. Mon Apr 17 17:19 - 09:17 (6+15:57)

     wtmp begins Fri Oct 25 12:31:45 2019

* DNF Repositories (dnf repolist):
     repo id                                                            repo name
     Dropbox                                                            Dropbox Repository
     anydesk                                                            AnyDesk Stable
     copr:copr.fedorainfracloud.org:ankursinha:rubygem-taskjuggler      Copr repo for rubygem-taskjuggler owned by ankursinha
     copr:copr.fedorainfracloud.org:group_neurofedora:neurofedora-extra Copr repo for neurofedora-extra owned by @neurofedora
     docker-ce-stable                                                   Docker CE Stable - x86_64
     fedora                                                             Fedora 38 - x86_64
     fedora-cisco-openh264                                              Fedora 38 openh264 (From Cisco) - x86_64
     fedora-modular                                                     Fedora Modular 38 - x86_64
     rpmfusion-free                                                     RPM Fusion for Fedora 38 - Free
     rpmfusion-free-updates                                             RPM Fusion for Fedora 38 - Free - Updates
     rpmfusion-nonfree                                                  RPM Fusion for Fedora 38 - Nonfree
     rpmfusion-nonfree-updates                                          RPM Fusion for Fedora 38 - Nonfree - Updates
     updates                                                            Fedora 38 - x86_64 - Updates
     updates-modular                                                    Fedora Modular 38 - x86_64 - Updates

* DNF Extras (dnf -C list extras):
     Last metadata expiration check: 0:13:09 ago on Sun 07 May 2023 17:02:52 BST.
     Extra Packages
     ICAClient.x86_64                     21.9.0.25-0               @@commandline
     ctxusb.x86_64                        21.9.0.25-1               @@commandline
     docker-scan-plugin.x86_64            0.23.0-3.fc37             @docker-ce-stable
     google-chrome-stable.x86_64          111.0.5563.64-1           @google-chrome
     jabref.x86_64                        5.9.6000-1                @@commandline
     minikube.x86_64                      1.24.0-0                  @@commandline
     zoom.x86_64                          5.12.6.173-1              @@commandline

* Last 20 packages installed (rpm -qa --nodigest --nosignature --last | head -20):
     libreoffice-xsltfilter-7.5.3.2-1.fc38.x86_64  Sun 07 May 2023 17:03:44 BST
     libreoffice-writer-7.5.3.2-1.fc38.x86_64      Sun 07 May 2023 17:03:44 BST
     libreoffice-pyuno-7.5.3.2-1.fc38.x86_64       Sun 07 May 2023 17:03:44 BST
     libreoffice-pdfimport-7.5.3.2-1.fc38.x86_64   Sun 07 May 2023 17:03:44 BST
     libreoffice-ogltrans-7.5.3.2-1.fc38.x86_64    Sun 07 May 2023 17:03:44 BST
     libreoffice-math-7.5.3.2-1.fc38.x86_64        Sun 07 May 2023 17:03:44 BST
     libreoffice-impress-7.5.3.2-1.fc38.x86_64     Sun 07 May 2023 17:03:44 BST
     libreoffice-graphicfilter-7.5.3.2-1.fc38.x86_64 Sun 07 May 2023 17:03:44 BST
     libreoffice-filters-7.5.3.2-1.fc38.x86_64     Sun 07 May 2023 17:03:44 BST
     libreoffice-emailmerge-7.5.3.2-1.fc38.x86_64  Sun 07 May 2023 17:03:44 BST
     libreoffice-draw-7.5.3.2-1.fc38.x86_64        Sun 07 May 2023 17:03:44 BST
     libreoffice-core-7.5.3.2-1.fc38.x86_64        Sun 07 May 2023 17:03:44 BST
     libreoffice-calc-7.5.3.2-1.fc38.x86_64        Sun 07 May 2023 17:03:44 BST
     libreoffice-x11-7.5.3.2-1.fc38.x86_64         Sun 07 May 2023 17:03:39 BST
     libreoffice-ure-common-7.5.3.2-1.fc38.x86_64  Sun 07 May 2023 17:03:39 BST
     libreoffice-ure-7.5.3.2-1.fc38.x86_64         Sun 07 May 2023 17:03:39 BST
     libreoffice-opensymbol-fonts-7.5.3.2-1.fc38.noarch Sun 07 May 2023 17:03:39 BST
     libreoffice-langpack-en-7.5.3.2-1.fc38.x86_64 Sun 07 May 2023 17:03:39 BST
     libreoffice-help-en-7.5.3.2-1.fc38.x86_64     Sun 07 May 2023 17:03:39 BST
     libreoffice-gtk4-7.5.3.2-1.fc38.x86_64        Sun 07 May 2023 17:03:39 BST

* EFI boot manager output (without results: "efibootmgr -v"):
     N/A


Please let me know if there's any more info that I can provide. I haven't played in a bit, so I'm not certain when this issue started. 


Screenshot and screen recording attached.

Comment 1 Ankur Sinha (FranciscoD) 2023-05-07 16:36:57 UTC
Created attachment 1963022 [details]
screenshot showing 0ad now properly being full screen

Comment 2 Ankur Sinha (FranciscoD) 2023-05-07 16:40:47 UTC
Screen cast (too big to attach): https://ankursinha.fedorapeople.org/misc/0ad-not-fullscreen.webm

Comment 3 Ankur Sinha (FranciscoD) 2023-05-07 17:14:33 UTC
A workaround seems to be to start 0ad with lower resolution settings:


```
0ad -xres=1240 -yres=720
```

works as expected with this.

Comment 4 Kalev Lember 2023-05-08 09:16:28 UTC
I just tried launching 0ad and I get the exact same issue. I would suspect it's a mutter regression in F38 (I don't think I've tried launching 0ad after updating to F38).

Maybe https://gitlab.gnome.org/GNOME/mutter/-/issues/2639 ?

Comment 5 Ankur Sinha (FranciscoD) 2023-05-10 10:21:51 UTC
That certainly looks like it. I'd also posted on the forums, and we figured out that hitting "alt + enter" twice (once to window, and then to fullscreen) does "fix" the issue.

https://discussion.fedoraproject.org/t/0ad-issues-gui-does-not-cover-full-screen-mouse-pointer-displayed-and-actually-pointing-at-wrong-locations/82243/4


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