[vtkusers] RenderWindow New Delete New X Error
Kevin H. Hobbs
hobbsk at ohiou.edu
Wed Apr 23 09:34:13 EDT 2008
On Wed, 2008-04-23 at 08:54 -0400, Kerry Loux wrote:
> Kevin,
>
> I can compile and run your example error-free under MSW. Can you
> determine which line is causing the error?
It's probably X specific.
I used the method of http://www.rahul.net/kenton/perrors.html to get a
backtrace. I first Set a breakpoint in main, set _Xdebug = 1, set a
breakpoint in _XError, continued until I got to the breakpoint in
_XError, and produced the backtrace.
The last VTK File was VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line
1341. Is that what this means?
(gdb) bt
#0 _XError (dpy=0x620d10, rep=0x8b4e50) at XlibInt.c:2880
#1 0x0000003b7de4b179 in _XReply (dpy=0x620d10, rep=0x7fffff3d0a04, extra=0, discard=0) at xcb_io.c:417
#2 0x0000003b7ea09531 in XShmQueryVersion (dpy=0x620d10, majorVersion=0x7fffff3d0bec, minorVersion=0x7fffff3d0be8, sharedPixmaps=0x7fffff3d0be0) at XShm.c:191
#3 0x00002aaaad415a90 in initialize_visual_and_buffer (v=0x630de0, b=0xba3cb0, rgb_flag=0 '\0', window=79691778, cmap=0) at drivers/x11/xm_api.c:184
#4 0x00002aaaad4167c9 in XMesaCreateWindowBuffer (v=0x630de0, w=79691778) at drivers/x11/xm_api.c:1646
#5 0x00002aaaad4108bc in Fake_glXMakeContextCurrent (dpy=0x620d10, draw=79691778, read=79691778, ctx=0x629be0) at drivers/x11/fakeglx.c:1473
#6 0x00002aaaad40bac6 in glXMakeCurrent (dpy=0x620d10, drawable=79691778, ctx=0x629be0) at drivers/x11/glxapi.c:279
#7 0x00002aaaaacd742a in vtkXOpenGLRenderWindow::MakeCurrent (this=0x620930) at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1341
#8 0x00002aaaaacd89cf in vtkXOpenGLRenderWindow::WindowInitialize (this=0x620930) at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1022
#9 0x00002aaaaacd4c6d in vtkXOpenGLRenderWindow::Start (this=0x620d10) at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1175
#10 0x00002aaaaac4bc00 in vtkRenderWindow::DoStereoRender (this=0x620d10) at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:688
#11 0x00002aaaaac4bae5 in vtkRenderWindow::DoFDRender (this=0x620930) at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:677
#12 0x00002aaaaac4c934 in vtkRenderWindow::DoAARender (this=0x620d10) at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:564
#13 0x00002aaaaac4ae9e in vtkRenderWindow::Render (this=0x620930) at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:377
#14 0x00002aaaaacd51a0 in vtkXOpenGLRenderWindow::Render (this=0x620930) at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1793
#15 0x0000000000400b62 in main (argc=1, argv=0x7fffff3d1148) at /home/kevin/Documents/render_in_function/main.cxx:11
(gdb) cont
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 255 ()
Minor opcode of failed request: 0
Serial number of failed request: 21
Current serial number in output stream: 21
Program exited with code 01.
(gdb)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080423/44a7ec8c/attachment.pgp>
More information about the vtkusers
mailing list