nwg-piotr / nwg-dock-hyprland

GTK3-based dock for Hyprland
MIT License
197 stars 15 forks source link

Data races and crashing when switching between windows #41

Open Binekrasik opened 6 months ago

Binekrasik commented 6 months ago

Describe the bug Data races occur when switching between different windows, eventually crashing the dock. Here are my logs: https://pastebin.com/tMLwMkAU

To Reproduce Steps to reproduce the behavior:

  1. Run the dock
  2. Start switching between different windows (it takes a while)
  3. The dock crashes

Expected behavior Data races don't occur, and the dock doesn't crash.

Desktop:

Additional Context: I commented out line 596 in tools.go for cleaner logs. Tried it with and without the comment, and it doesn't seem to affect the crash in any way. Also, to see the data race warnings, you must build or run the dock with the go data race detector.

aidan-gibson commented 1 month ago

I'm getting similar behavior.