jvcleave / ofxImGui

Use ImGui in openFrameworks
300 stars 123 forks source link

Random App Crash on using ImGui Menu Object #71

Open dasoe opened 6 years ago

dasoe commented 6 years ago

Hi all,

I am using ofxImGui for a project. Now I am almost finished and on testing (OF 0.9.8, Windows 7) problem occurs: There is one Menu object that is loading videos. When doing so the app sometimes crashes (can not really reproduce) with the following error:

Exception thrown at 0x0000000069E98240 (nvoglv64.dll) in oeShowTool_I_debug.exe: 0xC0000005: Access violation reading location 0x000000000A572390. occurred

Debugging shows me EngineGLFW.cpp, line 277:

idx_buffer += pcmd->ElemCount;

The project is quite demanding alright (projection mapping tool with warping and masking), so the problem might be somewhere else, still as it happens on using the menu object and as debugger points me to ofxImGui, I thought I ask if there's some advise how to approach this. Find some more output of the debugger below.

Thanks for any hint oe

        fb_height   800 int
        glDrawElements  0x0000000140375d21 {oeShowTool_I_debug.exe!glDrawElements}  void *
        glScissor   0x0000000140375d45 {oeShowTool_I_debug.exe!glScissor}   void *
-       idx_buffer  0x000000000a13ffc0 {1355}   const unsigned int *
            1355    const unsigned int
-       pcmd    0x0000000009fbb2a0 {ElemCount=24 ClipRect={x=685.000000 y=298.000000 z=1565.00000 ...} TextureId=0x0000000000000001 ...}    const ImDrawCmd *
        ElemCount   24  unsigned int
-       ClipRect    {x=685.000000 y=298.000000 z=1565.00000 ...}    ImVec4
        x   685.000000  float
        y   298.000000  float
        z   1565.00000  float
        w   601.000000  float
        TextureId   0x0000000000000001  void *
        UserCallback    0x0000000000000000  void(*)(const ImDrawList *, const ImDrawCmd *)
        UserCallbackData    0x0000000000000000  void *
-       pcmd->ClipRect  {x=685.000000 y=298.000000 z=1565.00000 ...}    const ImVec4
        x   685.000000  float
        y   298.000000  float
        z   1565.00000  float
        w   601.000000  float
        pcmd->ClipRect.w    601.000000  const float
        pcmd->ClipRect.x    685.000000  const float
        pcmd->ClipRect.y    298.000000  const float
        pcmd->ClipRect.z    1565.00000  const float
        pcmd->ElemCount 24  const unsigned int

EDIT: The crash does not happen when I am using gstreamer as ofVideoPlayer.