Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Fullscreen problem  (Read 5063 times)

0 Members and 2 Guests are viewing this topic.

Teleswarm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Fullscreen problem
« 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 :

Code: [Select]
sf::Window App(sf::VideoMode(1024, 768, 32), "SFML OpenGL", sf::Style::Fullscreen);

And the output is:

Code: [Select]
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.

Teleswarm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Fullscreen problem
« Reply #1 on: February 08, 2009, 03:57:08 am »
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Fullscreen problem
« Reply #2 on: February 08, 2009, 11:32:35 am »
Have you tried SFML 1.4?
Laurent Gomila - SFML developer

Teleswarm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Fullscreen problem
« Reply #3 on: February 08, 2009, 04:31:07 pm »
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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Fullscreen problem
« Reply #4 on: February 08, 2009, 06:56:11 pm »
Quote
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.
Laurent Gomila - SFML developer

Teleswarm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Fullscreen problem
« Reply #5 on: February 08, 2009, 07:13:01 pm »
Ok, I completely uninstalled the debian packaged SFML 1.3 and compiled using SFML 1.4. The error remains.

Output:
Code: [Select]

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]

 

anything