[BUG]: Komorebi crashed when switched to workspace 1 #407

Closed
opened 2026-01-05 14:50:31 +01:00 by adam · 4 comments
Owner

Originally created by @liketoeatcheese on GitHub (Jun 13, 2024).

Describe the bug
It has been working fine, and not sure what happened because I didn't update any new version or touch the config since a month

To Reproduce
Steps to reproduce the behavior:

  1. Start up komorebic --ahk
  2. Move a window to workspace 3
  3. Move back to workspace 1 (then crashed)

Expected behavior
It shouldn't crash

Screenshots and Videos
Video walking through the crash:
https://drive.google.com/file/d/1ek0pV9rTK08M-rvPnh3lxFVil9X0Frq0/view?usp=sharing

Operating System
Provide the output of systeminfo | grep "^OS Name\|^OS Version"

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22631 N/A Build 22631

komorebic check Output

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\wpham

Looking for configuration files in C:\Users\wpham

Found komorebi.json; this file can be passed to the start command with the --config flag

No ~/.config/whkdrc found; you may not be able to control komorebi with your keyboard

~/komorebic.ahk

#Requires AutoHotkey v2.0.2
#SingleInstance Force

Komorebic(cmd) {
    RunWait(format("komorebic.exe {}", cmd), , "Hide")
}

!+q::Komorebic("close")
!+m::Komorebic("minimize")

; Focus windows
!+h::Komorebic("focus left")
!+j::Komorebic("focus down")
!+k::Komorebic("focus up")
!+l::Komorebic("focus right")

; !+[::Komorebic("cycle-focus previous")
; !+]::Komorebic("cycle-focus next")

; Move windows
!^h::Komorebic("move left")
!^j::Komorebic("move down")
!^k::Komorebic("move up")
!^l::Komorebic("move right")

; Stack windows
; !Left::Komorebic("stack left")
; !Down::Komorebic("stack down")
; !Up::Komorebic("stack up")
; !Right::Komorebic("stack right")
; !;::Komorebic("unstack")
; ![::Komorebic("cycle-stack previous")
; !]::Komorebic("cycle-stack next")

; Resize
!=::Komorebic("resize-axis horizontal increase")
!-::Komorebic("resize-axis horizontal decrease")
!+=::Komorebic("resize-axis vertical increase")
!+_::Komorebic("resize-axis vertical decrease")

; Manipulate windows
!Space::Komorebic("toggle-float")
; !m::Komorebic("toggle-monocle")

; Window manager options
; !+r::Komorebic("retile")
; !p::Komorebic("toggle-pause")

; Layouts
!x::Komorebic("flip-layout horizontal")
!y::Komorebic("flip-layout vertical")

; Workspaces
!+1::Komorebic("focus-workspace 0")
!+2::Komorebic("focus-workspace 1")
!+3::Komorebic("focus-workspace 2")
!+4::Komorebic("focus-workspace 3")
!+5::Komorebic("focus-workspace 4")
!+6::Komorebic("focus-workspace 5")
!+7::Komorebic("focus-workspace 6")
!+8::Komorebic("focus-workspace 7")

; Move windows across workspaces
^+1::Komorebic("move-to-workspace 0")
^+2::Komorebic("move-to-workspace 1")
^+3::Komorebic("move-to-workspace 2")
^+4::Komorebic("move-to-workspace 3")
^+5::Komorebic("move-to-workspace 4")
^+6::Komorebic("move-to-workspace 5")
^+7::Komorebic("move-to-workspace 6")
^+8::Komorebic("move-to-workspace 7")

Additional context
Nothing is running with AHK, and attached is the log
komorebi_crashed_log.log

Originally created by @liketoeatcheese on GitHub (Jun 13, 2024). **Describe the bug** It has been working fine, and not sure what happened because I didn't update any new version or touch the config since a month **To Reproduce** Steps to reproduce the behavior: 1. Start up `komorebic --ahk` 3. Move a window to workspace 3 4. Move back to workspace 1 (then crashed) **Expected behavior** It shouldn't crash **Screenshots and Videos** Video walking through the crash: https://drive.google.com/file/d/1ek0pV9rTK08M-rvPnh3lxFVil9X0Frq0/view?usp=sharing **Operating System** Provide the output of `systeminfo | grep "^OS Name\|^OS Version"` ``` OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22631 N/A Build 22631 ``` **`komorebic check` Output** ``` No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\wpham Looking for configuration files in C:\Users\wpham Found komorebi.json; this file can be passed to the start command with the --config flag No ~/.config/whkdrc found; you may not be able to control komorebi with your keyboard ``` **~/komorebic.ahk** ```ahk #Requires AutoHotkey v2.0.2 #SingleInstance Force Komorebic(cmd) { RunWait(format("komorebic.exe {}", cmd), , "Hide") } !+q::Komorebic("close") !+m::Komorebic("minimize") ; Focus windows !+h::Komorebic("focus left") !+j::Komorebic("focus down") !+k::Komorebic("focus up") !+l::Komorebic("focus right") ; !+[::Komorebic("cycle-focus previous") ; !+]::Komorebic("cycle-focus next") ; Move windows !^h::Komorebic("move left") !^j::Komorebic("move down") !^k::Komorebic("move up") !^l::Komorebic("move right") ; Stack windows ; !Left::Komorebic("stack left") ; !Down::Komorebic("stack down") ; !Up::Komorebic("stack up") ; !Right::Komorebic("stack right") ; !;::Komorebic("unstack") ; ![::Komorebic("cycle-stack previous") ; !]::Komorebic("cycle-stack next") ; Resize !=::Komorebic("resize-axis horizontal increase") !-::Komorebic("resize-axis horizontal decrease") !+=::Komorebic("resize-axis vertical increase") !+_::Komorebic("resize-axis vertical decrease") ; Manipulate windows !Space::Komorebic("toggle-float") ; !m::Komorebic("toggle-monocle") ; Window manager options ; !+r::Komorebic("retile") ; !p::Komorebic("toggle-pause") ; Layouts !x::Komorebic("flip-layout horizontal") !y::Komorebic("flip-layout vertical") ; Workspaces !+1::Komorebic("focus-workspace 0") !+2::Komorebic("focus-workspace 1") !+3::Komorebic("focus-workspace 2") !+4::Komorebic("focus-workspace 3") !+5::Komorebic("focus-workspace 4") !+6::Komorebic("focus-workspace 5") !+7::Komorebic("focus-workspace 6") !+8::Komorebic("focus-workspace 7") ; Move windows across workspaces ^+1::Komorebic("move-to-workspace 0") ^+2::Komorebic("move-to-workspace 1") ^+3::Komorebic("move-to-workspace 2") ^+4::Komorebic("move-to-workspace 3") ^+5::Komorebic("move-to-workspace 4") ^+6::Komorebic("move-to-workspace 5") ^+7::Komorebic("move-to-workspace 6") ^+8::Komorebic("move-to-workspace 7") ``` **Additional context** Nothing is running with AHK, and attached is the log [komorebi_crashed_log.log](https://github.com/user-attachments/files/15813896/komorebi_crashed_log.log)
adam added the bug label 2026-01-05 14:50:31 +01:00
adam closed this issue 2026-01-05 14:50:31 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Jun 13, 2024):

From looking at the errors on the logs I have a feeling the fix for this may already be on master and planned for the next release; can you try running a build from the latest GitHub actions job?

@LGUG2Z commented on GitHub (Jun 13, 2024): From looking at the errors on the logs I have a feeling the fix for this may already be on master and planned for the next release; can you try running a build from the latest GitHub actions job?
Author
Owner

@liketoeatcheese commented on GitHub (Jun 14, 2024):

The github action pushed to master so I assume it's master branch you're referring to? So I did a git clone https://github.com/LGUG2Z/komorebi.git. But same error

@liketoeatcheese commented on GitHub (Jun 14, 2024): The github action pushed to master so I assume it's master branch you're referring to? So I did a `git clone https://github.com/LGUG2Z/komorebi.git`. But same error
Author
Owner

@CtByte commented on GitHub (Jun 14, 2024):

I think you could also download the created artifact and use the .msi file to install, or copy the .exe files to your c:\Program Files\komorebi\bin\ folder

@CtByte commented on GitHub (Jun 14, 2024): I think you could also download the [created artifact](https://github.com/LGUG2Z/komorebi/actions/runs/9485533204) and use the `.msi` file to install, or copy the `.exe` files to your `c:\Program Files\komorebi\bin\` folder
Author
Owner

@liketoeatcheese commented on GitHub (Jun 20, 2024):

Ok, an interesting thing I found. This only happens when I start up komorebi while connecting to ultrawide monitor with mirroring (Not extending monitors). But if I start up first, on the laptop, then plug it in, it's not a problem. Seems like a very edge case to me to be maintaining it.

Should I be closing this ticket?

@liketoeatcheese commented on GitHub (Jun 20, 2024): Ok, an interesting thing I found. This only happens when I start up komorebi while connecting to ultrawide monitor with mirroring (Not extending monitors). But if I start up first, on the laptop, then plug it in, it's not a problem. Seems like a very edge case to me to be maintaining it. Should I be closing this ticket?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#407