AnsweredAssumed Answered

Regression in the current Pro Driver (Windows 10)

Question asked by mksrksh on Apr 5, 2019
Latest reply on Jun 11, 2019 by dorisyan

A call to wglDeleteContext after a call to glewInit seems not to clean up the resources properly any more.

 

The following code snippet compiled for a 32 bit platform leads to a crash (caused by running out of memory) very quickly.

 

for (int i = 0; i < 10; ++i)
{
   std::vector<HGLRC> hglrcs;
   for (int j = 0; j < 100; ++j)
   {
      HGLRC hglrc = wglCreateContext(hdc);
      if (hglrc != NULL)
      {
         wglMakeCurrent(hdc, hglrc);
         hglrcs.push_back(hglrc);
      }
   }

   

   // No memory leak if you do not call glewInit!

   glewInit();

 

   for (auto hglrc : hglrcs)
   {
      wglMakeCurrent(0, 0);
      wglDeleteContext(hglrc);
   }

}

 

 

Reproducible on Windows 10 64 bit systems
with Radeon Pro Software for Enterprise drivers starting with version 18.Q3 and a
FirePro W2100 graphics adapter.

 

Previous driver versions do not have the issue.

 

Did anyone run into the same problem?

 

Thanks in advance

Outcomes