-
Notifications
You must be signed in to change notification settings - Fork 59
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
umockdev-record does not record anything if recorded program overrides SIGINT #96
Comments
I tried running on another pc and devices (keyboard, external mouse, touchpad) (umockdev installation). But I didn't get any result. |
Also I tried install and run steps on another Ubuntu versions. (16,04 and 18,04) I got same error. |
Yes, I have this exact issue. I'm not sure why no one has attempted to provide a solution. Is this a problem that is not common at all? |
Probably many people did not occur this problem. |
You're missing one half of the commands, you also need to create the (even though that doesn't work for me either) |
Nothing is getting saved to disk:
Looks like |
The interrupt handler in evtest is however getting triggered. Removing the signal handlers in evtest fixes it. It might be useful to find a way to install the signal handler in a more robust way in
|
I'm of course open to suggestions how else umockdev-record (i.e. the preload library) could be told to stop recording and start writing the file. SIGINT seemed like an obvious choice back then, but indeed signal handlers don't chain well. Another possibility is to add some timeout to evtest and just let that exit cleanly? |
Note that this changes the ioctl_tree_insert API to be more vala friendly. i.e. it will return the new tree pointer, and it will always take the passed tree node, free'ing it if a duplicate has been found. This fixes storing the record if the process overrides SIGINT for ioctl's. See martinpitt#96
Note that this changes the ioctl_tree_insert API to be more vala friendly. i.e. it will return the new tree pointer, and it will always take the passed tree node, free'ing it if a duplicate has been found. This fixes storing the record if the process overrides SIGINT for ioctl's. See martinpitt#96
Hello. I am having the same problem. Has this issue been resolved? Or has anyone got a work around? |
@georgiablanco : It has not been resolved, no. This will require some bigger reworking which didn't land yet. (I tried to reply to your email, and your hotmail server rejected it 🤷 ) |
Just to check my understanding of the situation, correct me if I'm wrong: Because Does this mean that https://github.com/martinpitt/umockdev#record-and-replay-input-devices does not currently work? Is there an |
Note that this changes the ioctl_tree_insert API to be more vala friendly. i.e. it will return the new tree pointer, and it will always take the passed tree node, free'ing it if a duplicate has been found. This fixes storing the record if the process overrides SIGINT for ioctl's. See martinpitt#96
Note that this changes the ioctl_tree_insert API to be more vala friendly. i.e. it will return the new tree pointer, and it will always take the passed tree node, free'ing it if a duplicate has been found. This fixes storing the record if the process overrides SIGINT for ioctl's. See martinpitt#96
Note that this changes the ioctl_tree_insert API to be more vala friendly. i.e. it will return the new tree pointer, and it will always take the passed tree node, free'ing it if a duplicate has been found. This fixes storing the record if the process overrides SIGINT for ioctl's. See martinpitt#96
Note that this changes the ioctl_tree_insert API to be more vala friendly. i.e. it will return the new tree pointer, and it will always take the passed tree node, free'ing it if a duplicate has been found. This fixes storing the record if the process overrides SIGINT for ioctl's. Fixes martinpitt#96
I want to mock touchpad. But I didn't record anything into ioctl file.
When I was checking to mouse.ioctl file, I saw only this part
Probably, I didn't record anything. But I didn't get any error messages after following step;
sudo umockdev-record -i /dev/input/event5=mouse.ioctl -e /dev/input/event5=mouse.events -- evtest /dev/input/event5
But I got this error message after following step;
umockdev-run -d mouse.umockdev -i /dev/input/event5=mouse.ioctl -e /dev/input/event5=mouse.events -- evtest /dev/input/event5
Do you want to recommend anything else?
The text was updated successfully, but these errors were encountered: