shkhln / linuxulator-steam-utils

Steam launcher for FreeBSD
MIT License
128 stars 12 forks source link

Built in chromium broken #8

Closed darkfiberiru closed 3 years ago

darkfiberiru commented 4 years ago

I'm on FreeBSD head and steam big picture mode seems to somewhat work and menu/windows work. But all of the Ui based around chrome seems very busted. Not sure if there's been changes on head that broke or steam or If my system is just configured weirdly.

This is main error repeated over and over again

[0531/165940.361422:ERROR:broker_posix.cc(110)] Error sending sync broker message: Broken pipe (32)
[0531/165940.361603:ERROR:command_buffer_proxy_impl.cc(93)] ContextResult::kFatalFailure: AllocateAndMapSharedMemory failed

Mount Points

zroot/ROOT/2020-5-31-16-27-29 on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs)
zroot/tmp on /tmp (zfs, local, nfsv4acls)
zroot/usr/home on /usr/home (zfs, local, nfsv4acls)
zroot/var/mail on /var/mail (zfs, local, nfsv4acls)
zroot/usr/ports on /usr/ports (zfs, local, nfsv4acls)
zroot/var/audit on /var/audit (zfs, local, nfsv4acls)
zroot/var/log on /var/log (zfs, local, nfsv4acls)
zroot/var/tmp on /var/tmp (zfs, local, nfsv4acls)
zroot/usr/jails on /usr/jails (zfs, local, nfsv4acls)
zroot/usr/obj on /usr/obj (zfs, local, nfsv4acls)
zroot/usr/src on /usr/src (zfs, local, nfsv4acls)
procfs on /proc (procfs, local)
tmpfs on /compat/linux/dev/shm (tmpfs, local)
linprocfs on /compat/linux/proc (linprocfs, local)
linsysfs on /compat/linux/sys (linsysfs, local)
fdescfs on /dev/fd (fdescfs)
darkfiberiru commented 4 years ago

Var log messages at this point looks like this. Trying to figure out how to decode those ioctls.

May 31 16:59:25 workstation kernel: linux: pid 17957 (CHTTPClientThre): unsupported setsockopt level 6 optname 18
May 31 16:59:26 workstation kernel: linux: pid 17995 (Chrome_IOThread): syscall inotify_init not implemented
May 31 16:59:27 workstation kernel: linux: pid 17957 (CIPCServer::Thr): ioctl fd=57, cmd=0x8946 ('',70) is not implemented
May 31 16:59:27 workstation syslogd: last message repeated 2 times
May 31 16:59:27 workstation kernel: linux: pid 17957 (CIPCServer::Thr): ioctl fd=55, cmd=0x8946 ('',70) is not implemented
May 31 16:59:27 workstation kernel: linux: pid 17957 (CHTTPClientThre): unsupported setsockopt level 6 optname 18
May 31 16:59:28 workstation syslogd: last message repeated 1 times
May 31 16:59:28 workstation kernel: linux: pid 17957 (CHTTPCacheFileT): unsupported setsockopt level 6 optname 18
May 31 16:59:38 workstation kernel: linux: pid 17957 (CNet Encrypt:0): unsupported setsockopt level 6 optname 18
May 31 16:59:39 workstation kernel: linux: pid 18000 (ThreadPoolForeg): syscall inotify_init not implemented
May 31 16:59:40 workstation kernel: linux: pid 18000 (ThreadPoolForeg): ioctl fd=29, cmd=0xf50c ('',12) is not implemented
May 31 16:59:41 workstation kernel: linux: pid 17957 (Steam - DirWatc): unsupported setsockopt level 6 optname 18
May 31 16:59:44 workstation syslogd: last message repeated 3 times
May 31 16:59:46 workstation kernel: pid 17995 (ThreadPoolForeg), jid 0, uid 1002: exited on signal 5 (core dumped)
shkhln commented 4 years ago

Were web views working before or is it a new setup?

This is main error repeated over and over again

[0531/165940.361422:ERROR:broker_posix.cc(110)] Error sending sync broker message: Broken pipe (32)
[0531/165940.361603:ERROR:command_buffer_proxy_impl.cc(93)] ContextResult::kFatalFailure: AllocateAndMapSharedMemory failed

There might be something preceding those lines.

darkfiberiru commented 4 years ago

Here's a whole lot more output

debugging-steam.txt New setup.

Recent Head Recent Ports Tree AMD 1950x Nvidia 2080ti

I've been able to successfully download games via big picture and play some stuff.

darkfiberiru commented 4 years ago

I previously tried looking with truss but so much output. Not sure how to instrument this kind of thing.

shkhln commented 4 years ago

I don't have any ideas at the moment, to be honest.

Var log messages at this point looks like this. Trying to figure out how to decode those ioctls.

Don't bother.

May 31 16:59:26 workstation kernel: linux: pid 17995 (Chrome_IOThread): syscall inotify_init not implemented

That's some optional feature in Chromium.

May 31 16:59:27 workstation kernel: linux: pid 17957 (CIPCServer::Thr): ioctl fd=57, cmd=0x8946 ('',70) is not implemented May 31 16:59:27 workstation kernel: linux: pid 17957 (CIPCServer::Thr): ioctl fd=55, cmd=0x8946 ('',70) is not implemented May 31 16:59:40 workstation kernel: linux: pid 18000 (ThreadPoolForeg): ioctl fd=29, cmd=0xf50c ('',12) is not implemented

I get those messages too, they are probably harmless as well.

May 31 16:59:25 workstation kernel: linux: pid 17957 (CHTTPClientThre): unsupported setsockopt level 6 optname 18

Level 6 = LINUX_SOL_TCP, optname 18 = LINUX_SO_RCVLOWAT. FreeBSD has direct equivalents to both, so that should go straight to the FreeBSD bug tracker.

darkfiberiru commented 4 years ago

Thanks for looking at it will keep playing with all of this.

trasz commented 4 years ago

Are you sure optname 18 with level 6 isn't TCP_USER_TIMEOUT? We don't seem to have a native counterpart for this one.

Regarding ioctls - Linux strace(1) binary can decode them.

shkhln commented 4 years ago

Are you sure optname 18 with level 6 isn't TCP_USER_TIMEOUT?

Hmm… You are probably right. I wasn't paying attention.

Regarding ioctls - Linux strace(1) binary can decode them.

…on CURRENT.

darkfiberiru commented 4 years ago

Oh I'm running on current :D my RemOS current build but identical to freebsd current except some build system and ocassional minor tweaks

darkfiberiru commented 4 years ago

Working on a new build of fairly recent ports and current and will see my mileage. Maybe put in reviews for any tcp options that need mapped

shkhln commented 4 years ago

Well, try using strace to capture the part which prints this "AllocateAndMapSharedMemory failed" message. That should help with diagnostics.

shkhln commented 3 years ago

Still broken?

darkfiberiru commented 3 years ago

This is working on my laptop but previously broken on my desktop. When I have time I will reverify on my desktop and compare settings if it doesn't work. As I don't have good answer I'm closing issue for now