Michael Barton wrote:

> After some delays, I managed to recompile GRASS 7 with CFLAGS="-arch  
> i386 -g", etc so that gdb would produce useful output, and with TclTk  
> 8.5 aqua for Mac. Running nviz in gdb gives the results below.  
> Hopefully these are more helpful. It freezes at the last line.

> Program received signal EXC_BAD_ACCESS, Could not access memory.
> Reason: KERN_PROTECTION_FAILURE at address: 0x00000024
> 0x0001702d in Togl_CreateWindow (tkwin=0x1fdb608, parent=30857160,  
> instanceData=0x758db0) at togl.c:2338
> 2338          if (!aglSetDrawable(togl->aglCtx,

The complete line is:

        if (!aglSetDrawable(togl->aglCtx,
#  if defined(TOGL_AGL)
                        ((MacDrawable *) (window))->toplevel->grafPtr
#  else
                        ((MacDrawable *) (window))->toplevel->portPtr
#  endif
                )) {

togl and togl->aglCtx are known to be non-NULL (otherwise it would
have crashed before then). Can you try the following:

        print ((MacDrawable *) (window))
        print ((MacDrawable *) (window))->toplevel
        print ((MacDrawable *) (window))->toplevel->grafPtr

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to