jaelpark / chamferwm

A tiling X11 window manager with Vulkan compositor.
https://jaelpark.github.io/chamferwm-docs/
BSD 3-Clause "New" or "Revised" License
249 stars 11 forks source link

Switching ttys crashes chamfer #8

Closed rien333 closed 3 years ago

rien333 commented 4 years ago

Switching back and forth between chamfer and my current wm (which I need to do to properly configure it from a familiar environment) seems to crash chamfer.

To reproduce:

  1. Start chamfer in tty2
  2. chvt 1
  3. chvt 2, then chamfer crashes with:
    focus a000e AIGLX: Suspending AIGLX clients for VT switch 
    [chamfer]: Error: failed to acquire a swap chain image
jaelpark commented 4 years ago

I couldn't get chamfer crash during my initial testing. Even before, I don't recall having any problems regarding this. Tried also with some animated windows open. Anyway, according to your log the crash happens when vkAcquireNextImageKHR fails, which in turn makes the compositor throw an exception and abort the execution. Do you have "Exit" written in your log after the error message? I could maybe improve the code to handle these error situations more gracefully, that might help.