YaLTeR / niri

A scrollable-tiling Wayland compositor.
https://matrix.to/#/#niri:matrix.org
GNU General Public License v3.0
2.82k stars 79 forks source link

'niri msg ...' behaves strangely sometimes #451

Open xorander00 opened 2 weeks ago

xorander00 commented 2 weeks ago

Sometimes when running niri msg outputs and niri msg workspaces, an error gets thrown about parsing the output ("EOF while parsing a value at line 1 column 0").

I'm not able to reliably reproduce it yet, but here's an example...

20:29:12 me@roland ~❯ niri msg outputs
Output "DP-1" (Unknown - Unknown - DP-1)
  Current mode: 2560x1440 @ 59.951 Hz (preferred)
  Variable refresh rate: not supported
  Physical size: 600x340 mm
  Logical position: 1600, 1200
  Logical size: 2560x1440
  Scale: 1
  Transform: normal
  Available modes:
    2560x1440@59.951 (current, preferred)
    1920x1200@59.885
    1920x1080@60.000
    1920x1080@60.000
    1920x1080@59.940
    1920x1080@50.000
    1920x1080@24.000
    1920x1080@23.976
    1600x1200@60.000
    1680x1050@59.954
    1280x1024@75.025
    1280x1024@60.020
    1440x900@59.951
    1280x800@59.810
    1152x864@75.000
    1280x720@60.000
    1280x720@60.000
    1280x720@59.940
    1280x720@50.000
    1024x768@75.029
    1024x768@60.004
    800x600@75.000
    800x600@60.317
    720x576@50.000
    720x576@50.000
    720x480@60.000
    720x480@60.000
    720x480@59.940
    720x480@59.940
    720x480@59.940
    640x480@75.000
    640x480@60.000
    640x480@59.940
    640x480@59.940
    720x400@70.082

Output "DP-2" (Unknown - Unknown - DP-2)
  Current mode: 1600x1200 @ 60.028 Hz (preferred)
  Variable refresh rate: not supported
  Physical size: 410x310 mm
  Logical position: 0, 1440
  Logical size: 1600x1200
  Scale: 1
  Transform: normal
  Available modes:
    1600x1200@60.028 (current, preferred)
    1280x1024@60.020
    1440x900@60.028
    1280x800@60.028
    1152x864@75.000
    1280x720@60.028
    1024x768@84.997
    1024x768@75.029
    1024x768@60.004
    832x624@74.551
    800x600@85.061
    800x600@75.000
    800x600@60.317
    640x480@85.008
    640x480@75.000
    640x480@59.940
    720x400@70.082

Output "DP-3" (11_0_16 - DELL U2412M - DP-3)
  Current mode: 1920x1200 @ 59.950 Hz (preferred)
  Variable refresh rate: not supported
  Physical size: 520x320 mm
  Logical position: 1920, 0
  Logical size: 1920x1200
  Scale: 1
  Transform: normal
  Available modes:
    1920x1200@59.950 (current, preferred)
    1920x1080@60.000
    1600x1200@60.000
    1680x1050@59.954
    1280x1024@60.020
    1440x900@59.950
    1280x960@60.000
    1280x800@59.950
    1280x720@59.950
    1024x768@60.004
    800x600@60.317
    640x480@59.940
    720x400@70.082

Output "HDMI-A-1" (11_0_16 - DELL E2414H - HDMI-A-1)
  Current mode: 1920x1080 @ 60.000 Hz (preferred)
  Variable refresh rate: not supported
  Physical size: 530x300 mm
  Logical position: 4160, 720
  Logical size: 1080x1920
  Scale: 1
  Transform: 90° counter-clockwise
  Available modes:
    1920x1080@60.000 (current, preferred)
    1680x1050@60.000
    1600x900@60.000
    1280x1024@75.025
    1280x1024@60.020
    1440x900@60.000
    1280x800@60.000
    1152x864@75.000
    1280x720@60.000
    1024x768@75.029
    1024x768@60.004
    800x600@75.000
    800x600@60.317
    640x480@75.000
    640x480@59.940
    720x400@70.082

20:29:17 me@roland ~❯ niri msg workspaces
Error: error communicating with niri

Caused by:
    EOF while parsing a value at line 1 column 0

20:29:22 me@roland ~❯ niri msg workspaces
Output "DP-1":
 * 1
   2

Output "DP-2":
 * 1
   2
   3

Output "DP-3":
   1
 * 2
   3

Output "HDMI-A-1":
 * 1
   2

20:29:23 me@roland ~❯ 

System Information

YaLTeR commented 2 weeks ago

Huh, not sure how that could happen.