New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.5.4] Shader compilation regression error when using OES shader #1227
Comments
Hi @delphinius81,
#if defined(SHADERLAB_GLSL)
// HALF4 rgba = texture(tex, uv); Please let me know if that has helped |
Hi @Chris-RH, That change works and allows video playback to occur, thanks! Is there an eta on when the full fix will get released? |
Glad that helps :) |
Thanks! |
Thanks, this error was introduced in version 2.5.4 and seems to be limited to hardware using Adreno GPUs. Appears to be a driver bug. We've working on a workaround which will be released soon. We found some other people commenting on what appears to be the same issue here: https://stackoverflow.com/questions/40662936/compile-time-failure-when-reading-texels-from-samplerexternaloes |
@delphinius81 AVPro Video v2.5.5 has been released. Please do let us know if this version fixes the issue for you. |
Please reopen if this is still an issue. |
Describe the issue
I am seeing a consistent internal shader compiler error when attempting to use the AVProVideo/VR/InsideSphere Unlit (stereo+color) - Android OES ONLY shader on the Pico Neo 3. The error is as follows:
07-06 15:35:21.823 1873 2173 D Unity : Note: Creation of internal variant of shader 'AVProVideo/VR/InsideSphere Unlit (stereo+color) - Android OES ONLY' failed.
07-06 15:35:21.826 1873 2173 I AdrenoGLES-0: Internal compiler error: Error: array indexing out of boundary
07-06 15:35:21.826 1873 2173 I AdrenoGLES-0: Assertion failed: srcME->getIndexInst() != __null && "Array index is missing!"
Unfortunately, the error is not helpful in pinpointing the bad instruction call. As you will see in the attached log, the place where the compiler fails is different for each variant.
The shader compiler error was present when loading the demo 360 video scene using the OES shader, as well as when loading my own 360 video playback scene with a custom OES shader (which references AVProVideo.cgin). I am using the ApplyToMesh component and have set the MediaPlayer to use OES rendering. The UpdateMultipassStereo script is applied to the camera rig and multipass rendering is set.
Video playback is happening, as I can hear audio, however no video appears on the mesh. This is reproducable using a custom video, as well as with a provided demo video.
Your Setup (please complete the following information):
To Reproduce
Logs
This was a log when running in our production application. The same shader compilation error is present when running the provided sample project.
logcat_output.txt
Screenshots
If applicable, add screenshots to help explain your problem.
Videos
If applicable, add a copy of your video or the URL
Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE
Instead email the link to us unitysupport@renderheads.com
The text was updated successfully, but these errors were encountered: