[vtkusers] linux + wxpython : Multiple wxVTKrenderWindows problem

Fabrice Vincent vincent at theralys.com
Tue Feb 12 16:22:09 EST 2002


Hello,

I am trying to use 2 wxVTKRenderWindow on a linux system

Whenever I try to interact with the second renderwindow the X server

crashes. The same problem occurs on two computers with more or less the

same configuration.

Here is one of the configuration :

VTK 3.2
WXPython 2.3.1
Python 2.1.1
Redhat 7.2
NVidia Quadro 2

Any suggestion ?

Thanks

Fabrice

Below,   the  code that causes the crash, followed by the error message
I get  ( see end of file)

###########################  sample code  ####################

from wxPython.wx import *
from wxPython.lib.vtk import *

class MyApp (wxApp):
 def OnInit (self):
  print("In MyApp::OnInit")
  frame = wxFrame (NULL, -1, "wxVTKRenderWindow Demo!",size=(1200,550))

  w1=wxVTKRenderWindow(frame, -1,position=(1,1), size =(512,
512),style=wxRAISED_BORDER)
  w2=wxVTKRenderWindow(frame, -1,position=(600,1), size =(512,
512),style=wxRAISED_BORDER)

  r1=vtkRenderer()
  r2=vtkRenderer()


  w1._RenderWindow.AddRenderer(ra)
  w2._RenderWindow.AddRenderer(rb)

  #two planes


  p1=vtkPlaneSource()
  m1=vtkPolyDataMapper()
  m1.SetInput(p1.GetOutput())
  act1=vtkActor()
  act1.SetMapper(m1)

  p2=vtkPlaneSource()
  m2=vtkPolyDataMapper()
  m2.SetInput(p2.GetOutput())
  act2=vtkActor()
  act2.SetMapper(m2)

  r1.AddActor(act1)
  r2.AddActor(act2)



  frame.Show (true)
  self.SetTopWindow (frame)
  return true


app = MyApp (0)

app.MainLoop ()


#######################################

(...)
(II) NVIDIA(0): AGP 4X successfully initialized
(II) NVIDIA(0): Setting mode "1600x1200"
(II) NVIDIA(0): Using XFree86 Acceleration Architecture (XAA)
 Screen to screen bit blits
 Solid filled rectangles
 Solid filled trapezoids
 Indirect CPU to Screen color expansion
 Solid Lines
 Scanline Image Writes
 Offscreen Pixmaps
 Driver provided FillSolidRects replacement
 Driver provided FillSolidSpans replacement
 Driver provided ReadPixmap replacement
 Setting up tile and stipple cache:
  21 128x128 slots
  4 256x256 slots
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) Option "dpms"
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-GLX
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) [GLX]: Calling GlxExtensionInit
(II) [GLX]: associated 42 out of 78 GLX visuals
(**) Option "Protocol" "MouseManPlusPS/2"
(**) Mouse0: Protocol: "MouseManPlusPS/2"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/psaux"
(==) Mouse0: Buttons: 3
(**) Option "Emulate3Buttons" "no"
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(II) Keyboard "Keyboard0" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
SetKbdSettings - type: 2 rate: 30 delay: 500 snumlk: 0
SetKbdSettings - Succeeded
AUDIT: Thu Jan 17 18:35:09 2002: 1466 X: client 6 rejected from local
host

Fatal server error:
Caught signal 11.  Server aborting


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86 at xfree86.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020212/bbed00a3/attachment.htm>


More information about the vtkusers mailing list