Why do I need the display/Xserver when rendering?
Qi-Zhangyang opened this issue · 3 comments
Excellent work!!
I have noticed that you use the blender --background --python blender_script.py
Why do you say that it has to start the Xsever?
Thanks
If you’re rendering on a machine that doesn’t have a monitor, I believe you need to start an xserver to render on GPUs, which basically starts a virtual desktop.
At least this was the case for me when I render on AWS
Hi, I run the start_x_server and it seems no error. But when rendering with eevee, it still fails with "Unable to open a display". I'm trying to use nvidia-A100 gpus. any suggestions?
`
[1435716.388]
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[1435716.388] Build Operating System: linux Ubuntu
[1435716.388] Current Operating System: Linux machine-08 5.4.0-81-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021 x86_64
[1435716.388] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-81-generic root=UUID=ce9b1f1f-d4f4-4770-a895-48ccdf62c3bf ro iommu=soft
[1435716.388] Build Date: 23 October 2023 04:31:55PM
[1435716.388] xorg-server 2:1.20.13-1ubuntu1~20.04.9 (For technical support please see http://www.ubuntu.com/support)
[1435716.388] Current version of pixman: 0.38.4
[1435716.388] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[1435716.388] Markers: (--) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[1435716.388] (++) Log file: "/var/log/ai2thor-xorg.0.log", Time: Fri Nov 3 13:29:20 2023
[1435716.388] (++) Using config file: "/tmp/ai2thor-xorg.conf"
[1435716.388] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[1435716.388] (==) ServerLayout "Layout0"
[1435716.388] () |-->Screen "Screen0" (0)
[1435716.388] () | |-->Monitor ""
[1435716.388] () | |-->Device "Device0"
[1435716.388] (==) No monitor specified for screen "Screen0".
Using a default monitor configuration.
[1435716.388] () |-->Screen "Screen1" (1)
[1435716.388] () | |-->Monitor ""
[1435716.389] () | |-->Device "Device1"
[1435716.389] (==) No monitor specified for screen "Screen1".
Using a default monitor configuration.
[1435716.389] () |-->Screen "Screen2" (2)
[1435716.389] () | |-->Monitor ""
[1435716.389] () | |-->Device "Device2"
[1435716.389] (==) No monitor specified for screen "Screen2".
Using a default monitor configuration.
[1435716.389] () |-->Screen "Screen3" (3)
[1435716.389] () | |-->Monitor ""
[1435716.389] () | |-->Device "Device3"
[1435716.389] (==) No monitor specified for screen "Screen3".
Using a default monitor configuration.
[1435716.389] () |-->Screen "Screen4" (4)
[1435716.389] () | |-->Monitor ""
[1435716.389] () | |-->Device "Device4"
[1435716.389] (==) No monitor specified for screen "Screen4".
Using a default monitor configuration.
[1435716.389] () |-->Screen "Screen5" (5)
[1435716.389] () | |-->Monitor ""
[1435716.390] () | |-->Device "Device5"
[1435716.390] (==) No monitor specified for screen "Screen5".
Using a default monitor configuration.
[1435716.390] () |-->Screen "Screen6" (6)
[1435716.390] () | |-->Monitor ""
[1435716.390] () | |-->Device "Device6"
[1435716.390] (==) No monitor specified for screen "Screen6".
Using a default monitor configuration.
[1435716.390] () |-->Screen "Screen7" (7)
[1435716.390] () | |-->Monitor ""
[1435716.390] (**) | |-->Device "Device7"
[1435716.390] (==) No monitor specified for screen "Screen7".
Using a default monitor configuration.
[1435716.390] (==) Automatically adding devices
[1435716.390] (==) Automatically enabling devices
[1435716.390] (==) Automatically adding GPU devices
[1435716.390] (==) Automatically binding GPU devices
[1435716.390] (++) Max clients allowed: 1024, resource mask: 0x7ffff
[1435716.390] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[1435716.390] Entry deleted from font path.
[1435716.390] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[1435716.390] Entry deleted from font path.
[1435716.390] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[1435716.390] Entry deleted from font path.
[1435716.390] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[1435716.390] Entry deleted from font path.
[1435716.390] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[1435716.390] Entry deleted from font path.
[1435716.390] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[1435716.390] Entry deleted from font path.
[1435716.390] (==) FontPath set to:
/usr/share/fonts/X11/misc,
built-ins
[1435716.390] (==) ModulePath set to "/usr/lib/xorg/modules"
[1435716.390] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[1435716.390] (II) Loader magic: 0x558446607020
[1435716.390] (II) Module ABI versions:
[1435716.390] X.Org ANSI C Emulation: 0.4
[1435716.390] X.Org Video Driver: 24.1
[1435716.390] X.Org XInput driver : 24.1
[1435716.390] X.Org Server Extension : 10.0
[1435716.391] (--) using VT number 2
[1435716.391] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card1)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card2)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card3)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card4)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card0)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card5)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card6)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card7)
[1435716.392] (II) xfree86: Adding drm device (/dev/dri/card8)
[1435716.419] (--) PCI: (39@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0xc0000000/16777216, 0x36000000000/137438953472, 0x39428000000/33554432
[1435716.419] (--) PCI: (40@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0xbe000000/16777216, 0x32000000000/137438953472, 0x35428000000/33554432
[1435716.419] (--) PCI: (67@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0xcb000000/16777216, 0x2a000000000/137438953472, 0x2d428000000/33554432
[1435716.419] (--) PCI: (68@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0xc9000000/16777216, 0x26000000000/137438953472, 0x29428000000/33554432
[1435716.419] (--) PCI:*(100@0:0:0) 1a03:2000:1458:1000 rev 65, Mem @ 0xd4000000/33554432, 0xd6000000/131072, I/O @ 0x00008000/128, BIOS @ 0x????????/131072
[1435716.419] (--) PCI: (163@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0x9f000000/16777216, 0x6e000000000/137438953472, 0x71428000000/33554432
[1435716.419] (--) PCI: (164@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0x9d000000/16777216, 0x6a000000000/137438953472, 0x6d428000000/33554432
[1435716.419] (--) PCI: (195@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0xaa000000/16777216, 0x60000000000/137438953472, 0x63428000000/33554432
[1435716.419] (--) PCI: (196@0:0:0) 10de:20b5:10de:1533 rev 161, Mem @ 0xa8000000/16777216, 0x5c000000000/137438953472, 0x5f428000000/33554432
[1435716.419] (II) LoadModule: "glx"
[1435716.420] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[1435716.420] (II) Module glx: vendor="X.Org Foundation"
[1435716.420] compiled for 1.20.13, module version = 1.0.0
[1435716.420] ABI class: X.Org Server Extension, version 10.0
[1435716.420] (II) LoadModule: "nvidia"
[1435716.420] (WW) Warning, couldn't open module nvidia
[1435716.420] (EE) Failed to load module "nvidia" (module does not exist, 0)
[1435716.911] (==) Matched ast as autoconfigured driver 0
[1435716.911] (==) Matched nouveau as autoconfigured driver 1
[1435716.911] (==) Matched modesetting as autoconfigured driver 2
[1435716.911] (==) Matched fbdev as autoconfigured driver 3
[1435716.911] (==) Matched vesa as autoconfigured driver 4
[1435716.911] (==) Assigned the driver to the xf86ConfigLayout
[1435716.911] (II) LoadModule: "ast"
[1435716.911] (WW) Warning, couldn't open module ast
[1435716.911] (EE) Failed to load module "ast" (module does not exist, 0)
[1435716.911] (II) LoadModule: "nouveau"
[1435716.911] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[1435716.911] (II) Module nouveau: vendor="X.Org Foundation"
[1435716.911] compiled for 1.20.3, module version = 1.0.16
[1435716.911] Module class: X.Org Video Driver
[1435716.911] ABI class: X.Org Video Driver, version 24.0
[1435716.911] (II) LoadModule: "modesetting"
[1435716.911] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[1435716.911] (II) Module modesetting: vendor="X.Org Foundation"
[1435716.911] compiled for 1.20.13, module version = 1.20.13
[1435716.911] Module class: X.Org Video Driver
[1435716.911] ABI class: X.Org Video Driver, version 24.1
[1435716.911] (II) LoadModule: "fbdev"
[1435716.911] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[1435716.912] (II) Module fbdev: vendor="X.Org Foundation"
[1435716.912] compiled for 1.20.1, module version = 0.5.0
[1435716.912] Module class: X.Org Video Driver
[1435716.912] ABI class: X.Org Video Driver, version 24.0
[1435716.912] (II) LoadModule: "vesa"
[1435716.912] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[1435716.912] (II) Module vesa: vendor="X.Org Foundation"
[1435716.912] compiled for 1.20.4, module version = 2.4.0
[1435716.912] Module class: X.Org Video Driver
[1435716.912] ABI class: X.Org Video Driver, version 24.0
[1435716.912] (II) NOUVEAU driver Date: Mon Jan 28 23:25:58 2019 -0500
[1435716.912] (II) NOUVEAU driver for NVIDIA chipset families :
[1435716.912] RIVA TNT (NV04)
[1435716.912] RIVA TNT2 (NV05)
[1435716.912] GeForce 256 (NV10)
[1435716.912] GeForce 2 (NV11, NV15)
[1435716.912] GeForce 4MX (NV17, NV18)
[1435716.912] GeForce 3 (NV20)
[1435716.912] GeForce 4Ti (NV25, NV28)
[1435716.912] GeForce FX (NV3x)
[1435716.912] GeForce 6 (NV4x)
[1435716.912] GeForce 7 (G7x)
[1435716.912] GeForce 8 (G8x)
[1435716.912] GeForce 9 (G9x)
[1435716.912] GeForce GTX 2xx/3xx (GT2xx)
[1435716.912] GeForce GTX 4xx/5xx (GFxxx)
[1435716.912] GeForce GTX 6xx/7xx (GKxxx)
[1435716.912] GeForce GTX 9xx (GMxxx)
[1435716.912] GeForce GTX 10xx (GPxxx)
[1435716.912] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[1435716.912] (II) FBDEV: driver for framebuffer: fbdev
[1435716.912] (II) VESA: driver for VESA chipsets: vesa
[1435716.912] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[1435716.916] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.917] (EE) [drm] Failed to open DRM device for pci:0000:27:00.0: -2
[1435716.917] (WW) Falling back to old probe method for modesetting
[1435716.917] (II) modeset(1): using default device
[1435716.917] (WW) Falling back to old probe method for fbdev
[1435716.917] (II) Loading sub module "fbdevhw"
[1435716.917] (II) LoadModule: "fbdevhw"
[1435716.917] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[1435716.917] (II) Module fbdevhw: vendor="X.Org Foundation"
[1435716.917] compiled for 1.20.13, module version = 0.0.2
[1435716.918] ABI class: X.Org Video Driver, version 24.1
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (EE) [drm] Failed to open DRM device for (null): -2
[1435716.918] (II) modeset(G0): using drv /dev/dri/card0
[1435716.918] (EE) Screen 0 deleted because of no matching config section.
[1435716.918] (II) UnloadModule: "modesetting"
[1435716.918] (EE)
Fatal server error:
[1435716.918] (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
[1435716.918] (EE)
[1435716.918] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[1435716.918] (EE) Please also check the log file at "/var/log/ai2thor-xorg.0.log" for additional information.
[1435716.918] (EE)
[1435716.923] (EE) Server terminated with error (1). Closing log file.
`
I got a similar error above. But when I switched the engine to "CYCLES", everything worked fine. I noticed a comment mentioned "CYCLES is much slower than BLENDER_EEVEE", may I have some elaboration on this?
Thank you so much.