New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not initialize SDL: XRandR support is required but not available #1708
Comments
Are you using xvfb? Can you share the output of |
hey @UPUPGOO. So, I couldn't figure it out what was the cause the last time we talked about it. But today, I faced the exact same issue myself, and have found a workaround - disable xinerama by disabling the monitor using the default Intel GPU in nvidia-settings. I am not sure if your situation is similar to mine, but xinerama seems to be the culprit here. Enabling it disables xrandr. (https://bugs.launchpad.net/ubuntu/+source/xrandr/+bug/295313 , https://www.linuxquestions.org/questions/fedora-35/x-org-xinerama-and-randr-%2Asigh%2A-598941/) In my case, I have a dual monitor setup and one is using the defaul Intel GPU, and another an Nvidia GPU, AND Xinerama was enabled in Now if I uncheck the xinerama enabled box in the above image, only the intel gpu is used, and the monitor connected to nvidia does not work and shows a black screen (and unreal would use the intel gpu), which is not what we want. Xinerama is used for relative positioning of the displays here (although xrandr should be able to do it as well?). So, well I just disabled the monitor using intel gpu, and disableds xinerama, and the error goes away. The unreal building on linux wiki page offers a better solution for multi-monitor setup. Ctrl+F "SDL2 with multi-monitor support" in there and you'll see :
However, running
Well, you can try installing vulkan from here https://vulkan-tutorial.com/Development_environment#page_Vulkan_SDK. And try again. But I think a better solution is figuring out why relative positioning of monitors / the monitor connected to nvidia gpu's display port doesn't work with xinerama being disabled in nvidia-settings. Dunno how to do that. |
@UPUPGOO please comment / reopen issue if the above comment doesn't resolve it. |
I met same problem when running UnrealEngine. [2020.01.22-06.05.51:870][ 0]LogInit: Warning: Could not initialize SDL: XRandR support is required but not available
how did you solve it? |
@xiaoaoran Can you check if one of these helps sudo apt install libxrandr-dev |
@saihv I installed these two packages, but it ddn't work By the way, I am running Xshell in windows to connect a ubuntu server for this project. I appreciate for a solution! |
@UPUPGOO Did you solve it? |
Did anyone found a solution? I was trying to install UE4.22 in WSL and this popped out. |
Did anyone found a solution? i'm also running Xshell in windows to connect a ubuntu server |
I'm having the sort of the same issue. Following is my setup, the issues I had and the things I have tried so far. Ubuntu: 18.04 Following are the ways I tried to launch UE Editor.
Relevent installed packages:
However, when I tried
However, I can successfully run the UE Editor at the server. This only happens with the remote login. Can someone please suggest what could be the issue here? |
same issue here. Running vncserver on a remote ubuntu 18.04 machine and using novnc. Same error ! |
I also use vnc on remote ubuntu 18.04, same error, above suggestions didn't work for me |
Still having this problem as well, using VNC to connect to an Ubuntu 18.04 VM. |
hello , i resolve this problem by install gdm3,and replace gdm3 with lightgdm 1、sudo apt-get update 2、sudo apt-get -d install --reinstall lightdm 3、sudo apt-get remove --purge lightdm 4、sudo apt-get install gdm 5、sudo reboot after reboot 1、sudo apt-get install --reinstall gnome-session 2、sudo apt-get install --reinstall ubuntu-desktop |
LogInit: Warning: Could not initialize SDL: XRandR support is required but not available
LogInit: Error: FLinuxApplication::CreateLinuxApplication() : InitSDL() failed, cannot create application instance.
LogLinux: FLinuxPlatformMisc::RequestExit(bForce=true, ReturnCode=1)
LogLinux: FLinuxPlatformMisc::RequestExit(1)
When I run AirSimNH.sh, errors occured.[https://github.com/Microsoft/AirSim/releases]
So what can I do?
Thank you for your answer.
The text was updated successfully, but these errors were encountered: