Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Crash on ofCreateWindow(settings)

$
0
0

@Marion wrote:

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){

    ofSetLogLevel(OF_LOG_VERBOSE);

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

    ofCreateWindow(settings);

    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:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles