Crash on ofCreateWindow(settings)

Hi there,

I was working on an app with of 0.8.4 and I upgrade to 0.9.3.

Now the app crash on some users’ computer : windows 8, intel graphics 3000 ( I know, this is bad…), opengl 3.0

This is the main code (simplify) :

int main(int argc, char **argv){


    ofGLFWWindowSettings settings;
    settings.width = 1024;
    settings.height = 768;
    settings.windowMode = OF_WINDOW;


    ofApp *app = new ofApp();
    app->setWindowSize(settings.width, settings.height);
    ofRunApp( app );

I found the crash appears on ofCreateWindow(settings);
After research and a lot of print (I can test only with a release I give to the user), the crash appears in ofUtils.cpp on this line :
nanoseconds = (counter.QuadPart % freq.QuadPart)*1000000000/freq.QuadPart;

I comment that and discover a new crash in ofMainLoop.cpp on this line :
shared_ptr window = shared_ptr(new ofAppGLFWWindow());

The app doesn’t even pass in the ofAppGLFWWindow constructor.

I also tried to add setGLVersion() but wathever I pass, nothing change.

I can’t figure out the issue. On my computer, all works good.
I’m wondering if this is an opengl issue ? (I had a lot of issue with those graphic cards with another app)
Or is this a known issue ?
Or something I’m doing wrong ?

Thanks a lot for any help :slight_smile:

Update : It seems to crash on every OpenFrameworks examples.
And it even crash on declaration of ofAppNoWindow.


Some news :

  • A simple app using glfw compiled with msys2 (qtcreator) exit after creation of window (glfwCreateWindow return null). And return an error : “driver doesn’t support OpenGL”
  • The empty example openframeworks (version 0.8.4) compiled on code blocks works fine.
  • The empty example openframeworks (version 0.9.3) compiled on visual studio works fine.

It seems to be related with msys2 and opengl, I had problem related with ANGLE and those computers in the past, maybe it’s that ?
Anyone know how to force qt to use desktop opengl and not angle (in my other application using qt 5, I use : QGuiApplication::setAttribute(Qt::AA_UseDesktopOpenGL); ) ?

Thanks for any help or suggestions.