Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Strange error. Is this even SFML related?  (Read 1712 times)

0 Members and 1 Guest are viewing this topic.

declan

  • Newbie
  • *
  • Posts: 34
    • View Profile
Strange error. Is this even SFML related?
« on: July 29, 2010, 04:51:47 pm »
Hey guys. My program runs for a while, generating data, then displays it at the end using SFML. It ran through the part of the program that generates data successfully, but seems to have crashed when it was supposed to display the data.

The error was:

Code: [Select]

//...a gazillion iterations of this crap.
particles remaining: 4998078   Leaving mover3d.  Entering sorter.    Leaving sorter.   Entering colider.  Leaving colider.   Entering sampler.    Leaving sampler.  
Done 2000 of 2000 steps; 832379009 collisions
Timestep 2000 out of 2000

Execution finished at: Wed Jul 28 19:56:30 2010
After 0 day(s), 6 hour(s), 23 minute(s), and 53 second(s) of running.

//Here is where SFML comes in. rundsmc3d is the name of my executable.

2010-07-28 19:56:30.662 rundsmc3d[92738:10b] invalid display
2010-07-28 19:56:30.663 rundsmc3d[92738:10b] NSOpenGLPixelFormat creation failed! (invalid video settings ?)
2010-07-28 19:56:30.665 rundsmc3d[92738:10b] invalid context
2010-07-28 19:56:30.729 rundsmc3d[92738:10b] invalid context
2010-07-28 19:56:30.731 rundsmc3d[92738:10b] invalid context
2010-07-28 19:56:30.753 rundsmc3d[92738:10b] invalid context
2010-07-28 19:56:30.761 rundsmc3d[92738:10b] invalid context
2010-07-28 19:56:30.932 rundsmc3d[92738:10b] invalid context
2010-07-28 19:56:31.095 rundsmc3d[92738:10b] invalid context


And that stuff with the "invalid context" continues for about 20000 lines, as it was still going this morning until I came in and killed the program.

A few things to note:

-The program is displaying a lot of data sometimes. It draws a few grids made of a ton of colored boxes . In this case there were 200 cells, so it was drawing 4*200*50=40000 cells (boxes) every loop. I don't know if that's strenuous for something (SFML? My graphics card? My CPU?), but in the past it certainly has been laggy when I do high numbers.

-When I came in, despite those errors in the terminal, the Display window had popped up with the correct title at the top.

-It worked fine before, and still works fine with less data to display.

Any ideas? Am I even barking up the right tree here?

Thanks!

declan

  • Newbie
  • *
  • Posts: 34
    • View Profile
Strange error. Is this even SFML related?
« Reply #1 on: August 06, 2010, 05:35:31 pm »
Bump, anyone have an idea? It happened again.

 

anything