<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<pre>Hello,</pre>
<pre>I am trying to use 2 wxVTKRenderWindow on a linux system</pre>
<pre>Whenever I try to interact with the second renderwindow the X server</pre>
<pre>crashes. The same problem occurs on two computers with more or less the</pre>
<pre>same configuration.</pre>
<pre>Here is one of the configuration :</pre>
VTK 3.2
<br>WXPython 2.3.1
<br>Python 2.1.1
<br>Redhat 7.2
<br>NVidia Quadro 2
<p>Any suggestion ?
<p>Thanks
<p>Fabrice
<p>Below, the code that causes the crash, followed by
the error message I get ( see end of file)
<p>########################### sample code ####################
<p>from wxPython.wx import *
<br>from wxPython.lib.vtk import *
<p>class MyApp (wxApp):
<br> def OnInit (self):
<br> print("In MyApp::OnInit")
<br> frame = wxFrame (NULL, -1, "wxVTKRenderWindow Demo!",size=(1200,550))
<p> w1=wxVTKRenderWindow(frame, -1,position=(1,1), size =(512, 512),style=wxRAISED_BORDER)
<br> w2=wxVTKRenderWindow(frame, -1,position=(600,1), size =(512,
512),style=wxRAISED_BORDER)
<p> r1=vtkRenderer()
<br> r2=vtkRenderer()
<p>
<br> w1._RenderWindow.AddRenderer(ra)
<br> w2._RenderWindow.AddRenderer(rb)
<p> #two planes
<br>
<p> p1=vtkPlaneSource()
<br> m1=vtkPolyDataMapper()
<br> m1.SetInput(p1.GetOutput())
<br> act1=vtkActor()
<br> act1.SetMapper(m1)
<p> p2=vtkPlaneSource()
<br> m2=vtkPolyDataMapper()
<br> m2.SetInput(p2.GetOutput())
<br> act2=vtkActor()
<br> act2.SetMapper(m2)
<br>
<br> r1.AddActor(act1)
<br> r2.AddActor(act2)
<br>
<p>
<br> frame.Show (true)
<br> self.SetTopWindow (frame)
<br> return true
<br>
<p>app = MyApp (0)
<p>app.MainLoop ()
<br>
<p>#######################################
<p>(...)
<br>(II) NVIDIA(0): AGP 4X successfully initialized
<br>(II) NVIDIA(0): Setting mode "1600x1200"
<br>(II) NVIDIA(0): Using XFree86 Acceleration Architecture (XAA)
<br> Screen to screen bit blits
<br> Solid filled rectangles
<br> Solid filled trapezoids
<br> Indirect CPU to Screen color expansion
<br> Solid Lines
<br> Scanline Image Writes
<br> Offscreen Pixmaps
<br> Driver provided FillSolidRects replacement
<br> Driver provided FillSolidSpans replacement
<br> Driver provided ReadPixmap replacement
<br> Setting up tile and stipple cache:
<br> 21 128x128 slots
<br> 4 256x256 slots
<br>(==) NVIDIA(0): Backing store disabled
<br>(==) NVIDIA(0): Silken mouse enabled
<br>(**) Option "dpms"
<br>(**) NVIDIA(0): DPMS enabled
<br>(II) Loading extension NV-GLX
<br>(II) Initializing built-in extension MIT-SHM
<br>(II) Initializing built-in extension XInputExtension
<br>(II) Initializing built-in extension XTEST
<br>(II) Initializing built-in extension XKEYBOARD
<br>(II) Initializing built-in extension LBX
<br>(II) Initializing built-in extension XC-APPGROUP
<br>(II) Initializing built-in extension SECURITY
<br>(II) Initializing built-in extension XINERAMA
<br>(II) Initializing built-in extension XFree86-Bigfont
<br>(II) Initializing built-in extension RENDER
<br>(II) [GLX]: Calling GlxExtensionInit
<br>(II) [GLX]: associated 42 out of 78 GLX visuals
<br>(**) Option "Protocol" "MouseManPlusPS/2"
<br>(**) Mouse0: Protocol: "MouseManPlusPS/2"
<br>(**) Option "CorePointer"
<br>(**) Mouse0: Core Pointer
<br>(**) Option "Device" "/dev/psaux"
<br>(==) Mouse0: Buttons: 3
<br>(**) Option "Emulate3Buttons" "no"
<br>(**) Option "ZAxisMapping" "4 5"
<br>(**) Mouse0: ZAxisMapping: buttons 4 and 5
<br>(II) Keyboard "Keyboard0" handled by legacy driver
<br>(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
<br>SetKbdSettings - type: 2 rate: 30 delay: 500 snumlk: 0
<br>SetKbdSettings - Succeeded
<br>AUDIT: Thu Jan 17 18:35:09 2002: 1466 X: client 6 rejected from local
host
<p>Fatal server error:
<br>Caught signal 11. Server aborting
<br>
<p>When reporting a problem related to a server crash, please send
<br>the full server output, not just the last messages.
<br>This can be found in the log file "/var/log/XFree86.0.log".
<br>Please report problems to xfree86@xfree86.org.
<br> </html>