# GLSL shader compiler crash

**URL:** <https://forums.imgtec.com/t/glsl-shader-compiler-crash/1871>\
**Category:** PowerVR Insider\
**Created:** [August 7, 2013, 1:37pm UTC](https://forums.imgtec.com/t/glsl-shader-compiler-crash/1871 "2013-08-07T13:37:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nahplop](https://avatars.discourse-cdn.com/v4/letter/n/898d66/32.png) [@nahplop](https://forums.imgtec.com/u/nahplop)\
**Post date:** [August 7, 2013, 1:37pm UTC](https://forums.imgtec.com/t/glsl-shader-compiler-crash/1871/1 "2013-08-07T13:37:41Z")

</div>

Hello guys,  
  
  
  
I think I found a crash in the shader compilers.  
  
It happens when you try to pass an uniform array to a function which expects a different precision qualifier.  
  
  
  
Here is the simple code to reproduce it:  
  
`uniform mediump float mpArray[1];

void crash(lowp float lpArray[1]){}

void main()
{
crash(mpArray);
gl_FragColor = vec4(1.);
}
`  
  
  
  
The output on Windows says: ERROR: Could not encode the binary due to a problem during compilation.  
  
It happens with all SGX compilers (glslcompiler\_sgx5XX.exe), in vertex shaders and fragment shaders.  
  
  
  
(I also tried to compile it on IOS with glCompileShader and it crash with a bad access exception.)  
  
  
  
Sorry if this is not the right place to report that kind of things 🙂  
  
Cheers!

---

<div class="post-metadata">

**Author:** ![JoeDavis](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/joedavis/32/71_2.png) [@JoeDavis](https://forums.imgtec.com/u/JoeDavis)\
**Post date:** [October 16, 2013, 1:32pm UTC](https://forums.imgtec.com/t/glsl-shader-compiler-crash/1871/2 "2013-10-16T13:32:12Z")

</div>

Hi,  
  
  
  
Sorry for the very slow response. Thanks for the report - I’ve reproduced it and have filed a bug against our compiler. Hope this wasn’t a blocking issue for you!  
  
  
  
We’ve recently launched a public feature request/bug reporting system: [https://pvrsupport.imgtec.com/feedback](https://pvrsupport.imgtec.com/feedback)  
  
This is the best place to file any feedback you may have in the future 🙂  
  
  
  
Cheers,  
  
Joe
