# Crash on eglGetConfigs

**URL:** <https://forums.imgtec.com/t/crash-on-eglgetconfigs/742>\
**Category:** PowerVR Insider\
**Created:** [June 24, 2010, 1:41pm UTC](https://forums.imgtec.com/t/crash-on-eglgetconfigs/742 "2010-06-24T13:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccbiker](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@ccbiker](https://forums.imgtec.com/u/ccbiker)\
**Post date:** [June 24, 2010, 1:41pm UTC](https://forums.imgtec.com/t/crash-on-eglgetconfigs/742/1 "2010-06-24T13:41:32Z")

</div>

Hi \*,

  

I have a crash on eglGetConfigs with the current OpenGL ES Emulator.

  

The situation:

  

We have two threads, a main thread and a second "rendering" thread,

  

we create a window within the rendering thread and try to call eglGetConfigs() 
  

this call crashes in libEGL.lib with an exception: Access violation reading location 0xbaadf00d
  

&nbsp;
  

the same code runs fine if do this in the "main thread"
  

&nbsp;
  

Anyone any ideas?

---

<div class="post-metadata">

**Author:** ![GordonMaclachlan](https://avatars.discourse-cdn.com/v4/letter/g/c68b51/32.png) [@GordonMaclachlan](https://forums.imgtec.com/u/GordonMaclachlan)\
**Post date:** [June 24, 2010, 2:03pm UTC](https://forums.imgtec.com/t/crash-on-eglgetconfigs/742/2 "2010-06-24T14:03:05Z")

</div>

This is a known issue: BRN29913. It will be fixed in a future release.  
  
However: in general, we always recommend using the 'main thread' for the UI: Windows/X11 interaction and rendering; further threads for everything else. This fits well with DirectX usage and will also work around this issue.  
  
Gordon2010-06-24 16:08:54
