#120 Virtual binding warnings on console

open-invalid
Eddy De Greef
Program (402)
3
2002-06-21
2002-01-16
Anonymous
No

How to get rid of these messages:

Cannot convert string "<Key>Escape,_Key_Cancel" to
type VirtualBindingCannot convert
string "<Key>Home,_Key_Begin" to type
VirtualBindingCannot convert
string "<Key>F1,_Key_Help" to type
VirtualBindingCannot convert
string "Shift<Key>F10,_Key_Menu" to type
VirtualBindingCannot convert
string "<Key>F10,Shift_Key_Menu" to type
VirtualBindingCannot convert
string "<Key>KP_Enter,_Key_Execute" to type
VirtualBindingCannot convert
string "Alt<Key>Return,Alt_Key_KP_Enter" to type
VirtualBinding

Thanks for help

/Lia

Discussion

  • Scott Tringali
    Scott Tringali
    2002-02-11

    Logged In: YES
    user_id=11321

    Sounds like your system's virtual bindings only for Motif.
    Most of the binaries on the website are built with 1.2.
    You can recompile NEdit with Motif 2.x so that it can
    understand 2.x. virtual bindings.

    Or, run this:

    xprop -root -remove _MOTIF_DEFAULT_BINDINGS

    before running NEdit, to see if it helps.

     
  • Scott Tringali
    Scott Tringali
    2002-02-11

    • priority: 5 --> 3
    • summary: Nedits problem --> Virtual binding warnings on console
     
  • Thorsten Haude
    Thorsten Haude
    2002-02-21

    Logged In: YES
    user_id=119143

    I get a similar message:
    - - -
    hde@acus82 /home/hde>nedit
    Cannot convert string "MetaCtrl<Key>Insert" to type VirtualBinding
    - - -

    This happens with every NEdit version I ever used, from 5.1.1 to a patched HEAD from this week, with both
    XFree86 3.3.6 and 4.1.0.1 and possibly some in between.

    - - -
    NEdit release of Feb 16, 2002

    Built on: Solaris, Sparc, Forte C
    Built at: Feb 19 2002, 20:24:32
    With Motif: 1002 [@(#)OSF/Motif Version 1.2.6]
    Running Motif: 1002
    Server: The XFree86 Project, Inc 40100001
    - - -

     
  • Eddy De Greef
    Eddy De Greef
    2002-03-06

    Logged In: YES
    user_id=73597

    I just got exactly the same message as you, Thorsten.
    I was running a Solaris binary displaying on a Linux box.
    It turns out that the virtual key bindings attached to the
    root window (by the Flash player, I believe) are not
    accepted by the Solaris Motif library.
    After removing the bindings, the warning disappeared.

    My guess it that something similar happened with the
    original poster.

    It looks harmless, though (I assume that Motif uses some
    defaults when it cannot parse the bindings for certain
    keys).

     
  • Scott Tringali
    Scott Tringali
    2002-06-21

    • labels: --> Program
    • assigned_to: nobody --> edg
    • status: open --> open-invalid
     
  • Scott Tringali
    Scott Tringali
    2002-06-21

    Logged In: YES
    user_id=11321

    I think we have a fix for this in 5.3. Ed, will the automatic
    insane-binding mechanism catch this (the malformed
    bindings with underscores), or does the user have to invoke it
    with the 'always' switch?

     
  • Eddy De Greef
    Eddy De Greef
    2002-06-21

    Logged In: YES
    user_id=73597

    The automatic mechanism currently only detects multiple
    bindings to the same virtual key, so it won't see this one.
    The mechanism can be extended, but then I need more
    information: are the underscores already present in
    the root window property or are they converted by the binding
    parsing routines before the error message is generated ?

    In other words, I need the output of
    xprop -root | grep _MOTIF_DEFAULT_BINDINGS
    in this case in order to be sure.

     
  • Thorsten Haude
    Thorsten Haude
    2002-06-26

    Logged In: YES
    user_id=119143

    Some more, NEdit is running on
    SunOS nameofhost 5.7 Generic_106541-18 sun4u sparc
    SUNW,Ultra-2
    displaying on
    SunOS nameofhost 5.6 Generic_105181-06 sun4m sparc
    SUNW,SPARCstation-20
    - - - Schnipp - - -
    patrol@ds3901a:~ $ nedit
    Cannot convert string "<Key>SunCopy" to type VirtualBinding
    Cannot convert string "<Key>SunCut" to type VirtualBinding
    Cannot convert string "<Key>SunPaste" to type VirtualBinding
    translation table syntax error: Unknown keysym name: SunFind
    ... found while parsing '<Key>SunFind:find-word()'
    - - - Schnapp - - -

    - - - Schnipp - - -
    NEdit Version 5.2
    October 2001

    Built on: Solaris, Sparc, Forte C
    Built at: Oct 25 2001, 10:39:57
    With Motif: 1002 [@(#)OSF/Motif Version 1.2.3]
    Running Motif: 1002
    Server: Sun Microsystems, Inc. 3600
    - - - Schnapp - - -

     
  • Scott Tringali
    Scott Tringali
    2002-06-26

    Logged In: YES
    user_id=11321

    I think multiple bindings to the same key are legal, but
    only with Motif 2. (I'll double check the source code.)
    However, the underscores are clearly malformed and should be
    considered "insane". We should probably consider the
    multiple bindings sane if NEdit is compiled with OSF Motif
    2.

     
  • Thorsten Haude
    Thorsten Haude
    2002-07-20

    Logged In: YES
    user_id=119143

    Another instance, NEdit is running on
    SunOS host1 5.7 Generic_106541-15 sun4u sparc
    SUNW,Ultra-Enterprise
    displaying on
    SunOS host2 5.6 Generic_105181-05 sun4u sparc
    SUNW,Ultra-60

    I get about a Gazillion errors, three lines of
    Cannot convert string "..." to type VirtualBinding
    and 273 instances of
    translation table syntax error: Unknown keysym name:
    osfActivate
    ... found while parsing
    ':<Key>osfActivate:ManagerParentActivate()'
    (So a Gazillion seems to be about 276.)

    This is the ofiicial binary:
    NEdit 5.3
    Jun 1, 2002

    Built on: Solaris, Sparc, Forte C
    Built at: Jun 3 2002, 10:34:36
    With Motif: 1002 [@(#)OSF/Motif Version 1.2.2]
    Running Motif: 1002
    Server: Sun Microsystems, Inc. 3600

    Another NEdit (also official binary) running from
    SunOS host3 5.6 Generic_105181-19 sun4u sparc
    SUNW,Ultra-2
    shows no error on the same display.

     
  • Thorsten Haude
    Thorsten Haude
    2002-07-20

    error log

     
    Attachments
  • Thorsten Haude
    Thorsten Haude
    2002-07-20

    Logged In: YES
    user_id=119143

    Forgot to mention the most important thing: Only letter and
    number keys work as expected, all others either insert
    control characters or do nothing. NEdit is almost unusable.

     
  • Thorsten Haude
    Thorsten Haude
    2002-09-05

    Logged In: YES
    user_id=119143

    The error reported on 2002-07-20 was due to a wrong
    $XKEYSYMDB setting. After unsetting $XKEYSYMDB, everything
    goes smooth.