#6 "NULL main window" Togl-1.5 Mac OS X, Xtools (Teno

Run-time
closed-later
None
5
2007-10-24
2001-07-04
No

Hi Togl Folks,

We are running Mac OS X (10.0.4) with a demo license of Xtools (1.0.3 from Tenon). We have been unable to get Togl-1.5 running. We added a couple of printf's in "togl.c" to output some debugging information (hence the line "1 0x0" in the output) which points to where the program fails. For example, trying a simple demo:

% wish8.3 overlay.tcl

gives this output:

1 0x0
Error in startup script: NULL main window
invoked from within
"togl .win -width 200 -height 200 -rgba true -double false -overlay true"
(procedure "setup" line 4)
invoked from within
"setup
"
(file "overlay.tcl" line 36)

We get the same error with the other *.tcl examples.
___

The code appears to fail at this line:-

tkwin = Tk_CreateWindowFromPath(interp, main, name, (char *) NULL);

and when it does so, "main" is NULL ("0x0"). This line is in:-

static int Togl_Cmd(ClientData clientData, Tcl_Interp *interp, int argc, char **argv) {...}

which is in "togl.c"
___

Xtools from Tenon appears to support the GLX extension.

___

I would be happy to email more details.

Thanks,

Garrett

Discussion

  • Greg Couch

    Greg Couch - 2005-09-19

    Logged In: YES
    user_id=131838

    Please try the CVS version of togl that should soon become
    version 1.7. There were many Mac OS X fixes. The fact that
    the overlay demo fails is not a surprise because overlays
    are only available on workstation-class graphics cards (ATI
    FireGL, NVidia Quadro, 3dlabs Wildcat), and none of those
    are available for Mac OS X.

     
  • Greg Couch

    Greg Couch - 2005-09-19
    • summary: "NULL main window" Togl-1.5 Mac OS X, Xtools (Tenon) --> "NULL main window" Togl-1.5 Mac OS X, Xtools (Teno
     
  • Nobody/Anonymous

    Logged In: NO

    We were able to get Togl running on Mac OS X a couple of years ago;
    we ended up finding some bugs in the togl code and fixing them. I can't
    recall right now what they were, I can send the modifications if you are
    interested. We should try your latest version, just to see if it offers
    anything new.

    Thanks for the reply.

    Garrett

    P.S. What constitutes a workstation-class graphics card? Does the
    NVidia 6800 Ultra count?

     
  • Greg Couch

    Greg Couch - 2005-09-22

    Logged In: YES
    user_id=131838

    I am always interested in improving the Togl code, so please
    send in any changes you made for Mac OS X. As for the P.S.,
    Apple does not sell workstation-class graphics cards and
    and since Apple controls the graphics drivers, it's not
    possible for third parties to do so either. If you want
    stereo-in-a-window or overlay planes, please tell your Apple
    sales representative.

     
  • Greg Couch

    Greg Couch - 2007-10-24
    • status: open --> closed-later
     
  • Greg Couch

    Greg Couch - 2007-10-24

    Logged In: YES
    user_id=131838
    Originator: NO

    Apple is selling workstation graphics cards now, NVidia Quadro FX 4500's. Quad-buffer stereo only works properly under Aqua (not via X11 even thought it is advertised to work). Overlays for Aqua are currently unsupported.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks