Bug 2184830 - xscreensaver-settings or xscreensaver-demo fails to start on X error
Summary: xscreensaver-settings or xscreensaver-demo fails to start on X error
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xscreensaver
Version: 37
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-05 21:31 UTC by Martin B.
Modified: 2024-02-09 18:54 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-06 02:46:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gtk issues 5607 0 None closed xscreensaver-settings fails to start on some window managers: X_SetInputFocus fails with BadMatch 2023-04-05 21:32:35 UTC

Description Martin B. 2023-04-05 21:31:57 UTC
Description of problem
======================

xscreensaver-demo or xscreensaver-settings fails to start when executed from a xmonad session, which prevents user to configure it directly

Version-Release number of selected component
============================================

```
$ rpm -qa 'xscreensaver*'
xscreensaver-gl-base-6.06-3.fc37.x86_64
xscreensaver-extras-base-6.06-3.fc37.x86_64
xscreensaver-gl-extras-6.06-3.fc37.x86_64
xscreensaver-base-6.06-3.fc37.x86_64
xscreensaver-extras-6.06-3.fc37.x86_64
xscreensaver-6.06-3.fc37.x86_64
$ rpm -q xorg-x11-server-Xorg
xorg-x11-server-Xorg-1.20.14-21.fc37.x86_64
```

How reproducible
================

100%

Steps to Reproduce
==================

1. select xmonad as a window manger and login
2. try to run xscreensaver-settings or xscreensaver-demo

Actual results
==============

```
$ xscreensaver-settings
xscreensaver-settings: 23:29:20.81: Theme parsing error: colors.css:71:44: Invalid number for color value
xscreensaver-settings: 23:29:20.81: Theme parsing error: colors.css:72:44: Invalid number for color value
xscreensaver-settings: 23:29:20.81: Theme parsing error: colors.css:74:53: Invalid number for color value
xscreensaver-settings: 23:29:20.81: Theme parsing error: colors.css:75:53: Invalid number for color value
xscreensaver-settings: 23:29:20.81: Theme parsing error: colors.css:76:56: Invalid number for color value
xscreensaver-settings: 23:29:20.81: Theme parsing error: colors.css:77:65: Invalid number for color value

xscreensaver-settings: 23:29:21.11: X error:
xscreensaver-settings:   Failed request: BadMatch (invalid parameter attributes)
xscreensaver-settings:   Major opcode:   42 (X_SetInputFocus)
xscreensaver-settings:   Resource id:    0x3000007
xscreensaver-settings:   Serial number:  454 / 456
```

Expected results
================

xscreensaver-settings starts without any error

Additional info
===============

Fortunately `xscreensaver-command -lock` works without any problems.

Comment 1 Mamoru TASAKA 2023-04-07 03:05:32 UTC
Currently I don't want to test this unless you can provide the "exact" way to reproduce this.

(e.g. 
You seem to be using xmonad, however in my recognition none of the live spin provided by
Fedora is using xmonad by default. and it seems xmonad needs some user configuration.
So please provide the very detailed procedure how you set up your xmonad environment,
how you launched xscreensaver-settings, etc.

i.e. I have never used xmonad.
)

Comment 2 Mamoru TASAKA 2023-04-07 03:12:07 UTC
At least this issue is not reproducible on LXDE or XFCE.

Comment 3 Mamoru TASAKA 2023-05-06 02:46:31 UTC
Now I've tried

* freshly install LXDE 38 live spin
* reboot
* sudo dnf config-manager --set-disabled \*modular\*
* sudo dnf config-manager --set-enabled updates updates-testing
* sudo dnf upgrade
* sudo dnf install xmonad redhat-rpm-config xscreensaver-extras
* reboot
* login to xmonad sesssion
* press alt-shift-return
* on the terminal, $ xscreensaver-settings

And xscreensaver-settings works on xmonad session, i.e. unreproducible to me.

As no response from the reporter is received, closing.

Comment 4 Red Hat Bugzilla 2023-09-19 04:34:54 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days

Comment 5 Marco Moock 2024-01-05 19:15:27 UTC
I can confirm this with mwm in Fedora 39.

        Kernel modules: rtsx_pci
m@localhost:~$ xscreensaver-settings 

xscreensaver-settings: 20:09:33.36: X error:
xscreensaver-settings:   Failed request: BadMatch (invalid parameter attributes)
xscreensaver-settings:   Major opcode:   42 (X_SetInputFocus)
xscreensaver-settings:   Resource id:    0xc00007
xscreensaver-settings:   Serial number:  447 / 449

m@localhost:~$ 


m@localhost:~$  rpm -qa 'xscreensaver*'
xscreensaver-extras-base-6.08-1.fc39.x86_64
xscreensaver-gl-base-6.08-1.fc39.x86_64
xscreensaver-gl-extras-6.08-1.fc39.x86_64
xscreensaver-base-6.08-1.fc39.x86_64
xscreensaver-extras-6.08-1.fc39.x86_64
xscreensaver-6.08-1.fc39.x86_64
m@localhost:~$ 

If you need more information, please let me know.

Comment 6 Marco Moock 2024-01-05 20:28:54 UTC
To reproduce it:

Install Fedora Server Edition, choose minimal installation.
Install xorg-x11-server-Xorg, xterm, xinit.
Install mwm, add it to .Xclients.


Run startx and run xscreensaver-demo.

Another minor problem:
It needs libvulkan.so.1, but doesn't install vulkan-loader as dependency.

Comment 7 Mamoru TASAKA 2024-01-06 01:27:53 UTC
Again at least this issue is not reproducible on LXDE or XFCE.
The original reporter uses xmonad, so anyway I don't handle the issue on mwm on this ticket.

Comment 8 Marco Moock 2024-01-06 09:10:12 UTC
(In reply to Mamoru TASAKA from comment #7)
> Again at least this issue is not reproducible on LXDE or XFCE.
> The original reporter uses xmonad, so anyway I don't handle the issue on mwm
> on this ticket.

I have now opened
https://bugzilla.redhat.com/show_bug.cgi?id=2257043

with mwm and steps to reproduce.

Comment 9 Marco Moock 2024-02-09 18:54:57 UTC
It seems that this is the error I already had in Debian.
They released a patch for it.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%231030909#219


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