Shader compiling for forever

It says Compiling Shader (8) for 45 minutes now. In the task manager I can see the shader compiler exes still working. Is it possible that compiling shaders is stuck in some loop? I also tried restarting several times.

Before I had the Line number got beyond range error described here: Cannot compile shader because of Error [SM5] warning: Line number "32768 - Rendering - Unreal Engine Forums I since then optimized my complex post process material which made it compile again. But now I added a another texture and when I turn it on with a bool in the material instance constant I get this never ending compiling. There are only 4 textures in the material with that added.

What could be happening here, is it corrupted somehow now? Any ideas?

Hi Davision,

It is hard to determine if this is an issue with the engine or if there is something wrong with the asset itself based off the information given.

What are you trying to achieve with the post process material? Also If I understand correctly you have 4 textures and the 4th one added causes the issue. Have you tried different texture samples in that slot? If so could you provide a screen shot of the material graph?

,

After some more frustration with it just sometimes working I can’t tell anymore what could cause it, it appears to be random and has nothing to do with the textures. I made a material function of that material and put that into another post material which bascially made the post material twice as complex and got it working fine so it also has nothing to do with complexity. Then I tweaked a bit on it and refused to compile again but now it is worse because UE4 locks me out when I hit save and then I can just see the shader compiler exes endless compiling. When I force close UE4 with the task manager and restart nothing was saved. So there is another issue here that when you hit save it does this locking me out and force compile it without any saving. The workaround for that is making a bool parameter and set it to false so that it turns off anything of the material function with the problem. Then I can save it and turn it back on in the MIC, it then hanged on the 8 shader compiling again but it managed to finish it after only 10 minutes now so hopefully this keeps working now.

Will post here if it goes to ■■■■ again. The whole thing is actually pretty complex, it is basically a ramp mapping post fx. So lighting is mapped to a gradient and this gradient can be optionally created inside the material (max 6 colors gradient) or by a texture used. That is then mixed with the diffuse base pass using several blend_ material functions. I’m also using hue shifting with separating it by RGB to have the gradient be different for different Hue. I also had to use quite a lot of RGB to HSV and HSV to RGB.

Okay, I appreciate that you are doing some additional testing. Be sure to let me know when you have additional information! The most idea situation is if you are able to come up with some repro steps so that I can verify the issue on my end.

,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Same question! Please help us…