-
Notifications
You must be signed in to change notification settings - Fork 317
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
xdotool Segmentation fault when run in VNC #126
Comments
i'm having this same problem on a raspberry pi 2 running raspbian jessie. please let me know if i can provide any other information as well. thanks for all the hard work! i'm going to try this again on a raspberry pi 3 in a couple of days to see if the same problem occurs! Edit: can confirm that this problem occurs on raspberry pi 3 as well |
Ditto here - raspberry pi 3 / jessie, everything updated to current. I even downloaded and compiled the source from here to get a newer version. Which weirdly, -version reports as 3.20141017.1 although CHANGELIST includes notes up to version 3.20160805.1 |
Also having this issue on Mint 18. It worked fine prior to upgrading. Is there a solution or work-around for this other than reverting back to Mint 17.3? It is really becoming problematic for me. Thanks! |
I tried to reproduce this using tigervnc:
It's working for me :\ |
Try it with tightvnc, that's what I'm having trouble with on a Raspberry Pi, as was dimecoin. I've run across this in other threads around the net, and it seems to usually be that combination, which I imagine is very popular since the Raspberry Pi website VNC instructions walks you through installing tightvnc, and Raspberry Pi is often a good use case for xdotool. |
oh wow, thanks for following up jordan! i love xdotool. but i agree with Maltz42, i was also using tightVNC on a fresh install of raspbian jessie and raspbian wheezy (i use raspberry pis a lot!). please let me know how i can help! thanks again! |
I can confirm that xdotools works as expected on Linux Mint 18 with tigervncserver installed vs. tightvncserver. I am not sure what tightvnc changed but it is not compatible. I am very pleased to have this functioning again. Thank you @jordansissel !! |
Ok cool thanks for the details about tightvnc maybe being a factor. I will On Wednesday, August 17, 2016, mgobill notifications@github.com wrote:
|
I am able to reproduce this with tightvnc:
|
The crash is here:
The failure is because XkbDescPtr desc = XkbGetMap(xdo->xdpy, XkbAllClientInfoMask, XkbUseCoreKbd); I'm not sure what to make of this. It seems like tightvnc doesn't support Xkb. I'm not sure what the correct fix for this would be, yet, anyway. |
The bbf0e70 commit switched to using Xkb to better support systems with multiple keyboards (I think?). Maybe the solution to this is that if XkbGetMap fails, we should fall back to the older implementation (before xkb was used). I think this would work for tightvnc, but I haven't tested. |
As a workaround, y'all can use edbbb7a (from December 2013) as a git commit and is successful on tightvnc:
|
great! thank you so much for looking into and and getting back to us! |
thanks for this hint! |
Would it be much work to fix/workaround this for vnc4server? |
I am not sure. We can try making one :)
…On Sat, Jan 7, 2017 at 4:29 AM Jeroen Meulenaar ***@***.***> wrote:
Would it be much work to fix/workaround this for vnc4server?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#126 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIC6suIEs7lrCGVQkC74_ZwMhiBRZTIks5rP4UVgaJpZM4JInL7>
.
|
I checked out edbbb7a and that version indeed works with vnc4server, so maybe that's already enough workaround for me now :). I don't think I know enough about the X window system to really code something myself... I'd be happy to test other solutions. |
Jordan, git remote add origin https://github.com/jordansissel/xdotool.git Thanks In Advance |
I'm also experiencing this with vnc4server and I've confirmed that edbbb7a addressed the problem. Thanks! |
FYI. Ubuntu 18.04 tightvnc xdotool crashes. Got git version commit edbbb7a which get rid of the issue, but need to "make xdotool.static" |
I spoke too soon. xdotool.static key --clearmodifiers Ctrl+Shift+T does nothing. But if I manually type, it works. |
@jordansissel When i run "git checkout edbbb7a" i get an error saying : "fatal: not a git repository (or any of the parent directories): .git"
@stayprivate Are you not getting segmentation fault (core dumped) anymore? |
You're in the wrong folder |
I tried edbbb7a and was even able to compile it after installing more x11 libraries But now running xdotool won't even run and reports this error homelx01:~/work_area/github_repos/xdotool$ xdotool What did I screw up :) ? Thank you |
At least on the current raspian edbbb7a does fix this issue, but only if you use |
Anyone can explain what needed for last debian 12 |
Ok for debian users |
FYI: the "xdotool.static" version and steps listed by Kvach-Lukich (thanks!) in post #126 (comment) also appear to work on my Libre Renegade (pi 'clone') running Armbian on an arm64 processor. As a check, I did a build of the current xdotool (today 8-Sep-2024) and got the Segmentation Fault issue. I'm running tightvncserver as a service on display :0. Also checked it running on demand using display :1. edbbb7a version works for both. full uname info: Linux renegade 6.6.39-current-rockchip64 #1 SMP PREEMPT Thu Jul 11 10:49:22 UTC 2024 aarch64 GNU/Linux |
If i run xdotool on a real display (ie, Display :0 with real videocard/monitor), it works fine. But if I run under VNC display, it gives segfault:
System info
Debian 8 (Jessie), x86_64
Linux server 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
Tried using using the following VNC servers (segfault on each) :
Using xdotool package:
vnc/xdotool all installed though debian's package management system (apt-get)
Let me know if I can provide any more information.
The text was updated successfully, but these errors were encountered: