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

i3-dmenu-desktop stop working #3619

Open
jas01 opened this Issue Feb 12, 2019 · 14 comments

Comments

Projects
None yet
7 participants
@jas01
Copy link

jas01 commented Feb 12, 2019

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

After upgrading to the last version (on Arch linux), the i3-dmenu-desktop stop working, at the first I thought it's i3-demnu-desktop script who got problem, but I'm not sure at all because I try another laucnher (j4-dmenu-desktop) and end up with exact same behavior. Which mean, when I press the $mod+d (default config) I got the popup menu, but it's impossible to enter anything, at the first key press the popup close. I also notice in my terminal (termite) the cursor change color (like it's not on focus), and event when the popup are close the cursor don't come back to standard color (but I still can use the terminal)

Reproduction Instructions

Just press $mod+d or whatever the shortcut are to start the launcher

Environment

Output of i3 --moreversion 2>&-:

Binary i3 version:  4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16.1 (2019-01-27) (pid 1093)abort…)
Loaded i3 config: /home/jas/.config/i3/config (Last modified: mar. 12 févr. 2019 15:49:33 CET, 408 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

The bug is present event with the default config, the only thing is to uncomment the line

# bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop

Log file

Logfile URL: https://logs.i3wm.org/logs/5693735937507328.bz2
- Linux Distribution & Version: Arch linux. 
- Are you using a compositor (e.g., xcompmgr or compton): No (or I'guessing no ;)

@i3bot i3bot added the bug label Feb 12, 2019

@i3bot

This comment has been minimized.

Copy link

i3bot commented Feb 12, 2019

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@orestisf1993

This comment has been minimized.

Copy link
Member

orestisf1993 commented Feb 12, 2019

What happens when you run it from the terminal?

@jas01

This comment has been minimized.

Copy link
Author

jas01 commented Feb 12, 2019

It's not working either.

Invalid input: “” does not match any application. Trying to execute nevertheless. at /sbin/i3-dmenu-desktop line 384.
ERROR: Your command: exec --no-startup-id ""
ERROR:                                     ^
ERROR: Expected one of these tokens: '--no-startup-id', <string>
[{"success":false,"parse_error":true,"error":"Expected one of these tokens: '--no-startup-id', <string>","input":"exec --no-startup-id \"\"","errorposition":"                      ^"}]

@nimaje

This comment has been minimized.

Copy link

nimaje commented Feb 12, 2019

what happens if you run dmenu <&- from the terminal?

@jas01

This comment has been minimized.

Copy link
Author

jas01 commented Feb 13, 2019

what happens if you run dmenu <&- from the terminal?

Crash with coredump.
I've no idea if it's dmenu fault or i3 or both.

Do you need the dump file ?

@iokzero

This comment has been minimized.

Copy link

iokzero commented Feb 23, 2019

Same exact problem here on my end using Manjaro. actually both Dmenu, and Morc-menu have the same exact behavior. No useful log or error message what so ever, except Segmentation fault (core dumped). So don't know what happen, and can't launch anything without the Terminal at the moment.

@orestisf1993

This comment has been minimized.

Copy link
Member

orestisf1993 commented Feb 23, 2019

Segmentation fault means that this is probably a dmenu bug. Just to confirm, does this happen with other window managers? Eg openbox.

@iokzero

This comment has been minimized.

Copy link

iokzero commented Feb 23, 2019

I don't have other window managers install except for i3.
But in the case of Morc-menu, there's no error message at all, it just quit.
I got a feeling that the two are sharing a root problems.

@jas01

This comment has been minimized.

Copy link
Author

jas01 commented Mar 11, 2019

@joshhansen

This comment has been minimized.

Copy link

joshhansen commented Mar 21, 2019

I am getting this same problem after a recent upgrade on Fedora 29. Current versions are i3 4.16 and dmenu 4.9. When I invoke dmenu through the i3 shortcut, the input dialogue appears but any input I type causes it to exit.

I can reproduce this from the command line by running dmenu with no arguments, then entering CTRL+D to send it an empty input. The input dialogue then appears and any input entered results in a segmentation fault.
In gdb, this looks like:

gdb dmenu
(gdb) run < /dev/null
...
Program received signal SIGSEGV, Segmentation fault.
XmbLookupString (ic=0x0, ev=0x7fffffffcf50, buffer=0x7fffffffd010 <incomplete sequence \302>, nbytes=32, keysym=0x7fffffffcec0, status=0x7fffffffcdc0) at ICWrap.c:403
403	    if (ic->core.im)

After that it's difficult to debug because the frozen dmenu instance still seems to have a hold of all keyboard inputs from within the debugger.

@Airblader

This comment has been minimized.

Copy link
Member

Airblader commented Mar 21, 2019

This does still strongly suggest a bug in dmenu. It would be good if someone could report it over there and crosslink here.

@joshhansen

This comment has been minimized.

Copy link

joshhansen commented Mar 21, 2019

@Airblader

This comment has been minimized.

Copy link
Member

Airblader commented Mar 21, 2019

The original development of dmenu is coming from suckless: https://tools.suckless.org/dmenu/

They seem to handle bug reports via mailing list, which makes crosslinking tricky. Perhaps putting the i3 mailing list on CC would work.

@joshhansen

This comment has been minimized.

Copy link

joshhansen commented Mar 22, 2019

@Airblader Is the i3 mailing list i3-discuss@freelists.org ? Getting that bug report ready to send....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.