[vtkusers] Python + vtkRenderWidget + SGI Irix = bus error
tdsternberg at lbl.gov
tdsternberg at lbl.gov
Fri Feb 1 17:16:43 EST 2002
The following short Python program results in a bus error when run on an
SGI IRIX64 6.5 system.
The program seems to start up all right, but the bus error comes as
soon as I move my mouse over the Vtk display a little.
As far as I can tell, my Vtk build is good; the programs in
graphics/examplesPython run without a hitch. Moreover, a Tcl version of
this program works just fine.
Yes, I am setting the VTK_TK_WIDGET_PATH environment variable.
Ted Sternberg
Lawrence Berkeley National Laboratory
------------------- cut here --------------------------
import Tkinter
import vtkpython
import vtkRenderWidget
root = Tkinter.Tk()
ren_widget = vtkRenderWidget.vtkTkRenderWidget( root )
ren_win = ren_widget.GetRenderWindow()
renderer = vtkpython.vtkRenderer()
ren_win.AddRenderer( renderer )
ren_widget.pack( expand=1, fill=Tkinter.BOTH )
# A cone
cone = vtkpython.vtkConeSource()
cone.SetResolution(8)
coneMapper = vtkpython.vtkPolyDataMapper()
coneMapper.SetInput(cone.GetOutput())
coneActor = vtkpython.vtkActor()
coneActor.SetMapper(coneMapper)
renderer.AddActor(coneActor)
# Another Tkinter thing to put into our root window.
Tkinter.Button( root, text='my button' ).pack()
root.mainloop()
------------------- cut here -------------------------
Here is a stack trace:
dbx version 7.3.1 68542_Oct26 MR Oct 26 2000 17:50:34
Core from signal SIGBUS: Bus error
(dbx) where
where
> 0 float_sub(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Objects/floatobject.c":370, 0x100500b8]
1 binary_op1(0x100fe5b4, 0x1015a278, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Objects/abstract.c":337, 0x1003d03c]
2 binary_op(0x100fe5b4, 0x1015a278, 0x4, 0x0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Objects/abstract.c":373, 0x1003d250]
3 PyNumber_Subtract(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Objects/abstract.c":543, 0x1003d944]
4 eval_code2(0x101dc600, 0x0, 0x0, 0x0, 0x1015a278, 0x0, 0x0, 0x0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":1015, 0x10037218]
5 fast_function(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":3015, 0x1003ad3c]
6 eval_code2(0x101dca50, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":1966, 0x100374c8]
7 fast_function(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":3015, 0x1003ad3c]
8 eval_code2(0x101dab58, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":1966, 0x100374c8]
9 call_eval_code2(0x0, 0x101f32ac, 0x1, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2959, 0x1003aa40]
10 call_object(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2799, 0x1003a4f0]
11 PyEval_CallObjectWithKeywords(0x0, 0x101f32ac, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2734, 0x1003a2c4]
12 builtin_apply(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x0, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/bltinmodule.c":90, 0x10076ca4]
13 call_object(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2801, 0x1003a508]
14 do_call(0x0, 0x101f2dfc, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":3116, 0x1003b244]
15 eval_code2(0x101768e8, 0x0, 0x0, 0x0, 0x2, 0x0, 0x0, 0x0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":1948, 0x10035104]
16 call_eval_code2(0x0, 0x1029b354, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2959, 0x1003aa40]
17 call_object(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2799, 0x1003a4f0]
18 call_method(0x0, 0x1029b354, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x1029b354) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2916, 0x1003a8e4]
19 call_object(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2797, 0x1003a4d8]
20 PyEval_CallObjectWithKeywords(0x0, 0x10298704, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2734, 0x1003a2c4]
21 PythonCmd(0x10298704, 0x0, 0x0, 0x0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Modules/_tkinter.c":1279, 0x100878c4]
22 TclInvokeStringCommand(0x0, 0x0, 0x14, 0x101d1078, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclBasic.c":1752, 0x4028bf8]
23 TclExecuteByteCode(0x101d0e38, 0x1029b268, 0x1029b2f8, 0x13, 0x101d1028, 0x1011d5e8, 0x101d0e38, 0x0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclExecute.c":873
, 0x404edd0]
24 Tcl_ExprObj(0x101d0e38, 0x0, 0x0, 0x0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclBasic.c":3779, 0x402b3e0]
25 Tcl_ExprBooleanObj(0x0, 0x1015a278, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclBasic.c":3151, 0x402a644]
26 Tcl_IfObjCmd(0x100fe5b4, 0x0, 0x3, 0x0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclCmdIL.c":200, 0x4032d84]
27 EvalObjv(0x101d0e38, 0x3, 0x0, 0x0, 0x0, 0x0, 0x100be338, 0x0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclParse.c":932, 0x407b1fc]
28 Tcl_EvalEx(0x101d0e38, 0x7fff250c, 0x7fff226c, 0x3, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclParse.c":1393, 0x407be3c]
29 Tcl_Eval(0x101d0e38, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclParse.c":1548, 0x407c150]
30 Tcl_GlobalEval(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclBasic.c":4149, 0x402bbd0]
31 Tk_BindEvent(0x7fff250c, 0x0, 0x0, 0x0, 0x101d0e38, 0x10217aa8, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tk8.3.3/generic/tkBind.c":1775, 0x5ff2a7a8
]
32 TkBindEventProc(0x1010a958, 0x0, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tk8.3.3/generic/tkCmds.c":244, 0x5ff30b10]
33 Tk_HandleEvent(0x10297c08, 0x10, 0x4, 0x10, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tk8.3.3/generic/tkEvent.c":864, 0x5ff38c04]
34 WindowEventProc(0x0, 0xffffffff, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tk8.3.3/generic/tkEvent.c":1199, 0x5ff3932c]
35 Tcl_ServiceEvent(0xffffffff, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclNotify.c":607, 0x40780b0]
36 Tcl_DoOneEvent(0xffffffff, 0x1015a278, 0x0, 0x0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/tcl8.3.3/generic/tclNotify.c":846, 0x4078424]
37 Tkapp_MainLoop(0x100fe5b4, 0x0, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Modules/_tkinter.c":1685, 0x10088a34]
38 call_object(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":2801, 0x1003a508]
39 do_call(0x0, 0x101cc82c, 0x0, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":3116, 0x1003b244]
40 eval_code2(0x1016d940, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":1948, 0x10035104]
41 fast_function(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":3015, 0x1003ad3c]
42 eval_code2(0x10119890, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":1966, 0x100374c8]
43 PyEval_EvalCode(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/ceval.c":341, 0x10033818]
44 run_node(0x1011a148, 0x1015a278, 0x0, 0x0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/pythonrun.c":1045, 0x10043168]
45 PyRun_FileExFlags(0x0, 0x0, 0x4, 0x0, 0x0, 0xfb4af10, 0x0, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/pythonrun.c":1023, 0x100430e0]
46 PyRun_SimpleFileExFlags(0x0, 0x7fff3007, 0x0, 0x0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/pythonrun.c":665, 0x10041fb4]
47 PyRun_AnyFileExFlags(0xfb4af40, 0x7fff3007, 0x0, 0x7fff2ea0, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Python/pythonrun.c":479
, 0x10041800]
48 Py_Main(0x2, 0x7fff2f44, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Modules/main.c":320, 0x1000ce58]
49 main(0x100fe5b4, 0x1015a278, 0x4, 0x100be338, 0x10050000, 0x1015a278, 0x100be338, 0x100be2b0) ["/judgedee/sternber/src/Python-2.1/Modules/python.c":10, 0x1000cabc]
50 __start() ["/xlv55/kudzu-apr12/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s":177, 0x1000ca68]
(dbx) quit
quit
More information about the vtkusers
mailing list