Closed michaelBelsanti closed 4 days ago
Turns out my cursor (posy cursors) and the backup I tried when troubleshooting (phinger cursors) both have some problems. When parsed using the xcursor library used here, the Images created all have a delay of zero, which in this case caused a division by zero.
Not sure exactly how this delay value is used, so I don't know what a proper fallback would be here, but I would guess a default value could be used instead.
Not sure exactly how this delay value is used, so I don't know what a proper fallback would be here, but I would guess a default value could be used instead.
A default value of 0 would be fine (which would resolve to the first image of the cursor theme). A PR to fix this would be very welcome. In any case thanks for debugging this!
This error is occurring for me whenever cosmic-comp is started, crashing a second later. I am running Cosmic using nixos-cosmic.
cosmic-comp terminal output
``` 1 │ 2024-06-01T17:25:54.717203Z ERROR cosmic_comp::config: Failed to read config 'workspaces' err=NoConfigDirectory 2 │ 2024-06-01T17:25:54.717373Z WARN cosmic_comp::config::types: Key-Binding 'Period' only matched case insensitive for "period" 3 │ 2024-06-01T17:25:54.717390Z WARN cosmic_comp::config::types: Key-Binding 'Comma' only matched case insensitive for "comma" 4 │ 2024-06-01T17:25:54.717399Z WARN cosmic_comp::config::types: Key-Binding 'Period' only matched case insensitive for "period" 5 │ 2024-06-01T17:25:54.717408Z WARN cosmic_comp::config::types: Key-Binding 'Comma' only matched case insensitive for "comma" 6 │ 2024-06-01T17:25:54.955491Z WARN smithay::backend::drm::device::fd: Unable to become drm master, assuming unprivileged mode 7 │ 2024-06-01T17:25:55.025242Z ERROR panic: thread 'main' panicked at 'attempt to calculate the remainder with a divisor of zero': src/backend/render/cursor.rs:118 8 │ 0: