<!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,&nbsp;&nbsp; the&nbsp; code that causes the crash, followed by
the error message I get&nbsp; ( see end of file)
<p>###########################&nbsp; sample code&nbsp; ####################
<p>from wxPython.wx import *
<br>from wxPython.lib.vtk import *
<p>class MyApp (wxApp):
<br>&nbsp;def OnInit (self):
<br>&nbsp; print("In MyApp::OnInit")
<br>&nbsp; frame = wxFrame (NULL, -1, "wxVTKRenderWindow Demo!",size=(1200,550))
<p>&nbsp; w1=wxVTKRenderWindow(frame, -1,position=(1,1), size =(512, 512),style=wxRAISED_BORDER)
<br>&nbsp; w2=wxVTKRenderWindow(frame, -1,position=(600,1), size =(512,
512),style=wxRAISED_BORDER)
<p>&nbsp; r1=vtkRenderer()
<br>&nbsp; r2=vtkRenderer()
<p>&nbsp;
<br>&nbsp; w1._RenderWindow.AddRenderer(ra)
<br>&nbsp; w2._RenderWindow.AddRenderer(rb)
<p>&nbsp; #two planes
<br>&nbsp;
<p>&nbsp; p1=vtkPlaneSource()
<br>&nbsp; m1=vtkPolyDataMapper()
<br>&nbsp; m1.SetInput(p1.GetOutput())
<br>&nbsp; act1=vtkActor()
<br>&nbsp; act1.SetMapper(m1)
<p>&nbsp; p2=vtkPlaneSource()
<br>&nbsp; m2=vtkPolyDataMapper()
<br>&nbsp; m2.SetInput(p2.GetOutput())
<br>&nbsp; act2=vtkActor()
<br>&nbsp; act2.SetMapper(m2)
<br>&nbsp;
<br>&nbsp; r1.AddActor(act1)
<br>&nbsp; r2.AddActor(act2)
<br>&nbsp;
<p>&nbsp;
<br>&nbsp; frame.Show (true)
<br>&nbsp; self.SetTopWindow (frame)
<br>&nbsp; return true
<br>&nbsp;
<p>app = MyApp (0)
<p>app.MainLoop ()
<br>&nbsp;
<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>&nbsp;Screen to screen bit blits
<br>&nbsp;Solid filled rectangles
<br>&nbsp;Solid filled trapezoids
<br>&nbsp;Indirect CPU to Screen color expansion
<br>&nbsp;Solid Lines
<br>&nbsp;Scanline Image Writes
<br>&nbsp;Offscreen Pixmaps
<br>&nbsp;Driver provided FillSolidRects replacement
<br>&nbsp;Driver provided FillSolidSpans replacement
<br>&nbsp;Driver provided ReadPixmap replacement
<br>&nbsp;Setting up tile and stipple cache:
<br>&nbsp; 21 128x128 slots
<br>&nbsp; 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.&nbsp; Server aborting
<br>&nbsp;
<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>&nbsp;</html>