hypothetical-inc / GafferDeadline

Deadline Dispatcher for Gaffer
BSD 3-Clause "New" or "Revised" License
37 stars 6 forks source link

gaffer dispatch requires a gui with gafferDeadline. #36

Closed mrpurest closed 3 years ago

mrpurest commented 3 years ago

I cant run gaffer dispatch from a server.

qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/rez/cache/gaffer/0.60.7/1874/a/gaffer/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc, webgl, xcb.

/tmp/rez_context_NDZ7VN/rez-shell.sh: line 8: 4466 Aborted (core dumped) gaffer dispatch -gui False -script //job/MGTO3/EPISODE/pipe/autorenders/GEO_turntables/pub/GEO_turntables_v003.gfr -tasks ftrack_playable

seems like gafferUI is being imported somewhere. (message on the google group about it)

johnhaddon commented 3 years ago

I think this is the culprit :

https://github.com/hypothetical-inc/GafferDeadline/blob/master/startup/dispatch/menus.py#L1

We protect against a similar situation in the main configs like so :

https://github.com/GafferHQ/gaffer/blob/master/startup/dispatch/gui.py#L47-L49

ericmehl commented 3 years ago

Great catch @mrpurest, thanks for reporting that. And thank you @johnhaddon for helping sort it out!

I was able to recreate the problem and verified that the fix now on Master works. Before I make a new release, can you give a try to the latest code on Master to double check it sorts it for you?

mrpurest commented 3 years ago

It's kind of against the great rules of vfx to make any changes to the render farm just before going to the pub on a Friday.

At framestore the rule was basically: You are not allowed to do any work on a Friday! (or at least that's how I interpreted it)

mrpurest commented 3 years ago

ok, just tested and seems to be working fine.

thanks!

ericmehl commented 3 years ago

Great, thanks for checking it. Now off to the pub!