Unreal 5.6 on Linux, Start and Crash

ok, I’ve found a workaround for fab as well.

Findings

Basically the issue seems to be with the new system dns:

/lib64/libnss_resolve.so.2: error: symbol lookup error: undefined symbol: _nss_resolve_endaliasent (fatal)

(can be seen with LD_DEBUG=libs ./Engine/Binaries/Linux/UnrealEditor)

a temporary workaround is to change the nsswitch.conf (use authselect when you verify the below works - read below for authselect instructions)

cat /etc/nsswitch.conf
# Generated by authselect
# Do not modify this file manually, use authselect instead. Any user changes will be overwritten.
# You can stop authselect from managing your configuration by calling 'authselect opt-out'.
# See authselect(8) for more details.

# In order of likelihood of use to accelerate lookup.
passwd:     files systemd
shadow:     files systemd
group:      files [SUCCESS=merge] systemd
#hosts:      files myhostname mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
hosts: files dns # CHANGE ABOVE TO THIS TAKE BACKUPS
services:   files
netgroup:   files
automount:  files

aliases:    files
ethers:     files
gshadow:    files systemd
networks:   files dns
protocols:  files
publickey:  files
rpc:        files

Authselect

sudo authselect create-profile custom-nss --base-on=local
sudo vi /etc/authselect/custom/custom-nss/nsswitch.conf

and do the changes
moving dns after files myhostname also works

Then when using unreal (this can also be done when unreal is running, on a different session) you can do
sudo authselect select custom/custom-nss --force

Comments

It does look like the getaddrinfo crashes when the dns reaches resolve stage

I guess the issue is the packaged libraries might not be compatible with some system libraries, but I haven’t spent too much time on this.

It does solve the issue for me, maybe another day I’ll dig deeper (maybe a libcef update is needed, I don’t know, I have an older ubuntu machine , it may work there, when I’m on it I’ll update here)

1 Like