Re: GPU "EVEE" render issue Opencue
toggle quoted messageShow quoted text
A quick google suggests that Evee doesn't currently support headless rendering, so on the render-node you'll need to have a display attached and presumably an X session running? There may be some workarounds where your render blades can have a virtual display - that would probably take a bit of experimentation and luck. You'd also need to have an X session running on the blade, and the user would probably have to be the same user that's trying to run the render, but I can't remember how strict the security around X sessions might be. Maya playblasts have similar requirements and I've never seen a truly non-ugly way to make it work.
But with those caveats, if the computer you're trying to render on does have a display and a desktop session running, then maybe you just need to set the DISPLAY environment variable. When you're about to run your render command manually in the CLI, if you just type "unset DISPLAY" beforehand, your process will probably fail with the same error you're seeing on OpenCue, which would confirm this. The environment variable just tells the process where to find a display to connect to. For example run this in a shell in your desktop session:
env |grep DISPLAY
Any GUI command you run (like say gedit) will draw its UI to DISPLAY 0 on the specified host, which is blank and therefore assumed to be localhost, if I remember correctly.
Anyway - if you capture that value from the environment of the desktop session on your render node, and ensure that DISPLAY is set to that value for the environment of your render process then I'd expect it to render. As a test you could create an executable like this and ask OpenCue to run that (with the same arguments) instead of Blender directly.
Just some ideas. It sounds like Evee is not ideal for running on a farm but if you're motivated and prepared to make some compromises you should be able to make it work. I'd be interested to hear how that goes. Good luck :)
On Wed, 25 Sep 2019 at 15:45, <prajwal@...> wrote:
Hi All, we have been testing Opencue extensively in Blender. We have been able to successfully render on cycles. We also did check it out using addons. Everything works great! However we have run into a technical snag when dealing with GPU renderer "Evee". For some reason, Open cue throws up an error stating "Unable to open a display". We checked CLI commands which Opencue used to render and for some reason it renders :) .. same thing sent it through CueSubmit it says failed render. I have attached the Log and have tried posting this in the Blender forums. If somebody could shed some light on this that would be ace ! Thank you all in advance !