Skip to content

[APP BUG] "No available displays" error when running headless x11 on linux #890

Open
@rootnotez

Description

@rootnotez

Please confirm the following points:

  • This report is NOT about the Android apps in the Play Store
  • I have searched the project page to check if the issue was already reported

Affected Application

projectM Standalone SDL2 Frontend (includes the Steam app)

Affected Version

No response

Operating System

Linux (Desktop)

Additional Application Details

Application version: 2.0.0
Built/running with projectM4 version: 4.1.0 / 4.1.0
Built against SDL version: 2.26.5 (running with 2.26.5)

Type of Defect

Graphical issue (rendering glitches, black screen, heavy flickering)

Log Output

Initializing subsystem: SDL2 Rendering Window
Could not create SDL rendering window. Error: No available displays
Exception: Could not create SDL rendering window. Error: No available displays

Describe the Issue

Debian12, running headless X11, SDL gives an error that there are "No available displays"

An effective workaround is to set the enviornment variable SDL_VIDEO_X11_XRANDR=0

Fixed in SDL 3.1.10+
libsdl-org/SDL@7109914

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions