-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on startup #1
Comments
Thank you for this detailed report! Are you using multiple monitors by any chance? It looks like this is a bug that I didn't catch because I only use one monitor 😅. I think you're hitting this call which tries to ensure that Windows are associated with the correct monitor. Looking a bit further in the stack trace it seems like the issue is with this line which was recently introduced as part of the resizing feature. I think that wrapping this in an I'll @ you in this issue when I'm able to push these changes to a branch for you to try out later today 🤞. |
A user, possibly using multiple monitors, reported a panic on startup which I traced back to an unchecked remove op on a Vec. Spent so much time working with VecDeque that I forgot that removing from a Vec panics instead of returning an Option<T>. This change ensures that when trying to remove a container's resize dimensions in a workspace, we check that the container actually has a corresponding resize dimension before calling remove. Similarly, in order to ensure consistency with workspace updates which always resize the length of the resize dimensions to match the length of the number of container layouts, sets the length of the resize dimensions array when initialising a workspace in WindowsApi::load_workspace_information. fix #1
Yes, I do use multiple monitors. Tried this branch out and it started up successfully 👍 Another couple of questions that I had:
|
Right now the AHK script has to be run manually (either by double clicking it in There is currently no option that allows for a workspace without tiling. I will open a a separate ticket to track this. Workspaces in komorebic.exe ensure workspaces MONITOR_IDX DESIRED_WORKSPACE_COUNT This is usually run at the start of a config file to ensure the minimum number of workspaces that you want to work with on each monitor. komorebic.exe focus-workspace WORKSPACE_IDX This will try to switch to the given workspace index on the active monitor, and if it doesn't exist, it will be created, along with any other required workspace indices on the way. For example, if you only have one workspace ( I think it's a good idea to have a command that will just append a new workspace on the currently focused monitor (similar to the Win+Ctrl+D behaviour); I'll open a separate ticket to track this. |
@naoey The three enhancements on the referenced issues have been implemented and are on the |
The two bugs raised in issues #1 and #2 were due to panics that were not visible in the logs, which left the process hanging and unresponsive, ultimately needing to be force killed with a command like 'Stop-Process -Name komorebi'. The only way to even verify that a panic had taken place and what the panic related to, was to run '$env:RUST_BACKTRACE ='full'; komorebi.exe', wait for the panic, then restore the now-hidden window with 'komorebic restore-windows' to finally see the panic message. This commit integrates an example from the 'tracing' repo, which through the addition of a panic hook, logs out panics as errors. Hopefully this will debugging much easier in the future. re #1, re #2
That was fast! 😄 Thanks a bunch I'll give it a spin later today.
Ah that's where my confusion came from, as I was looking to try and disable tiling on specific Windows 10 virtual desktops. Would love to have that as a feature sometime in the future! |
Hello!
Just wanted to say thank you for building this as I've recently switched over to working on Windows and have sorely missed having a WM like this coming from using yabai on macOS. I've gone through the setup as described in the readme but haven't been able to get komorebi up and running yet.
I attempted to get it started as described in the instructions:
However nothing happens after this and on running
komorebi.exe state
I see this output:Attempting to run
komorebi.exe
directly there appears to be an exception on startup causing the process to terminate:This is running on the current latest master @
c15f1e1
.The text was updated successfully, but these errors were encountered: