BadWindow error message exporting Motif app from Linux to dual-headed Sun - Motif

This is a discussion on BadWindow error message exporting Motif app from Linux to dual-headed Sun - Motif ; Hello, When trying to export the display from a Linux Box running openMotif 2.2.2-12 (RedHat 8) to a dual headed Sun, I get an X-Windows error. The Sun is up to date with its patches, even having the fix from ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: BadWindow error message exporting Motif app from Linux to dual-headed Sun

  1. BadWindow error message exporting Motif app from Linux to dual-headed Sun

    Hello,

    When trying to export the display from a Linux Box running openMotif
    2.2.2-12 (RedHat 8) to a dual headed Sun, I get an X-Windows error.
    The Sun is up to date with its patches, even having the fix from bug
    4349846 where Sun recognizes this specific problem.

    The error is:

    X Error of failed request: BadWindow (invalid window parameter)
    Major opcode of failed request: 19 (X_DeleteProperty)
    Resource ID in failed request: 0x0
    Serial number of failed request: 83
    Current serial number in output stream: 84

    I think it is something in my Motif, as some versions of my code work
    and others do not, but I can't see what is different that is causing
    this.

    Any suggestions would be really appreciated.

    Thanks

    John Layne

  2. Re: BadWindow error message exporting Motif app from Linux to dual-headed Sun

    This is a known problem with dual-display Suns.

    The quick workaround is to set the useColorObj resource to false, for example
    as an -xrm option such as:

    dtterm -xrm "*useColorObj:False"

    or by setting it on the X resource database of the display:

    echo "*useColorObj:False" | xrdb -merge

    Note you DON'T want this set when before the window manager starts, since it
    will cause CDE to look terrible, so don't add "*useColorObj: False" to your
    ..Xdefaults -- but you can add it for specific applications (for example
    "Dtterm*useColorObj: False").

    The more correct fix is to ensure you have the latest dtsession patch (for
    Solaris 7 it is 107702-09 or later, for Solaris 8 it is 109354-14 or later)
    and then modify all the files named sys.resources under /usr/dt/config --
    on my system there are two: /usr/dt/en_US.UTF-8/sys.resources and
    /usr/dt/C/sys.resources -- by adding the line:

    dtsession*cacheColors: False

    to those files. You'll then have to restart your X session for the change
    to take effect.

    -Pete Zakel
    (phz@seeheader.nospam)

    In article <13ad012d.0406211143.7ab5c84f@posting.google.com> jpl@lanl.gov (John Layne) writes:
    >Hello,
    >
    >When trying to export the display from a Linux Box running openMotif
    >2.2.2-12 (RedHat 8) to a dual headed Sun, I get an X-Windows error.
    >The Sun is up to date with its patches, even having the fix from bug
    >4349846 where Sun recognizes this specific problem.
    >
    >The error is:
    >
    >X Error of failed request: BadWindow (invalid window parameter)
    >Major opcode of failed request: 19 (X_DeleteProperty)
    >Resource ID in failed request: 0x0
    >Serial number of failed request: 83
    >Current serial number in output stream: 84
    >
    >I think it is something in my Motif, as some versions of my code work
    >and others do not, but I can't see what is different that is causing
    >this.
    >
    >Any suggestions would be really appreciated.
    >
    >Thanks
    >
    >John Layne




  3. Re: BadWindow error message exporting Motif app from Linux todual-headed Sun

    Pete nospam Zakel wrote:
    >
    > This is a known problem with dual-display Suns.


    Actually it's a bug in OpenMotif - see
    http://bugs.motifzone.net/show_bug.cgi?id=1181 ("Linux Motif binaries do
    not work with Solaris/Xsun Xserver"). Updating the OpenMotif version
    should cure the issue...

    ----

    Bye,
    Roland

    --
    __ . . __
    (o.\ \/ /.o) roland.mainz@nrubsig.org
    \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
    /O /==\ O\ TEL +49 641 7950090
    (;O/ \/ \O

  4. Re: BadWindow error message exporting Motif app from Linux to dual-headed Sun

    In article <40D7C1C5.D241FDBA@nrubsig.org> Roland Mainz writes:
    >Pete nospam Zakel wrote:
    >>
    >> This is a known problem with dual-display Suns.


    >Actually it's a bug in OpenMotif - see
    >http://bugs.motifzone.net/show_bug.cgi?id=1181 ("Linux Motif binaries do
    >not work with Solaris/Xsun Xserver"). Updating the OpenMotif version
    >should cure the issue...


    It doesn't just occur with OpenMotif -- it also occurs when displaying from
    an HP-UX system.

    The Solaris fix I gave will ensure that any Motif application will be able
    to display to a dual-headed Sun.

    Note the problem only occurs if the Sun system has two displays. Single
    display Suns work fine without the fix.

    -Pete Zakel
    (phz@seeheader.nospam)

    "Hindsight is an exact science."

+ Reply to Thread