Bug 1222351

Summary: Red Eclipse upstream doesn't run on X (but does on Wayland).
Product: [Fedora] Fedora Reporter: Diogo Campos <diogocamposwd>
Component: xorg-x11-serverAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: hdegoede, ofourdan, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-18 07:11:48 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:

Description Diogo Campos 2015-05-17 23:55:42 UTC
Software versions:

Fedora Workstation 22 (TC4, x86_64).
Red Eclipse = 1.5.1 (upstream, fully updated).
xorg-x11-drv-intel = 2.99.917-6.20150211.
xorg-x11-server-Xorg = 1.17.1-11.
mesa-dri-drivers = 10.5.4-1.20150505.
kernel = 4.0.2-300.


Hardware model:

GPU = Intel HD Graphics (CPU = Intel Pentium B950 - Sandy Bridge).


Steps to Reproduce:

1. Download the game at:
http://redeclipse.net/files/releases/redeclipse_1.5.1_nix.tar.bz2.torrent

2. Try to run it (redeclipse.sh).


Actual results:

(this error message)

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (XFree86-VidModeExtension)
  Minor opcode of failed request:  10 (XF86VidModeSwitchToMode)
  Value in failed request:  0xa0
  Serial number of failed request:  166
  Current serial number in output stream:  168


Expected results:

Red Eclipse should run.


Additional info:

- This notebook has no screen. So I boot with the "video=LVDS-1:d" kernel option added, and I use a external monitor connected through VGA port.

- Red Eclipse runs normally within a Wayland session (selected at GDM).

- AFTER successfully running the game in the Wayland session, the game will also run normally in the X session too. BUT, if you, then, delete the "*.cfg" files in "~/.redeclipse/", previous behavior (in X) comes back, until you run Red Eclipse in the Wayland session again.

So, I suspect that: when without config, the game asks for a resolution to something (SDL?) and is given a invalid resolution that X, then, denies. No idea why it works (also when without config) on Wayland, though.

Comment 1 Hans de Goede 2015-05-18 07:11:48 UTC
This sounds like a red-eclipse bug to me. Under wayland, so using xwayland there is no xvidmode extension loaded, which is why the error does not happen there.

Please report this bug to the red eclipse developers.

Comment 2 Olivier Fourdan 2016-02-09 09:23:23 UTC
I've sent a series of patches to add XVidMode extension to Xwayland in the upstream bug (see also), will now try with the given game to see if that helps.