PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6.04k stars 1.2k forks source link

"FATAL ERROR: CreateWindowEx failed" with GarchGLDebugWindow #879

Open ennis opened 5 years ago

ennis commented 5 years ago

Description of Issue

A simple application using GarchGLDebugWindow crashes on windows with error

FATAL ERROR: CreateWindowEx failed
in Init at line 93 of usd\pxr\imaging\lib\garch\glplatformdebugwindowwindows.cpp

Steps to Reproduce

  1. Create and Initialize a GarchGLDebugWindow like so:
    int main(int argc, char** argv)
    {
    pxr::GarchGLDebugWindow window("Hello World", 1280, 720);
    window.Init();
    window.Run();
    return 0;
    }

System Information (OS, Hardware)

OS: Windows x64

Package Versions

USD v19.05

Build Flags

Built USD with --debug

Additional Information

There seems to be several issues with the code in glPlatformDebugWindowWindows.cpp:

After fixing all of these, the window initializes seemingly without error.

c64kernal commented 5 years ago

Thanks very much for catching these, @ennis. Feel free to submit a PR if you can. If you can't (e.g., because of CLA issues), let us know. Thanks again!

jilliene commented 5 years ago

Filed as internal issue #USD-5385

lightwolf commented 4 years ago

This is my attempt on fixing the issue: #1102