Shizcow / dmenu-rs

A pixel perfect port of dmenu, rewritten in Rust with extensive plugin support
GNU General Public License v3.0
202 stars 9 forks source link

Crashes with i3-dmenu-desktop #20

Closed ibrokemypie closed 4 years ago

ibrokemypie commented 4 years ago

With both i3-dmenu-desktop and j4-dmenu-desktop, dmenu-rs crashes

RUST_BACKTRACE=full j4-dmenu-desktop
Read 416 .desktop files, found 339 apps.
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', ../dmenu/drw.rs:172:24
stack backtrace:
   0:     0x55e4a565a7f4 - <unknown>
   1:     0x55e4a56864ac - <unknown>
   2:     0x55e4a5654133 - <unknown>
   3:     0x55e4a565d045 - <unknown>
   4:     0x55e4a565cd82 - <unknown>
   5:     0x55e4a565d6a2 - <unknown>
   6:     0x55e4a565d28b - <unknown>
   7:     0x55e4a5684c21 - <unknown>
   8:     0x55e4a5684b6d - <unknown>
   9:     0x55e4a52aa01a - <unknown>
  10:     0x55e4a52a971f - <unknown>
  11:     0x55e4a52a485a - <unknown>
  12:     0x55e4a52ab011 - <unknown>
  13:     0x55e4a529fcc4 - <unknown>
  14:     0x55e4a52bccf3 - <unknown>
  15:     0x55e4a565dbb8 - <unknown>
  16:     0x55e4a529fe52 - <unknown>
  17:     0x7f73da861002 - __libc_start_main
  18:     0x55e4a529e18e - <unknown>
  19:                0x0 - <unknown>
Shizcow commented 4 years ago

This looks familiar. I may have just fixed this yesterday, but the changes haven't made it to master yet.

Can you test with the development branch? The aur package is dmenu-rs-git.

ibrokemypie commented 4 years ago

Yep the git version seems to work!

Shizcow commented 4 years ago

Glad this was resolved. These changes will be on master pretty shortly.