Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Crash on Quit

  1. #1
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Crash on Quit

    My app works fine and runs as it should, but when quitting it it crashes and kills all around it! Is this ogl/glut having problems cleaning up memory? Anyone else had these probs?
    macos9

    cheers

    gav

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2000
    Posts
    29

    Re: Crash on Quit

    Easiest thing to do is start with a basic GLUT app from the SDK (like glutmech). We know it doesn't crash, so it's most likely not a GLUT prob.

    Then, using this code as a starting point, add your code bit by bit, and test incrementally. As soon as your app starts killing things on quit, then you'll have a better idea of what code caused the mishap.

    /ec

  3. #3
    Intern Contributor
    Join Date
    Aug 2000
    Location
    USA
    Posts
    99

    Re: Crash on Quit

    I get dumped into the depths of the ATI driver code in Macsbug whenever I exit several of the Mac OpenGL SDK demo apps. You are not alone )

  4. #4
    Guest

    Re: Crash on Quit

    Gavin et al

    I too have experienced these problems, ie big time crash when quiting a glut based program from menubar

    It only happens if I choose quit from the menubar. If I provide a "hit Q to quit" keyboard routine and exit(0) in that routine, everything works fine.

    Any better solutions/workarounds?

    greg

    didsoft@home.com

  5. #5
    Guest

    Re: Crash on Quit

    I may have figured it out. I noticed that the one of the glut based examples I had that worked included a line after glutCreateWindow("colorcube")

    glutIdleFunc(NULL);

    adding this to my crahsing sample fixed it. Other examples I had that worked passed the display function in glutIdleFunc, ie glutIdleFunc(myDisplay)

    hope that helps

    greg

  6. #6
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: Crash on Quit

    I am using an Idle Function though, not the display, but some other processing stuff. Anyone get any interesting error logs with it?

    gav

  7. #7
    Guest

    Re: Crash on Quit

    I installed Mac OS X (Japanese language version) few days ago. Then my glut app began to crush on quit on Mac OS 9.0.4. The app ran fine before.
    Mac OS X Installer adds/replaces some system files and OpenGL library(s) in the extension folder of Mac OS 9 for 'Classic environment compatibility'.
    I uninstalled Mac OS X, and restored all replaced system files in Mac OS 9.0.4 system folder.
    Now my glut app runs fine.

    This is my case.
    I use CodeWarrior 6.

  8. #8
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: Crash on Quit

    Mybe it as I did have mac osx, and have removed it, maybe a os reinstall might help...

    gav
    i'll let you know

  9. #9
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: Crash on Quit

    Well, just compiled on unix/irix to see whats going on a bit better, no crash, no xmesa error message, no error log. Then recomile on mac, run, quite, RESTART, arrgghh

    gav

  10. #10
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: Crash on Quit

    I assume that you are all on the mac-opengl mailing list. It appears that it was the classic rave that was causing my app to die on quit, as it is know fine, and happy....

    gav

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •