Skip to content

Supersonic sometimes crashes when monitors turn off  #412

@sochotnicky

Description

@sochotnicky

I can't reproduce it easily but sometimes supersonic crashes as follows (usually when I leave my desktop and monitors shut off using DPMS):

$ result/bin/supersonic
2024/07/02 08:48:19 Starting supersonic...
2024/07/02 08:48:19 Using config dir: /home/w0rm/.config/supersonic
2024/07/02 08:48:19 Using cache dir: /home/w0rm/.cache/supersonic
2024/07/02 08:48:19 failed to load theme file "": open /home/w0rm/.config/supersonic/themes: no such file or directory
X Error of failed request:  BadRRCrtc (invalid Crtc parameter)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  20 (RRGetCrtcInfo)
  Crtc id in failed request: 0x45c
  Serial number of failed request:  7138
  Current serial number in output stream:  7138

This seems related to glfw. And there's some nice debugging in kovidgoyal/kitty#1006

Based on related commit kovidgoyal/kitty@ab7f331 I think a similar fix in go-glfw might be needed in https://github.com/go-gl/glfw/blob/037f3cc74f2ab0b249928c4fc4b61e0f13befdb8/v3.3/glfw/glfw/src/x11_monitor.c#L152 ?

Thoughs?

Filing this here since this is "user-facing".

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions