http://bugs.freedesktop.org/show_bug.cgi?id=7205





------- Comment #34 from [EMAIL PROTECTED]  2007-03-16 06:05 PST -------
matlab still crashes:

xm_api.c:2502       xmesa_check_and_update_buffer_size(xmctx, b);

(gdb) bt
#0  0x00002af3d4ae0d2a in xmesa_check_and_update_buffer_size (xmctx=0x0,
drawBuffer=0x11218c0) at xm_api.c:1850
#1  0x00002af3d4ae1cfd in XMesaResizeBuffers (b=0x11218c0) at xm_api.c:2502
#2  0x00002af3d4ad04aa in __glXMesaDrawableResize (base=0x1114480) at
xf86glx.c:113
#3  0x00002af3c318c5a9 in PositionWindow (pWin=0xbe5ae0, x=0xff, y=0x4d) at
glxscreens.c:230
#4  0x000000000043a917 in ResizeChildrenWinSize (pWin=0xbe3420, dx=0x0, dy=0x0,
dw=0x0, dh=0xfffffff4) at window.c:1859
#5  0x00000000005423e0 in miSlideAndSizeWindow (pWin=0xbe3420, x=0xff, y=0x17,
w=0x200, h=0x1aa, pSib=0x10dc1e0) at miwi
ndow.c:728
#6  0x000000000043bf83 in ConfigureWindow (pWin=0xbe3420, mask=0x8,
vlist=0x11574f0, client=0xbafd80) at window.c:2485
#7  0x000000000044cb4e in ProcConfigureWindow (client=0xbafd80) at
dispatch.c:808
#8  0x0000000000567115 in XaceCatchDispatchProc (client=0xbafd80) at xace.c:281
#9  0x000000000044c061 in Dispatch () at dispatch.c:503
#10 0x0000000000432c69 in main (argc=0x1, argv=0x7fffe9b2a7b8,
envp=0x7fffe9b2a7c8) at main.c:467


The following patch fixes this (apparently last) issue:

diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index cbbbd56..ba020fc 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -2499,6 +2499,8 @@ XMesaResizeBuffers( XMesaBuffer b )
 {
    GET_CURRENT_CONTEXT(ctx);
    XMesaContext xmctx = XMESA_CONTEXT(ctx);
+   if (!xmctx)
+      return;
    xmesa_check_and_update_buffer_size(xmctx, b);
 }


Will have to test against older products, but as far as I can see, with these
two additional patches the issue is fixed for me :^)

Thanks, Brian!


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to