OpenGL GLUT Renders only One Frame

I wrote a completely trivial program - it simply opens a window and renders a black screen. When I call glutMainLoop() it renders a single frame then hangs. Sampling gives me these results
Sampling process 1950 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling output (pid 1950) every 1 millisecond
Call graph:
2162 Thread_2503
2162 start
2162 main
2162 glutMainLoop
2162 -[GLUTApplication run]
2162 -[GLUTApplication _runMainLoopUntilDate:autoreleasePool:]
2162 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
2162 _DPSNextEvent
2162 BlockUntilNextEventMatchingListInMode
2162 ReceiveNextEventCommon
2162 RunCurrentEventLoopInMode
2162 CFRunLoopRunInMode
2162 CFRunLoopRunSpecific
2162 mach_msg
2162 machmsgtrap
2162 machmsgtrap
2162 Thread_2603
2162 thread_start
2162 pthreadstart
2162 glvmDoWork
2162 pthreadcondwait$UNIX2003
2162 _semwaitsignal
2162 _semwaitsignal
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5):
_semwaitsignal 2162
machmsgtrap 2162
Sample analysis of process 1950 written to file /dev/stdout
Any help will be greatly appreciated
The completely trivial code:
#include <stdio.h>
#include <stdlib.h>
#include <GLUT/glut.h>
/* function prototypes */
/* opengl std */
void display();
void init();
unsigned long frames=0;
int main(int argc, char **argv){
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(500, 500);
glutInitWindowPosition(100, 100);
glutCreateWindow("ZOMG!!!");
init();
glutDisplayFunc(display);
glutMainLoop();
return 0;
void display(){
printf("Frames[%lu]
", frames++);
glClear(GLCOLOR_BUFFERBIT);
glLoadIdentity();
glFlush();
printf("frame drawn
void init(){
glClearColor(0.0, 0.0, 0.0, 0.0);
glShadeModel(GL_SMOOTH);
Message was edited by: rabidgnome
Message was edited by: rabidgnome

I wouldn't say Sg is a badly compromised program ... if one takes a car and tries to make it do the work of a truck, well ... one will be unhappy with the car, but is it really the fault of the makers of the car?
Speedgrade has it's glitches, and no one on the planet can tell you more about them than the guys that created it or those that are working it behind the scenes. But Speedgrade is designed to be a grading program ... not an NLE or an encoding program. It has those functions simply so that for some who say just want to do quick dailies probably doing quick & dirty grading of un-trimmed "clips" just to get something out for directors to see if what they shot will work. In my experience, for that use you need to know exactly how it needs setting, and have your presets stored.
The whole idea of this software is to be part of a group ... each program specialized into one set of problems, rather than each trying to be an equal Swiss-Army knife. And in use, it works quite well (for most of us most of the time) though there are a few glitches. Such as say, key-framed masks that at times can be problematic. Be that as it is, use the program for what it is designed for. Within that, it can be pretty awesome.

Similar Messages

  • I have just downloaded Elements 11 & there is only one frame (basic) in collage, how do I get more?

    I have just upgraded from Elements 7 to Elements 11 but find in the photo Collage there is only one frame, how do I get more, my old 7 had a good variety???

    Hi Wobygong5,
    I am afraid PSE11 has just one theme, ie. Basic.
    However you can go to Expert mode, and then create a new image of the size you want, and then insert frames from the Graphics panel. You can insert as many frames as you want.
    But Photo Collage will offer you just one theme.
    -Rahul.

  • How to close only one frame

    Hi!
    How do i close only one frame?
    I know this close everything:
    private void exitActionPerformed(java.awt.event.ActionEvent evt) {                                       
    Component panel = null;
    System.exit(0);
    But i tried this: but dos'nt work ....
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new configuration().setVisible(false);
    }

    r035198x wrote:
    Enojado wrote:
    Sorry, i tried this:
    private void confexitActionPerformed(java.awt.event.ActionEvent evt) {
    new NewJFrame().setVisible(false);
    }Which frame are you hiding here? You are creating a new one and hiding it before it has a chance to say or show anything. That's incredibly rude.
    P.S setVisible(false) just hides. dispose() throws the frame and its components into the trash bin.Yep, that was the answer. :] thanks

  • Open only one frame

    Hi, I want to open a frame when I run an application. The problem is that that frame is opened always that I run the application, so you can have several opened frames.
    How can I make to open only one frame, and that no frame is opened until I close the first one?
    thanks

    This is with useing a button
    first class
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ball extends JFrame implements ActionListener{
      ballball bebe = new ballball();
      public ball() {
      super("My button");
      setSize(400,400);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      Container pane = getContentPane();
      FlowLayout flow = new FlowLayout();
      pane.setLayout(flow);
       pane.add(bebe.button);
      bebe.button.addActionListener(this);
      setContentPane(pane);
      setVisible(true);
      public void actionPerformed(ActionEvent me){
       Object ob = me.getSource();
       if(ob == bebe.button) {
         bebe.Myothergui();
         bebe.button.setEnabled(false);
    public static void main(String[] args) {
         ball ba = new ball();
    Second class
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ballball {
       JFrame frame;
       JButton button = new JButton("my butto");
    public void Myothergui() {
       frame = new JFrame();
      frame.setSize(300,300);
      frame.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                     button.setEnabled(true);
                    frame.setVisible(false);
       frame.setVisible(true);
    GOOD LUCK and learn to use the http://java.sun.com/j2se/1.4/docs/api/ most of your ? can be answered there.Anyways have a good one and STUDY STUDY STUDY

  • Ae cs5 importing seq images all blacked out or only one frame - help

    I created a pan background and keyframed it and it is working fine. I then brought in pngs with transparent background as a seq and the image is all black when they imported into ae cs5 once one image was brought in correctly (the first image of the seq). I have batch converted to psds with same results. What am I doing worng importing in seq to work over the pan background?
    And I have tried PSD image sequence file - it only brings in one frame.
    Message was edited by: l1o1t1r1

    I just did some tests. If you export the png's using the save for web and other devices and png 24 then things work fine with grayscale images. If you save grayscale images as png's directly then the png's are aparently saved as png 8's so they won't work properly in After Effects. Any pixel not completely white is rendered black.
    To be honest I've never run into this before. It may be worthy of a bug report.
    I'm not sure what technique you're using to remove the background from the originals but a jpg made from the original png file can be used as an Luma Inverted matte on a black solid to create the transparency. A little adjustment to the jpg sequence with levels will clean up most of the garbage. This would give you an acceptable result without resorting to a bunch of processing to try and create transparent pngs.

  • Function do work in only one frame

    this function showing in all frame on stage....i want to it within a perticular frame
    function callThumbs() {
        _root.createEmptyMovieClip("sliderBox",_root.getNextHighestDepth());
        sliderBox._x = _root.gallery_x=30;
        sliderBox._y = _root.gallery_y=30;
    sliderBox.addEventListener(MouseEvent.CLICK);
        var clipLoader = new MovieClipLoader();
        var preloader = new Object();
        clipLoader.addListener(preloader);
        for (i=0; i<myImagesTotal; i++) {
            thumbURL = myImages[i].attributes.thumb_url;
            myThumb_mc = sliderBox.createEmptyMovieClip(i, sliderBox.getNextHighestDepth());
            myThumb_mc._x = _root.thumb_height*i;
            clipLoader.loadClip("thumbs/"+thumbURL,myThumb_mc);
            preloader.onLoadStart = function(target) {
                target.createTextField("my_txt",target.getNextHighestDepth(),0,0,1,1);
                target.my_txt.selectable = false;
            preloader.onLoadProgress = function(target, loadedBytes, totalBytes) {
                target.my_txt.text = Math.floor((loadedBytes/totalBytes)*100);
            preloader.onLoadComplete = function(target) {
                new Tween(target, "_alpha", Strong.easeOut, 0, 100, .5, true);
                target.my_txt.removeTextField();
                target.onRelease = function() {
                    callFullImage(this._name);
                target.onRollOver = function() {
                    this._alpha = 100;
                target.onRollOut = function() {
                    this._alpha = 100;

    In what way do you mean the function is in all frames?  If you write the function on a layer of its own and only provide one frame for it, it will only exist in that one frame.
    If you mean that what the function creates lives throughout the timeline, then that is because you are creating content dynamically without securing it to an object that has a home in the timeline.  Dynamically created content does not have a home in  the timeline unless you make it a opart of something that has been manually affixed to the timeline, like a movieclip.
    So what you might try is to manually add an empty movieclip in the frame where this code is (on a separate layer) and assign it an instance name, let's say you name it "container".  Then you can change the following line from...
    _root.createEmptyMovieClip("sliderBox",_root.getNextHighestDepth());
    to
    container.createEmptyMovieClip("sliderBox",container.getNextHighestDepth());
    and that should end up retsricting the dynamically created movieclip to the frame where the container is.  If there is any other content being added to the _root, that too should be retargeted to the container.

  • Copy/Paste Clip between Sequences - Only one frame appears?

    Hi all. A strange thing has started happening in FCP 7...not always but frequently. When I have two sequences open, I go to the first sequence and copy a clip. I go to the second and paste the clip and it shows up as very thin (one frame). I can then drag the end of it to make it longer but why doesn't it just paste the same length that it was copied?
    Thanks for any help.
    ~shiva

    Do you have any In and Out points marked in the timeline? When you do the copy function what area is highlighted in the timeline or selected?

  • Rendering only 1 frame

    This is a follow-up to posting http://discussions.apple.com/thread.jspa?threadID=1764783&stqc=true, which was never resolved. After following all efficiency recommendations, reinstalling Motion I finally upgraded both the OS (to 10.5.5) and the video care (to ATI X800 XT). The card helps a bit but the program/system is still having difficulty as a project complexity builds.
    I've taken to cutting effects down into subsets, rendering out elements and then building on additional elements, something that can be limited depending on the effect.
    Currently I have an effect of relatively few elements and the program will only render out 1 frame (actually yielding only a solid black frame) of a 02;12 segment.
    What else is there to do?
    Can't cut the elements down further. Using motion tracking from one, with Match Move in the other and a few filters between the two.
    Any help is appreciated.
    Apple really needs to upgrade this product. From the beginning it's been a program that is too functionally strong to run on its available hardware. Do we truly need to buy only top-of-the-line $15,000 Mac systems to run this program? If Apple wants to continue challenging Avid and Adobe they need to take this seriously; we indie producers/artists are their primary customers!

    I followed the advise in an article and I moved the flv and swf file into the root directory of my site (they were inside a folder before)
    I updated all the links and it now plays the video! but...
    Before I exported the video from After Effects through XFL to Flash, inside Flash exported in to a SWF, inside dreamweaver inserted the SWF on the page. The file was large (5MB) but played fine in a web browser.
    I got a few complaints from people with slower connections, so I wanted to add a pause/play button.
    So this time I exported from After Effects only half of the slideshow as an FLV. Then in flash I made the button. Now inside a web browser the file plays very slowly and constantly stops (which changes the button to 'play'). The browser is constantly loading the FLV file, which is now 7MB!
    It is only a slideshow of 6 pictures. I made them all 900px x 600px (my page size is 980) before adding them to AE.
    I would love to have this button functionality, but it still is just a banner/slideshow on my webpage, I dont need a full FLV player skin.
    Any reccomendations for me on how to display this file and also have pause functionality?
    the site is: www.daniellesmit.com/home
    Thank you
    Danielle
    Moderator:
    Shall I start a new post, it is kind of not relevant to the title anymore?

  • Movie Clips with one Frame

    If I have SWF's that I am using for UI elements in a game, and in these SWF's there are layers with Movie Clips and these clips have only one frame in them - do I need to explicitly put a stop() in there for optimal performance?
    I'm curious if these movie clips sit there and loop with only one frame and in the end hurt the game's overal FPS
    Any insight would be appreciated

    please don't cross-post.

  • Exporting to AVI from Premiere Pro CS5.0.2 from DVCPRO HD sequence giving only 1 frame?

    When trying to export from a P2 1080i 60hz DVCOPRO HD timeline to an AVI, whether going to queue or direct export using AME, it is going through its encoding steps but I am ending up with only one frame of let's say a 2 minute sequence. I've used Uncompressed AVI preset as well as Microsoft AVI preset - both going to 720 x 480.
    Happens with and without using Maximum Render Quality setting.  Happens whether I have MPE on or off.
    Couldn't find anything in the forum....have the Premiere Pro CS5.0.2 update.  Help.

    Unfortunately, the poster cannot award themselves "points." Otherwise, Harm and I would have over 50,000!
    Glad that you got the answer and the fix.
    Good luck,
    Hunt

  • Importing one frame

    Hello again.
    I've got a cd with some nice stock overlays; the problem is, they are stored on the cd in .mov format (at least, that's the extension they carry) but when I import them into FCE they seem to have only one frame. And if I try to use them, I get an error message saying 'Insufficient content for edit.'
    What can I do about this?
    As always, grateful for your time and patience.

    Yes, it plays- and lasts 1 frame, I interpret. What I actually see is that it looks just like a still photo open in the QT player, and when I push the play button the playhead moves ever so quickly from left to right but that's all that happens. It doesn't close at the end. In fact, only the playhead moves.
    EDIT: could it be something to do with the size? the rest of my movie is in HD
    Message was edited by: ginestre

  • How do I use the brush tool on a video in cs6? It only stays on one frame?

    How do I get what I create with the brush tool to stay on every frame in my video? I've got some footage of a car trip and I'm trying to use the brush tool to make a super 8 looking border, but it vanishes when I play the video because its only on one frame.

    When Photoshop just won't work properly, try replacing the Preferences file by using this procedure:
    Open Photoshop and save your custom goodies. Choose Edit→Presets→Preset Manager to save sets of styles, brushes, and other such bits and pieces you created. Use the Save Actions command in the Actions palette menu to save any sets of custom Actions.
    Review your Preferences. Open Photoshop's Preferences and go through each pane, noting your preferred settings so that you can restore your work environment later.
    Quit Photoshop. You can close the program like this:
    On a Mac: Hold down Command+Shift+Option and restart Photoshop. When prompted, release the modifier keys and confirm, that yes, you do want to replace the Photoshop settings.
    On a PC: Restart Photoshop; immediately press and hold down Ctrl+Shift+Alt. When prompted, release the modifier keys and confirm, that yes, you do want to replace the Photoshop settings.

  • I have an image sequence in JPG and when I select open image sequence, select all does not work and I can only highlight one frame at a time.  I want to import these frames into QT7 to make a time lapse clip.  Any suggestions

    I have an image sequence in JPG that I want to import into quitck time 7 for making a time lapse clip.   It has an option to open the image sequence, but when I do, it only lets me highlight one frame at a time.  The select all option seems to do nothing when I click on it trying to highlight all the frames. 
          If QT7 is not designed to perform this function, is there another alternative?   iMovie is non intuitive for this kind of operation and I cannot find a clear tutorial for using it to make time lapse clips from a sequence of still frames.  
           The tutorials Ive found on YouTube are well intended, but they all seem to leave out a vital step that eludes detection.  
      Anyway, any help appreciated. 
    Thanks
       I am new to this forum and I'm not sure I can locate this thread again once I'm out of it.
    <Email Edited by Host>

      Yes, I tried that.   The files were ordered by their original numbers as imported from the camera, but I batched them through Phocoshop to downsize all of them into a more manageable file size.   I opened that destination folder from quick time  from where it said select image sequence.   I clicked on the first one and opened it.   The result was a large image with an arrow indicating a movie was ready to go.   When I pressed the arrow, though, I realized it had only imported that one frame so there was no movie.   The files are Jpgs and are about 450 KB each. 
        To your knowledge are there any links to iMovie tutorials or quick time tutorials that may address this situation?  Maybe there will be one I haven't looked at yet. 
        Thanks

  • Why does my iChat video only run at one frame per second?

    When I connect to anyone on iChat my video runs at only about one frame per second. When others connect to me their video is much faster. This hasn't been a problem in the past - even with other Internet apps running when I'm using iChat. Could this be a problem with my ISP? Is there something I should do?

    Hi Gary45,
    In AIM 5.9 the PC can set the Video quality rate.
    Start a chat.
    The PC end clicks on the rear tab of the Video chat.
    This brings their own preview to the front.
    To the right there is anow a small iCon.
    Click on this.
    This brings up a slider.
    Slide the slider to the Left.
    If this is done to an iChat Buddy and they have the Connection Doctor open from the Video menu, they will see the Bit rate and Framerate go up. The consequence is that as the video Quality goes down the data that makes up the pic goes down allowing for better refresh rates and a smoother video.
    Do you mean this only happens between you and him and not between him and his son ?
    Or do you mean it happens between you and him and not his son and you ?
    If it is happening between you and other people aslo check out this FAQ http://discussions.apple.com/thread.jspa?threadID=278760
    9:19 PM Tuesday; July 25, 2006

  • Premiere Pro: Not Playing Timeline, Not Rendering Full Sequence, Stalling on One Frame

    2013 iMac // 10.9.3 // Premiere Pro CC 2014 (latest update)
    I have been editing a project for a few days, and it just started giving me issues on my last run through it before exporting.
    I have dealt with many problems with PP before, but I honestly don't even know what's going wrong here. I cannot pinpoint the issue. It seems to be a number of things. I started by updating PP and CUDA. Nothing. So I continued.
    1) I was having problems rendering, so I figured I'd delete the preview files and start from scratch. When rendering the entire project, it would get to about 60%, then stop and hang there. After five minutes of watching it, I would quit PP. Even though it would look like it had quit, it would still be running in Activity Monitor and the little light underneath it in the dock would be on, so I have to force quit.
    2) It was odd because the spot where it stops rendering is the sport where, if I scroll through the timeline, the Program window will freeze on one frame. Then it doesn't matter how much I move the playhead, it won't show any other frames. Nor will the sequence play at all after this. So I'd quit again.
    3) I went back to another project and rendered everything in it - fine and dandy.
    Why is this giving me such a problem? If anyone needs anything else from me to properly diagnose this, please just say so! Thanks for the help.

    Sorry 'bout the time lag. Our new firm just started its first large project, and as the tech geek for the photo-part of it, been kinda busy.
    So there's clearly a problem with the project file having gotten corrupted, but ... when it hits the footage it choked on before, it choked again. There's some kind of glitch here that has to to with PrPro interacting with those files. I'm wondering if a file header somewhere has a digit that can confuse PrPro or something? I do recall a couple issues of a similar nature that eventually involved people sending a bit of the nasty footage to an Adobe staffer, who poked through behind the scenes and found something that was not exactly what it might best have been in a header or something. Altered that, PrPro & footage liked each other again, everybody else happy. But that's the sort of ish that one needs experience at ... and I've got none.
    There's been times also where people have split a project up ... right on the edge of the Problem. Three parts to their project, in separate project files. First "good" part, and rendered it out as a separate project. Next project, the "troubled" footage that worked by itself, as again its own project, and rendered out. Then the final & also untroubled part, again rendered out. I've heard of both taking those into QuicktimePro (if appropriate codec) and uniting in one continuous piece, I've also heard of people who took three PrPro projects that had been rendered out separately (if I recall one was probably about six parts, a long & complex bugger) and brought those rendered-out parts back in to make a final project with everything in it. In fact, there are a number of people who split their larger projects into chunks, that are finished separately, then combined in a final PrPro project for final polishing as their normal work habit.
    Best wishes ...

Maybe you are looking for