SFML community forums
Help => Window => Topic started by: Teleswarm on February 08, 2009, 03:33:39 am
-
I've been playing with the window-opengl.cpp example, using SFML 1.3.
The unmodified program runs just fine, but trying to set the window to fullscreen produces a horrible crash. The modified line of code is :
sf::Window App(sf::VideoMode(1024, 768, 32), "SFML OpenGL", sf::Style::Fullscreen);
And the output is:
Failed to get the list of available video modes
The requested video mode is not available, switching to a valid mode
Failed to get the list of available video modes
Failed to get the list of available video modes
Fullscreen is not supported, switching to window mode
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0x0
Serial number of failed request: 51
Current serial number in output stream: 53
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7ff92ad8997c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x15) [0x7ff92ad89a15]
#2 /usr/lib/libX11.so.6 [0x7ff92cd9f420]
#3 /usr/lib/libGL.so.1 [0x7ff92f0675c6]
Some extra information:
- I'm using 2 screens and a NVIDIA video card (propietary driver)
- I'm not using a TwinView setup, and the XRandR isn't available.
- Doing the equivalent action using SDL works directly, same with games, and same with everything else.
- The OS is Debian GNU/Linux "sid" (unstable)
Please suggest me what to do since I'm trying to port an application from SDL to SFML. Thanks.
-
Also, a different but related problem.
Doing the same using NVIDIA TwinView actually runs, but the output is like, blinking horizontal lines in the screen instead of a "solid" window.
-
Have you tried SFML 1.4?
-
I just noticed that SFML isn't available for 64-bit Linux (at least in the Sourceforge site), so the code just won't compile. Will the source (labeled as i386) compile in amd64? Thanks.
-
Will the source (labeled as i386) compile in amd64?
Sure. The package is labelled as i386 because it's a full SDK with precompiled binaries included. But the source compiles on many other platforms.
-
Ok, I completely uninstalled the debian packaged SFML 1.3 and compiled using SFML 1.4. The error remains.
Output:
Failed to get the list of available video modes
The requested video mode is not available, switching to a valid mode
Failed to get the list of available video modes
Failed to get the list of available video modes
Fullscreen is not supported, switching to window mode
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0x0
Serial number of failed request: 50
Current serial number in output stream: 52
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7f8bbc50d97c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x15) [0x7f8bbc50da15]
#2 /usr/lib/libX11.so.6 [0x7f8bbdefd420]
#3 /usr/lib/libGL.so.1 [0x7f8bc02e45c6]