bug-xnee
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-xnee] "WARNING: Enough valuators ... still not printing" - what


From: L. Rahyen
Subject: Re: [Bug-xnee] "WARNING: Enough valuators ... still not printing" - what does it mean?
Date: Wed, 18 Apr 2012 06:34:41 +0000
User-agent: KMail/1.13.7 (Linux/3.3.0-trunk-amd64; KDE/4.7.4; x86_64; ; )

> Thanks, for your quick reply
> 
> Now the checksum of the tar is the same as on sandklef.com and I've
> managed to download and unpack it.
> 
> Don't know what went wrong.

        Thanks. I compiled the new version. The bug is partially fixed. When I 
record both mouse and keyboard, or mouse events only, it works as expected (see 
logs in attached files "mouse" and "mouse-keyboard"). But when I record 
keyboard events (by running "./cnee --record --events-to-record 100 
--keyboard"), I get the following output when moving my mouse (see attached 
file "keyboard" for full log):

...
WARNING: Enough valuators,but non motion/button event so not printing
0,100,0,0,0,0,0,582689301
...

        So, if I want to capture specified amount of keyboard events, I can't, 
because when using --keyboard option (without --mouse) xnee thinks that mouse 
motion is an event (for some strange reason, the warning says its non-motion 
event, but it is). In this case, instead of 100 keyboard events I was able to 
record only 4 because of few moments of mouse motion.
        When recording logs, I first pressed Shift on the keyboard twice, then 
a button on the mouse, then moved the mouse around for few seconds. Looks like 
your fix works as expected only when mouse events are recorded and does not 
otherwise.

        The following is not related to the bug, but I ask anyway. Is there any 
reason for printing and counting each event three times? For example, if I ask 
xnee to capture 6 keyboard events, it will capture 2 instead (Shift-down and 
Shift-up in this case):

% ./cnee --record --events-to-record 6 --keyboard
...
7,2,0,0,0,50,0,504416288,20,TypeMatrix.com USB Keyboard
0,2,0,0,0,50,0,504416288
6,2,0,0,0,50,0,504416288,3,Virtual core keyboard
7,3,0,0,0,50,0,504416384,20,TypeMatrix.com USB Keyboard
0,3,0,0,0,50,0,504416384
6,3,0,0,0,50,0,504416384,3,Virtual core keyboard

        To me this looks like unexpected behavior. "0,2,0,0,0,50,0,504416288" 
and "0,3,0,0,0,50,0,504416384" contain only duplicate information, and virtual 
core events seem to always repeat real device events, so basically they contain 
duplicate information too. I naturally expect to see this output instead:

% ./cnee --record --events-to-record 2 --keyboard
...
7,2,0,0,0,50,0,504416288,20,TypeMatrix.com USB Keyboard
7,3,0,0,0,50,0,504416384,20,TypeMatrix.com USB Keyboard

        When I ask for 6 keyboard events to be recorded, I expect 6 events to 
be recorded, not 2. If there is valid reason for current behavior, I would 
appreciate if you explain it, perhaps I'm missing something here? This is true 
for mouse too. Also, this unnecessary duplication makes log files about 3 times 
larger.

> On Tue, Apr 17, 2012 at 03:09:56AM +0000, L. Rahyen wrote:
> > > New unofficial release here:
> > >   http://www.sandklef.com/test/xnee-3.11.90.tar.gz
> >     It seems to be broken:
> > 
> > % tar -xzf xnee-3.11.90.tar.gz                    
> > 
> > gzip: stdin: unexpected end of file
> > tar: Unexpected EOF in archive
> > tar: Unexpected EOF in archive
> > tar: Error is not recoverable: exiting now
> > 
> >     Please re-upload it. Thanks again for spending your time to fix this 
> > bug.
> > 
> > > On Thu, Feb 23, 2012 at 12:50:21PM +0100, Henrik Sandklef wrote:
> > > > On Wed, Jan 18, 2012 at 10:41:19PM +0000, L. Rahyen wrote:
> > > > >       When I run:
> > > > > cnee --record --keyboard
> > > > > 
> > > > >       I get "WARNING: Enough valuators ... still not printing" after 
> > > > > every 
> > > > > event. What does this mean?
> > > > > 
> > > > >       Also, empty mouse motion events are recorded in the form of 
> > > > > "0,100,0,0,0,0,0,LARGE_NUMBER", and I want to record keyboard-only 
> > > > > events. 
> > > > 
> > > > This does not look like a mouse event (shouldn't say 100 in the second
> > > > column). It does however look like a bug :(
> > > > 
> > > > > By 
> > > > > the way, with "--mouse" option empty mouse motion events are also 
> > > > > recorded, but 
> > > > > useful mouse motion events are recorded too (like 
> > > > > "0,6,336,895,0,0,0,LARGE_NUMBER"). It looks like there is a bug 
> > > > > somewhere, but 
> > > > > perhaps I'm doing something wrong?
> > > > 
> > > > This looks like a "classic" mouse event. With classic I mean that it
> > > > is not an X Input event (which in the first column says 6 or 7).
> > > > 
> > > > How did you get Xnee (3.11)? From your distribution or did you compile 
> > > > it from source?
> > > > 
> > > > Your log file says  "XI2 not supported." and then it seems to be 
> > > > recording XI anyhow. This is odd.
> > > > 
> > > > Do you have XI? Try doing this to check:
> > > >        xdpyinfo | grep -i inputext
> > > > 
> > > > >       I have attached log file. First, I run "cnee --record 
> > > > > --keyboard", then 
> > > > > press Shift, then move my mouse a bit, then press Ctrl+C. Expected 
> > > > > result is no 
> > > > > empty mouse motion events (especially without "--mouse" option), and 
> > > > > no 
> > > > > WARNINGs, and no segfault when I press Ctrl+C. Instead I got what is 
> > > > > shown in 
> > > > > the log.
> > > > 
> > > > Try using "-sk q". This makes Xnee stop recording when you press q.
> > > > 
> > > > /hesa
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > > % cnee --record --keyboard
> > > > > XI2 not supported.
> > > > > Failed finding X Input extension devices
> > > > > XI2 not supported.
> > > > > Failed finding X Input extension devices
> > > > > XI2 not supported.
> > > > > NOTIFICATION: If you have problem with Xnee and recording device 
> > > > > events: File a bug report including this text.
> > > > > NOTIFICATION: If you have problem with Xnee and recording device 
> > > > > events: File a bug report including this text.
> > > > > Workaround: Creating context on data display instead of control 
> > > > >             You can ignore this message
> > > > > ####################################
> > > > > #         System information       #
> > > > > ####################################
> > > > > # Date:                   2012:01:18 
> > > > > # Time:                   21:29:39 
> > > > > # Xnee program:           cnee 
> > > > > # Xnee version:           3.11 
> > > > > # Xnee home:              http://www.gnu.org/software/xnee/ 
> > > > > # Xnee info mailing list: address@hidden 
> > > > > # Xnee bug mailing list:  address@hidden 
> > > > > # X version:              11 
> > > > > # X revision:             0 
> > > > > # X vendor:               The X.Org Foundation 
> > > > > # X vendor release:       11102902 
> > > > > # Record version major:   1
> > > > > # Record version minor:   13
> > > > > # OS name:                Linux 
> > > > > # OS Release:             3.1.0-1-amd64 
> > > > > # OS Version:             #1 SMP Tue Jan 10 05:01:58 UTC 2012 
> > > > > # Machine:                x86_64 
> > > > > # Nodename:               comp 
> > > > > # Display name:           :0
> > > > > # Dimension:              3120x1050
> > > > > 
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Xnee application arguments            #
> > > > > ##############################################
> > > > > #  cnee --record --keyboard 
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Displays                              #
> > > > > ##############################################
> > > > > # display :0
> > > > > # distribute
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Files                                 #
> > > > > ##############################################
> > > > > # out-file stdout
> > > > > # err-file stderr
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Key Grabs                             #
> > > > > ##############################################
> > > > > # stop-key         0
> > > > > # pause-key        0
> > > > > # resume-key       0
> > > > > # insert-key       0
> > > > > # exec-key         0
> > > > > # exec-program-key         xnee-exec-no-program
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Recording limits etc                  #
> > > > > ##############################################
> > > > > 
> > > > > events-to-record        -1
> > > > > data-to-record          -1
> > > > > seconds-to-record       -1
> > > > > # first-last
> > > > > 
> > > > > # Record  all (including current) clients or only future ones
> > > > > all-clients
> > > > > # future-clients
> > > > > 
> > > > > # Store the starting mouse position 
> > > > > # store-mouse-position
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Resolution                            #
> > > > > ##############################################
> > > > > 
> > > > > # Resolution
> > > > > #recorded-resolution  3120x1050
> > > > > #replay-resolution  1x1
> > > > > #resolution-adjustment  0
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Speed                                 #
> > > > > ##############################################
> > > > > 
> > > > > # Speed
> > > > > #speed-percent  100
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Replaying limits etc                  #
> > > > > ##############################################
> > > > > 
> > > > > max-threshold 20 
> > > > > min-threshold 20 
> > > > > tot-threshold 40 
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Feedback                              #
> > > > > ##############################################
> > > > > #feedback-none
> > > > > #feedback-stderr
> > > > > feedback-xosd
> > > > >  
> > > > > 
> > > > > 
> > > > > ##############################################
> > > > > #      Various                               #
> > > > > ##############################################
> > > > > 
> > > > > # Plugin file 
> > > > > 
> > > > > # Modes (currently not used)
> > > > > # synchronised-replay
> > > > > 
> > > > > # Replay offset
> > > > > #replay-offset 0x0
> > > > > 
> > > > > # Human printout of X11 data (instead of Xnee format)
> > > > > # human-printout  
> > > > > 
> > > > > # Delay before starting record/replay
> > > > > # time 0
> > > > > 
> > > > > # No recording of ReparentNotify
> > > > > # no-reparent-recording 
> > > > > 
> > > > > # Various
> > > > > #########################################
> > > > > #          Record settings              #
> > > > > #########################################
> > > > > #   data_flags          7
> > > > > #   rState              0xf3e010
> > > > > #   xids[0]             3
> > > > > #   xids[1]             0
> > > > > # Number of Ranges      2
> > > > > # RecordRange[0]
> > > > > request-range            0-0
> > > > > reply-range                   0-0 
> > > > > extension-request-major-range  0-0 
> > > > > extension-request-minor-range  0-0 
> > > > > extension-reply-major-range   0-0
> > > > > extension-reply-minor-range   0-0 
> > > > > delivered-event-range         21-21 
> > > > > device-event-range            2-3 
> > > > > error-range                   0-0 
> > > > > # RecordRange[1]
> > > > > request-range            0-0
> > > > > reply-range                   0-0 
> > > > > extension-request-major-range  0-0 
> > > > > extension-request-minor-range  0-0 
> > > > > extension-reply-major-range   0-0
> > > > > extension-reply-minor-range   0-0 
> > > > > delivered-event-range         0-0 
> > > > > device-event-range            100-102 
> > > > > error-range                   0-0 
> > > > > Workaround: Creating context on data display instead of control 
> > > > >             You can ignore this message
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,101,0,0,0,0,0,151626341
> > > > > 0,2,0,0,0,50,0,151626341
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,101,0,0,0,0,0,151626341
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,102,0,0,0,0,0,151626565
> > > > > 0,3,0,0,0,50,0,151626565
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,102,0,0,0,0,0,151626565
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,100,0,0,0,0,0,151630352
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,100,0,0,0,0,0,151630352
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,100,0,0,0,0,0,151632192
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,100,0,0,0,0,0,151632192
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,100,0,0,0,0,0,151632400
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,100,0,0,0,0,0,151632400
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,101,0,0,0,0,0,151633661
> > > > > 0,2,0,0,0,64,0,151633661
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,101,0,0,0,0,0,151633661
> > > > > ^Csighandler SIGINT (2)
> > > > > Workaround: Creating context on data display instead of control 
> > > > >             You can ignore this message
> > > > > WARNING: Enough valuators ... still not printing
> > > > > 0,101,0,0,0,0,0,151633837
> > > > > zsh: segmentation fault  cnee --record --keyboard
> > > > 
> > > > > _______________________________________________
> > > > > Bug-xnee mailing list
> > > > > address@hidden
> > > > > https://lists.gnu.org/mailman/listinfo/bug-xnee
> > > > 
> > > > 
> > > > _______________________________________________
> > > > Bug-xnee mailing list
> > > > address@hidden
> > > > https://lists.gnu.org/mailman/listinfo/bug-xnee
> > > > 
> > > 
> > 
> > _______________________________________________
> > Bug-xnee mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/bug-xnee
> > 
> 

Attachment: keyboard
Description: Text document

Attachment: mouse
Description: Text document

Attachment: mouse-keyboard
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]