Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Seemingly random breakage of Direct3D on Proton/wine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Irets
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2019
Posts: 95

PostPosted: Sun Jan 23, 2022 6:02 am    Post subject: Seemingly random breakage of Direct3D on Proton/wine Reply with quote

Hi,
This might be a continuation of this thread where I thought I had made a configuration mistake with my kernel but it has come apparent that it has not been the case.
In that thread I came to the conclusion that after a recompile & tweak of a few settings I got myself a upgraded and fully working kernel with Wine/Proton, but the issue has come back.

I've not made any tweaks to my system since then.
After inspection of logs that BeamNG.drive and Anomaly mod for S.T.A.L.K.E.R have given me, the issue seems to lie within Wine/Proton not being able to locate/initialize all it's components, more precisely Direct3D.

Attempting to launch Anomaly:
Code:
irets@navi /mnt/ssd2/linux/anomaly151 $ cat startgame.sh
#!/bin/bash
WINEPREFIX="/mnt/ssd2/linux/anomaly151/wine" "$HOME/Git/wine-7.0-rc6/wine64-build/wine" "AnomalyLauncher.exe"
irets@navi /mnt/ssd2/linux/anomaly151 $ ./startgame.sh
002c:err:winediag:getaddrinfo Failed to resolve your host name IP
0100:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0060:fixme:imm:ImeSetActiveContext (0x15e060, 0): stub
0060:fixme:imm:ImmReleaseContext (0000000000010020, 000000000015E060): stub
0100:fixme:imm:ImeSetActiveContext (0x642b40, 1): stub
0100:fixme:imm:ImmReleaseContext (0000000000010088, 0000000000642B40): stub
0110:err:module:import_dll Library D3DCOMPILER_43.dll (which is needed by L"Z:\\mnt\\ssd2\\linux\\anomaly151\\bin\\AnomalyDX11AVX.exe") not found
0110:err:module:import_dll Library VCRUNTIME140.dll (which is needed by L"Z:\\mnt\\ssd2\\linux\\anomaly151\\bin\\icuuc65.dll") not found
0110:err:module:import_dll Library icuuc65.dll (which is needed by L"Z:\\mnt\\ssd2\\linux\\anomaly151\\bin\\AnomalyDX11AVX.exe") not found
0110:err:module:import_dll Library VCRUNTIME140.dll (which is needed by L"Z:\\mnt\\ssd2\\linux\\anomaly151\\bin\\tbb.dll") not found
0110:err:module:import_dll Library tbb.dll (which is needed by L"Z:\\mnt\\ssd2\\linux\\anomaly151\\bin\\AnomalyDX11AVX.exe") not found
0110:err:module:import_dll Library VCRUNTIME140.dll (which is needed by L"Z:\\mnt\\ssd2\\linux\\anomaly151\\bin\\AnomalyDX11AVX.exe") not found
0110:err:module:LdrInitializeThunk Importing dlls for L"Z:\\mnt\\ssd2\\linux\\anomaly151\\bin\\AnomalyDX11AVX.exe" failed, status c0000135

In the above output Anomaly was on my other SSD drive that is formatted NTFS and after copying it over to my ext4 OS disk, it booted succesfully without problems of any kind.

Here's what BeamNG.drive says when crashing with STATUS_ACCESS_VIOLATION:
http://ix.io/3NcX
Direct3D is also failing here on line 358 and a very similar type of error was present in BeamNG's log in my previous thread.

Here's my fstab where you can see how the drive gets mounted on boot.
Code:
UUID=478832c6-257f-4147-8c79-01c22a1c5aef               /               ext4            noatime         0 1
UUID=8292F49992F49341                                   /mnt/ssd2       ntfs-3g         uid=1000,gid=1000       0 0


Output of emerge --info:
Code:
Portage 3.0.28 (python 3.9.9-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r7, 5.15.11-wired-x86_64 x86_64)
=================================================================
System uname: Linux-5.15.11-wired-x86_64-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-glibc2.33
KiB Mem:    16330948 total,   1295332 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 22 Jan 2022 03:00:01 +0000
Head commit of repository gentoo: 2e3b84dd5e01c54a20d60954fc29ccff9abe0871
Timestamp of repository dotnet: Tue, 04 Jan 2022 12:07:24 +0000
Head commit of repository dotnet: 41f7dc205a1f7c1f15b83b2eda089760a5afcfec

Timestamp of repository guru: Fri, 21 Jan 2022 19:22:28 +0000
Head commit of repository guru: 57bf4e30a2b000139b3c18d0ca94059489716951

Head commit of repository steam-overlay: c22c8b4dbe7455d2cdebbf2000cfce167ab1afaf

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.56.1::gentoo
dev-util/cmake:            3.21.4::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

dotnet
    location: /var/db/repos/dotnet
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dotnet.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ https://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/"
INSTALL_MASK="/lib/systemd/*/*.service /usr/lib/systemd/*/*.service"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp split-usr ssl unicode xattr xinerama zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Here's my dmesg:
http://ix.io/3Nd3

Could this hint towards hardware problems? How should I attempt to dig for more information?

Cheers.

EDIT:
After a good night's sleep and a reboot of the system, my Proton/Wine games are working again on the NTFS disk.
I don't know how this reboot could have fixed anything as I did a couple reboots yesterday in hopes of the issue temporarily fixing itself again.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2356
Location: Here and Away Again

PostPosted: Mon Jan 24, 2022 6:22 am    Post subject: Re: Seemingly random breakage of Direct3D on Proton/wine Reply with quote

Irets wrote:
EDIT:
After a good night's sleep and a reboot of the system, my Proton/Wine games are working again on the NTFS disk.
I don't know how this reboot could have fixed anything as I did a couple reboots yesterday in hopes of the issue temporarily fixing itself again.

After a quick look, I don't see anything obvious that could have caused the issue(s) here, but as a general note, it's not recommended to combine Wine with NTFS. It may or may not work, and can cause tricky-to-figure-out issues.

As for how a reboot could have fixed anything, sometimes Wine processes can hang in the background, often after a crash, but it can also happen even though the application seemed to terminate just fine. With the processes hung, running a thing again may then be unsuccessful, or at least I do believe I have seen it happen myself in the past.

In any case, hopefully this issue will stay fixed. :]
_________________
Kind regards,
Chiitoo.

Sore wa sore, kore wa kore.
Back to top
View user's profile Send private message
Irets
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2019
Posts: 95

PostPosted: Thu Jan 27, 2022 7:27 am    Post subject: Reply with quote

The issue has come back.
I will see into copying all my stuff over and formatting the drive to ext4 this or next week in case the issue is caused by the NTFS file system.

There aren't any Wine/Proton processes running in the background, so the random reboot way of fixing it is still mysterious.

EDIT:
I have noticed that rebooting is not neccessary.
It just takes a few umount /dev/sdc1 && mount -av -commands and a hint of luck.
After running into the issue, I was able to launch Wine/Proton games after the third run of said command.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum