Skip to content
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

nwg-drawer upgrade from 0.2.8 to 0.3.0 broke #81

Closed
RossComputerGuy opened this issue Dec 15, 2022 · 1 comment
Closed

nwg-drawer upgrade from 0.2.8 to 0.3.0 broke #81

RossComputerGuy opened this issue Dec 15, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@RossComputerGuy
Copy link

Today I decided to update my NixOS machines so I can play Portal with RTX. However, once I rebooted into the updated system, I get this error with nwg-drawer.

INFO[0000] Preferring dark theme variants
INFO[0000] Using style from /home/ross/.config/nwg-drawer/drawer.css
panic: runtime error: slice bounds out of range [:117] with capacity 56

goroutine 1 [running]:
main.flowBoxButton({{0xc0001b480c, 0x28}, {0xc00018f265, 0x10}, {0xc00018f265, 0x10}, {0xc000220788, 0x51}, {0xc0001ca37c, 0x97}, ...})
    github.com/nwg-piotr/nwg-drawer/uicomponents.go:263 +0x4f5
main.setUpAppsFlowBox({0x0, 0x0, 0xc000300148?}, {0x0, 0x0})
    github.com/nwg-piotr/nwg-drawer/uicomponents.go:203 +0x298
main.main()
    github.com/nwg-piotr/nwg-drawer/main.go:469 +0x1966

The numbers mentioned in the panic aren't in my drawer.css file. I can also try using nwg-drawer with an empty css file and no arguments but I get the same error. I believe whatever change from 0.2.8 to 0.3.0 broke nwg-drawer. A fix would be appreciated as I don't have an easy way to open applications now.

@nwg-piotr nwg-piotr added the duplicate This issue or pull request already exists label Dec 15, 2022
@nwg-piotr
Copy link
Owner

This is actually a bug, reported as #62. It has been fixed in v0.3.1, and the current version is 0.3.6. Please contact your package maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants