x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can't run ue 4.19 on a headless ubuntu 16.04

I'm trying to run ue 4.19 on a headless ubuntu 16.04 without success. My card: 1080ti, nvidia driver: 390.67 I've installed 'xserver-xorg-video-dummy' and my xorg looks like this:

 Section "Module"
     Load    "RANDR"
     Load   "dbe"
     Load   "glx"
     Load   "extmod"
     Load   "type1"
     Load   "freetype"
 EndSection
 
 Section "Monitor"
     Identifier     "Monitor0"
     VendorName     "Unknown"
     ModelName      "Unknown"
     HorizSync       28.0 - 33.0    #Virtual monitor needs this
     VertRefresh     43.0 - 72.0    #this, too
     Option         "DPMS"
 EndSection
 
 Section "Device"
     Identifier     "Device0"
     Driver         "nvidia"              #change for AMD or Intel
     VendorName     "NVIDIA Corporation"  #this, too
     Option "NoLogo" "1"                  #also this
 EndSection
 
 Section "Screen"
     Identifier     "Screen0"
     Device         "Device0"
     Monitor        "Monitor0"
     DefaultDepth    24
     SubSection     "Display"
         Depth       24
         Virtual 1920 1080
     Option          "AllowEmptyInitialConfiguration" "True"
     EndSubSection
 EndSection
 
 Section "Extensions"
     Option "Composite" "Enable"
     Option "RANDR" "Enable"
 EndSection
 

It works fine, I can connect to the ubuntu via vnc / teamviewer. When I am trying to run ue4 from console I got following erorr:

 [2018.06.18-08.36.41:927][  0]LogInit: Initializing SDL.
 [2018.06.18-08.36.41:964][  0]LogInit: Warning: Could not initialize SDL: XRandR support is required but not available
 [2018.06.18-08.36.41:964][  0]LogInit: Warning: FLinuxSplashState::InitSplashResources() : InitSDL() failed, there will be no splash.
 [2018.06.18-08.36.41:964][  0]LogInit: Initializing SDL.
 [2018.06.18-08.36.41:992][  0]LogInit: Warning: Could not initialize SDL: XRandR support is required but not available
 [2018.06.18-08.36.41:992][  0]LogInit: Error: FLinuxApplication::CreateLinuxApplication() : InitSDL() failed, cannot create application instance.
 [2018.06.18-08.36.41:992][  0]LogLinux: FLinuxPlatformMisc::RequestExit(bForce=true, ReturnCode=1)
 [2018.06.18-08.36.41:992][  0]LogLinux: FLinuxPlatformMisc::RequestExit(1)
 

But "xrandr" works from console. I also found following lines in xorg log:

 [    19.404] (II) LoadModule: "randr"
 [    19.417] (WW) Warning, couldn't open module randr
 [    19.417] (II) UnloadModule: "randr"
 [    19.417] (II) Unloading randr
 [    19.417] (EE) Failed to load module "randr" (module does not exist, 0)
 [    20.510] (--) RandR disabled

Product Version: UE 4.19
Tags:
more ▼

asked Jun 18 '18 at 08:44 AM in Linux

avatar image

ugoeyr
6 1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You don't need X11 server to run headless, the editor should create the context via EGL (provided that you have NVidia binary drivers) and will render into an offscreen framebuffer. This is of course if you want rendering at all - if you don't need rendering you can pass -nullrhi (UE servers have -nullrhi implied and never require graphics).

I recommend uninstalling the dummy X server because it actually gets into the way - once the engine realizes it has some X server it starts to require particular extensions that the dummy one doesn't seem to support.

more ▼

answered Jun 18 '18 at 01:34 PM

avatar image

RCL STAFF
2.7k 59 6 88

avatar image ugoeyr Jun 19 '18 at 08:14 AM

Thank you for answer. Where can I find all parameters that can be passed to UE4Editor? The problem is I still want to have GUI on a server side for visualization. And I want to be able to open editor on a server side when I need to change project. So, I run X11 server on startup. I removed dummy driver, however nothing changed. It still cannot init SDL().

avatar image kabi_beast Jul 03 '19 at 11:51 AM

I'm facing the same issue. Any luck fixing the issue?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question