Hi Lee,

The sample code is a work in progress which I posted.  It's based on the
previous osgviewerQt example with an added Qt Designer generated interface
description developed by a co-worked of mine, and miscellaneous
patches and fixes I found in the OSG archives.


The Bad Window errors are noted in a comment in the example code...

  We may have just gotten some Bad Window errors from X11 calling
  XGetWindowAttributes before the Window has been realized.
  We'll also have garbage in the traits which get fixed up next.

I think these arise as a result of OSG trying to get the size of an X Window
before it's been realized. These are nuisance errors that I'd like to see go away before my code goes production, but don't really affect the behavior
of the example.

I haven't seen the lock up on resize under Qt-4.4.3 and don't have a clue
why this is a problem under Kde and not Gnome.  I do see the frozen
"Outboard" window.  This is not "buggy" behavior but a deficiency in the
example code, i.e. a logic error.

-Don





------------------------------------------------------------------------

Subject:
[osg-users] osgviewerQtWidget example issues (UNCLASSIFIED)
From:
"Butler, Lee Mr CIV USA USAMC" <[email protected]>
Date:
Mon, 27 Jul 2009 16:52:54 -0400
To:
"'OpenSceneGraph Users'" <[email protected]>


Classification: UNCLASSIFIED
Caveats: NONE

The example code has problems on my machine (RedHat 5, Qt 4.5.2, NVidia
185.18.14, KDE).  I've got svn revision 10512 from HEAD.

The code compiles just fine (using qmake) but on startup I get:

X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 3 (X_GetWindowAttributes)
  Resource id:  0x2200017
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200017
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200017
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 3 (X_GetWindowAttributes)
  Resource id:  0x2200043
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200043
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200043
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 3 (X_GetWindowAttributes)
  Resource id:  0x2200045
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200045
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200045
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 3 (X_GetWindowAttributes)
  Resource id:  0x220004f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x220004f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x220004f
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 3 (X_GetWindowAttributes)
  Resource id:  0x2200051
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200051
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 18 (X_ChangeProperty)
  Resource id:  0x2200051

I can resize the "outboard" window without any problem, but attempting to
resize the "main" window causes X11 to lock up.

If I switch to gnome, it runs OK.

Under either Gnome or KDE, selecting "Main->Exit" from the application
causes the main window to close, but leaves a frozen "Outboard" window
behind.  The application does not quit until the outboard window is closed.

Lee

Classification: UNCLASSIFIED
Caveats: NONE







_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to