Skip to content
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

Persistent crashes with cached shaders with Mesa #130

Closed
ghost opened this issue Aug 14, 2018 · 108 comments
Closed

Persistent crashes with cached shaders with Mesa #130

ghost opened this issue Aug 14, 2018 · 108 comments
Labels
fatal-error Prevents running the steam Flatpak under default configurations across a large number of setups

Comments

@ghost
Copy link

ghost commented Aug 14, 2018

Environment

Operation System Flatpak Version Desktop Environment
Fedora 28 0.99.3 Gnome 3.28.2
$ flatpak run com.valvesoftware.Steam -d
Running Steam on org.freedesktop.platform 18.08 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
sh: lspci: command not found
Installing breakpad exception handler for appid(steam)/version(1533766730)
surface_linux.cpp (2095) : Assertion Failed: None of the authentication protocols specified are supported
Assert( Assertion Failed: None of the authentication protocols specified are supported ):surface_linux.cpp:2095

Installing breakpad exception handler for appid(steam)/version(1533766730)
assert_20180814090255_6.dmp[161]: Uploading dump (out-of-process)
/tmp/dumps/assert_20180814090255_6.dmp
[0814/090256.298400:WARNING:crash_reporting.cc(254)] Failed to set crash key: UserID with value: 0
[0814/090256.298490:WARNING:crash_reporting.cc(254)] Failed to set crash key: BuildID with value: 1533764000
[0814/090256.298500:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0814/090256.298509:WARNING:crash_reporting.cc(254)] Failed to set crash key: Version with value: 20180808213320
[0814/090256.298517:WARNING:crash_reporting.cc(254)] Failed to set crash key: ProductName with value: cefwebhelper
[0814/090256.298530:WARNING:crash_reporting.cc(254)] Failed to set crash key: Vendor with value: Valve
[0814/090256.373070:ERROR:gpu_process_transport_factory.cc(1029)] Lost UI shared context.
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
CAppInfoCacheReadFromDiskThread took 81 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
[0814/090256.651946:WARNING:crash_reporting.cc(254)] Failed to set crash key: UserID with value: 0
[0814/090256.651990:WARNING:crash_reporting.cc(254)] Failed to set crash key: BuildID with value: 1533766730
[0814/090256.652004:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0814/090256.652016:WARNING:crash_reporting.cc(254)] Failed to set crash key: Version with value: 20180808213320
[0814/090256.652027:WARNING:crash_reporting.cc(254)] Failed to set crash key: ProductName with value: cefwebhelper
[0814/090256.652039:WARNING:crash_reporting.cc(254)] Failed to set crash key: Vendor with value: Valve
CApplicationManagerPopulateThread took 299 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)

** (steam:117): WARNING **: 09:02:57.155: Unknown device type 14

** (steam:117): WARNING **: 09:02:57.155: Could not create object for /org/freedesktop/NetworkManager/Devices/1: unknown object type
assert_20180814090255_6.dmp[161]: Finished uploading minidump (out-of-process): success = yes
assert_20180814090255_6.dmp[161]: response: CrashID=bp-661ee177-edfc-42a8-83d6-091d02180813
assert_20180814090255_6.dmp[161]: file ''/tmp/dumps/assert_20180814090255_6.dmp'', upload yes: ''CrashID=bp-661ee177-edfc-42a8-83d6-091d02180813''
[0814/090258.745031:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
[0814/090259.761795:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
[0814/090300.657057:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
Assert( CClientPipe::BWriteAndReadResult: BWaitResult failed, disconnected ):../common/pipes.cpp:766

/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/steam.sh: line 876:   117 Segmentation fault      (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
crash_20180814090302_2.dmp[241]: Uploading dump (out-of-process)
/tmp/dumps/crash_20180814090302_2.dmp
crash_20180814090302_2.dmp[241]: Finished uploading minidump (out-of-process): success = yes
crash_20180814090302_2.dmp[241]: response: Discarded=1
crash_20180814090302_2.dmp[241]: file ''/tmp/dumps/crash_20180814090302_2.dmp'', upload yes: ''Discarded=1''
@ghost
Copy link
Author

ghost commented Aug 14, 2018

@matthew-cline I'm just a normal user not a linux expert and maybe wrong but, It seem i already install a require below on line 14.

org.freedesktop.Platform/x86_64/18.08 system,runtime

1 com.transmissionbt.Transmission/x86_64/stable     system,current
2 com.valvesoftware.Steam/x86_64/stable             system,current
2 com.visualstudio.code.oss/x86_64/stable           system,current
3 io.github.GnomeMpv/x86_64/stable                  system,current
4 org.gnome.Boxes/x86_64/stable                     system,current
5 org.gnome.Geary/x86_64/stable                     system,current
6 org.jdownloader.JDownloader/x86_64/stable         system,current
7 org.libreoffice.LibreOffice/x86_64/stable         system,current
8 org.mozilla.FirefoxDevEdition/x86_64/master       system,current
9 org.freedesktop.Platform.Compat.i386/x86_64/18.08 system,runtime
10 org.freedesktop.Platform.Compat32/x86_64/1.6      system,runtime
11 org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08 system,runtime
12 org.freedesktop.Platform.ffmpeg/x86_64/1.6        system,runtime
13 org.freedesktop.Platform/x86_64/1.6               system,runtime
14 org.freedesktop.Platform/x86_64/18.08             system,runtime
15 org.freedesktop.Sdk/x86_64/1.6                    system,runtime
16 org.freedesktop.Sdk/x86_64/18.08                  system,runtime
17 org.gnome.Platform/x86_64/3.24                    system,runtime
18 org.gnome.Platform/x86_64/3.28                    system,runtime
19 org.gtk.Gtk3theme.Adapta-Eta/x86_64/3.22          system,runtime

@matthew-cline
Copy link

To fix the problem I tried locally emptying out all my installed flatpak stuff and the reinstalling flatpak Steam from scratch. First I had to install runtime/org.freedesktop.Platform/x86_64/18.08 to get things working at all, since that hadn't been pulled in as a dependency. Then I installed org.freedesktop.Sdk/x86_64/18.08 and org.freedesktop.Platform.ffmpeg/x86_64/1.6, but still no go. The system journal is indicating that the crash is happening with a steam process whose comm is si_shader, so maybe it's a graphics driver issue? My machine is an AMD Radeon, and what I have installed is:

Ref                                               Options       
com.valvesoftware.Steam/x86_64/stable             system,current
org.freedesktop.Platform.Compat.i386/x86_64/18.08 system,runtime
org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08 system,runtime
org.freedesktop.Platform.ffmpeg/x86_64/1.6        system,runtime
org.freedesktop.Platform/x86_64/18.08             system,runtime
org.freedesktop.Sdk/x86_64/18.08                  system,runtime

I'm using flatpak version 0.99.3 on Fedora 28 with KDE 5.13.3

@nanonyme
Copy link
Collaborator

Ping @valentindavid

@nanonyme
Copy link
Collaborator

@matthew-cline are you installing Steam through command line or some GUI?

@matthew-cline
Copy link

@nanonyme Installed Steam via the flatpak command line.

@nanonyme
Copy link
Collaborator

I wonder whether that migration case to newer runtime on upgrade just works poorly in flatpak currently

@valentindavid
Copy link
Contributor

valentindavid commented Aug 14, 2018

It might be an issue with Mesa. I would recommend you to remove $HOME/.var/app/com.valvesoftware.Steam/cache/mesa_shader_cache.

@nanonyme
Copy link
Collaborator

nanonyme commented Aug 14, 2018

My hunch based on reading is Steam is having issues connecting to X11 in original report. The container should be letting connections through (that has not been touched) as long as context about what to contact to isn't missing. Does xrandr work inside the app @vibolvireak ?

@ghost
Copy link
Author

ghost commented Aug 14, 2018

@nanonyme I may really happy to help if you provide more understandable guide on step by step how to perform your action because as i remark on my first comment that i'm just only a normal user so i don't know how to produce your step according to xrandr etc.

Your question seem to be hard for me 😥

@valentindavid
Copy link
Contributor

@vibolvireak What was the result of cleaning the mesa shader cache?

@ghost
Copy link
Author

ghost commented Aug 14, 2018

@valentindavid @nanonyme sorry my bad after cleaning as you suggest with

rm -r $HOME/.var/app/com.valvesoftware.Steam/cache/mesa_shader_cache

Confirmed: now steam start fine no error and i can back to play my game.

Thank you!

@valentindavid
Copy link
Contributor

I had this problem sometimes. But I always thought it happened with downgrading Mesa only (I have been switching version of runtime back and forth). But I suppose there is a real bug in Mesa here and we should try to reproduce it simply and report to upstream. There are probably others not using flatpak getting the same issue when upgrading distribution. I recommend we keep this issue open and we work on that.

@nanonyme
Copy link
Collaborator

Hmm, that actually makes me wonder if it's even a good idea to persist the cache at all if it can result in this kind of issues. Of course currently it's speeding up game launches

@valentindavid
Copy link
Contributor

Could steam-wrapper cache the version of Mesa (both 32 and 64 bits) and cleans up the cache each time it detects a new version?

@nanonyme
Copy link
Collaborator

I don't know but the logic would need to work in nVidia proprietary as well. Guess we could write some deployment timestamp in post install and track its changes in steam-wrapper?

@nanonyme
Copy link
Collaborator

I guess that wouldn't in practice work except for these major runtime upgrades

@nanonyme
Copy link
Collaborator

@vibolvireak do you happen to have Intel GPU? Looks like shader cache was only recently enabled there

@valentindavid
Copy link
Contributor

Then it was probably AMDGPU. I think it would be nice in general to clean the cache. And yes. The stamp is fine. With certain version of the kernel, you can get total gpu freeze when downgrading Mesa or LLVM. Never got that when upgrading though.

We could use: glxinfo | grep "OpenGL renderer string: " for the stamp.

@valentindavid
Copy link
Contributor

Also "OpenGL core profile version string"

@ghost
Copy link
Author

ghost commented Aug 14, 2018

@nanonyme @valentindavid I'm using Radeon RX 550.

Remark

No i can't play Dota 2.

screenshot from 2018-08-14 19-51-19
screenshot from 2018-08-14 19-56-20

When start the game the screen will look like this. I'm not yet test other game yet because i can't purchase it now. But i'm sure this will the mesa issue.

@valentindavid
Copy link
Contributor

@vibolvireak I do not have the same issue and I have a Radeon card. Are there any interesting messages in the console?

If not, make it more verbose:

flatpak run --env=MESA_DEBUG=1 --env=LIBGL_DEBUG=1 com.valvesoftware.Steam

@valentindavid
Copy link
Contributor

You could also try:

  • Disable shader pre-caching in Steam's settings.
  • Rename .var/app/com.valvesoftware.Steam to start from a clean install.

@ghost
Copy link
Author

ghost commented Aug 14, 2018

@valentindavid
running command
$ flatpak run --env=MESA_DEBUG=1 --env=LIBGL_DEBUG=1 com.valvesoftware.Steam
now steam unable to start again and only show message

$ flatpak run com.valvesoftware.Steam
Running Steam on org.freedesktop.platform 18.08 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!

@nanonyme
Copy link
Collaborator

If deleting shader cache again helps, I'm going to suspect there's something reproducibly breaking

@valentindavid
Copy link
Contributor

valentindavid commented Aug 14, 2018

@vibolvireak Try to remove the cache again.

If it does not work then, just reset.

flatpak run com.valvesoftware.Steam --reset

Then run Steam again.

@ghost
Copy link
Author

ghost commented Aug 14, 2018

Well remove .var/app/com.valvesoftware.Steam to start install steam from fresh and go to setting to disable sharder pre-caching but the game still not start

Here is the error while starting dota 2

Opted-in Controller Mask: 70
Game update: AppID 570 "", ProcID 293, IP 0.0.0.0:0
>>> Adding process 293 for game ID 570
GameAction [AppID 570, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
ERROR: ld.so: object '/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
chdir: error retrieving current directory: getcwd: cannot access parent directories: Success
pid 295 != 294, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
chdir: error retrieving current directory: getcwd: cannot access parent directories: Success
ERROR: ld.so: object '/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 570, ActionID 1] : LaunchApp changed task to Completed with ""
>>> Adding process 294 for game ID 570
>>> Adding process 296 for game ID 570
ERROR: ld.so: object '/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Using breakpad crash handler
Game update: AppID 570 "", ProcID 297, IP 0.0.0.0:0
Setting breakpad minidump AppID = 570
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198082899156 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561198082899156
Setting breakpad minidump AppID = 373300
>>> Adding process 297 for game ID 570
>>> Adding process 298 for game ID 570
Attempting to create OpenGL context: v3.3 (Core profile)...success.
Attempting to create OpenGL context: v3.3 (Core profile)...success.
DumpContextInfo: OpenGL vendor X.Org
DumpContextInfo: OpenGL renderer Radeon RX 550 Series (POLARIS12, DRM 3.25.0, 4.17.12-200.fc28.x86_64, LLVM 6.0.1)
DumpContextInfo: Using OpenGL context version 4.5
DumpContextInfo: Context supports GLSL version 4.50
 failed to dlopen "/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/librenderdoc.so" error=/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/dota 2 beta/game/bin/linuxsteamrt64/librenderdoc.so: cannot open shared object file: No such file or directory
 failed to dlopen "librenderdoc.so" error=librenderdoc.so: cannot open shared object file: No such file or directory
Installing breakpad exception handler for appid(gameoverlayui)/version(20180808213232)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
ERROR: ld.so: object '/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
crash_20180814223812_1.dmp[320]: Uploading dump (out-of-process)
/tmp/dumps/crash_20180814223812_1.dmp
>>> Adding process 319 for game ID 570
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
/home/fedora/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/common/dota 2 beta/game/dota.sh: line 104:   297 Segmentation fault      (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Installing breakpad exception handler for appid(steam)/version(1533766730)
Game removed: AppID 570 "", ProcID 297 
No cached sticky mapping in ActivateActionSet.Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
crash_20180814223812_1.dmp[320]: Finished uploading minidump (out-of-process): success = yes
crash_20180814223812_1.dmp[320]: response: CrashID=bp-ab9678c2-f880-45b5-8e79-c854b2180814
crash_20180814223812_1.dmp[320]: file ''/tmp/dumps/crash_20180814223812_1.dmp'', upload yes: ''CrashID=bp-ab9678c2-f880-45b5-8e79-c854b2180814''
pid 320 != 319, skipping destruction (fork without exec?)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Installing breakpad exception handler for appid(steam)/version(1533766730)
Assert( CClientPipe::BWriteAndReadResult: BWaitResult failed, disconnected ):../common/pipes.cpp:766

crash_20180814223824_2.dmp[329]: Uploading dump (out-of-process)
/tmp/dumps/crash_20180814223824_2.dmp
[0814/223824.892285:WARNING:crash_reporting.cc(254)] Failed to set crash key: UserID with value: 0
[0814/223824.892370:WARNING:crash_reporting.cc(254)] Failed to set crash key: BuildID with value: 1533764000
[0814/223824.892376:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0814/223824.892382:WARNING:crash_reporting.cc(254)] Failed to set crash key: Version with value: 20180808213320
[0814/223824.892387:WARNING:crash_reporting.cc(254)] Failed to set crash key: ProductName with value: cefwebhelper
[0814/223824.892392:WARNING:crash_reporting.cc(254)] Failed to set crash key: Vendor with value: Valve
[0814/223824.910217:ERROR:gpu_process_transport_factory.cc(1029)] Lost UI shared context.
[0814/223824.936009:WARNING:crash_reporting.cc(254)] Failed to set crash key: UserID with value: 76561198082899156
[0814/223824.936057:WARNING:crash_reporting.cc(254)] Failed to set crash key: BuildID with value: 1533766730
[0814/223824.936076:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0814/223824.936093:WARNING:crash_reporting.cc(254)] Failed to set crash key: Version with value: 20180808213320
[0814/223824.936107:WARNING:crash_reporting.cc(254)] Failed to set crash key: ProductName with value: cefwebhelper
[0814/223824.936126:WARNING:crash_reporting.cc(254)] Failed to set crash key: Vendor with value: Valve
[0814/223826.937375:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
[0814/223828.020554:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
crash_20180814223824_2.dmp[329]: Finished uploading minidump (out-of-process): success = yes
crash_20180814223824_2.dmp[329]: response: Discarded=1
crash_20180814223824_2.dmp[329]: file ''/tmp/dumps/crash_20180814223824_2.dmp'', upload yes: ''Discarded=1''
[0814/223829.038917:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
[0814/223830.025507:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
Setting breakpad minidump AppID = 769
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198082899156 [API loaded no]
[0814/223830.070864:WARNING:crash_reporting.cc(254)] Failed to set crash key: SteamUniverse with value: Public
[0814/223831.020457:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
Found unsupported CDM version 1.4.9.1088, using last known good version 1.4.8.1008

@nanonyme
Copy link
Collaborator

Try
flatpak run --env=MESA_GLSL_CACHE_DISABLE=true com.valvesoftware.Steam

@nanonyme
Copy link
Collaborator

If disabling cache removes this noise, we can set that in the json. You can always set local override for it if you want it back on

@ghost
Copy link
Author

ghost commented Aug 14, 2018

Finally running flatpak run --env=MESA_GLSL_CACHE_DISABLE=true com.valvesoftware.Steam can get the game to work.

@nanonyme
Copy link
Collaborator

Iirc there was some way to make gdb follow forks as well

@ghost
Copy link
Author

ghost commented Aug 24, 2018

@valentindavid

bash-4.4$ gdb bin/linuxsteamrt64/dota2 core --batch --eval-command=backtrace
"/home/fedora/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/dota 2 beta/game/core" is not a core dump: Is a directory
No stack.

@valentindavid
Copy link
Contributor

Oh, right. There is a directory called core. What a silly idea. OK, then:

echo coredump | sudo tee /proc/sys/kernel/core_pattern

Run the game it again. And then run gdb with coredump instead of core as parameter.

@EspadaV8
Copy link
Contributor

Coming here from #163 I've started RimWorld and created a dump file and running the command from #130 (comment) I get this output. Is this worth anything here or should I attach this information to the bug with Mesa?

bash-4.3$ gdb ./RimWorldLinux.x86_64 core-steam.336 --batch --eval-command=backtrace

warning: core file may not match specified executable file.
[New LWP 340]
[New LWP 336]
[New LWP 350]
[New LWP 360]
[New LWP 348]
[New LWP 342]
[New LWP 337]
[New LWP 363]
[New LWP 354]
[New LWP 338]
[New LWP 347]
[New LWP 358]
[New LWP 356]
[New LWP 361]
[New LWP 381]
[New LWP 368]
[New LWP 373]
[New LWP 367]
[New LWP 352]
[New LWP 351]
[New LWP 365]
[New LWP 353]
[New LWP 364]
[New LWP 372]
[New LWP 369]
[New LWP 366]
[New LWP 344]
[New LWP 376]
[New LWP 370]
[New LWP 377]
[New LWP 371]
[New LWP 357]
[New LWP 341]
[New LWP 375]
[New LWP 380]
[New LWP 343]
[New LWP 355]
[New LWP 339]
[New LWP 374]
[New LWP 349]
[New LWP 378]
[New LWP 379]
[New LWP 359]
[New LWP 362]
[New LWP 346]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

warning: File "/usr/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /usr/lib/libthread_db-1.0.so
line to your configuration file "/home/espadav8/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/espadav8/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.

warning: File "/usr/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `./RimWorldLinux.x86_64 -logfile /tmp/rimworld_log'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000003ecff2db0e in ?? () from /lib/libc.so.6
[Current thread is 1 (LWP 340)]
warning: File "/usr/lib/libstdc++.so.6.0.22-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
#0  0x0000003ecff2db0e in  () at /lib/libc.so.6
#1  0x00007f5bb3155cf8 in  () at /lib/dri/radeonsi_dri.so
#2  0x00007f5bb3155e73 in  () at /lib/dri/radeonsi_dri.so
#3  0x00007f5bb31584d0 in  () at /lib/dri/radeonsi_dri.so
#4  0x00007f5bb2ce92c5 in  () at /lib/dri/radeonsi_dri.so
#5  0x00007f5bb2ce8f37 in  () at /lib/dri/radeonsi_dri.so
#6  0x0000003ed0607444 in  () at /lib/libpthread.so.0
#7  0x0000003ecfee827f in clone () at /lib/libc.so.6

@nanonyme
Copy link
Collaborator

Did you install SDK and debug as instructed couple of comments above? Without debug symbols the stack is reasonably useless

@EspadaV8
Copy link
Contributor

Ah, sorry @nanonyme I completely missed that. Installing org.freedesktop.Sdk.Debug//18.08 now (seems I already had org.freedesktop.Sdk//18.08 installed)

@EspadaV8
Copy link
Contributor

hmm, I've installed the missing flatpaks but the output from gdb seems to be the same with the new coredump

bash-4.3$ gdb ./RimWorldLinux.x86_64 core-steam.318 --batch --eval-command=backtrace

warning: core file may not match specified executable file.
[New LWP 322]
[New LWP 320]
[New LWP 319]
[New LWP 324]
[New LWP 328]
[New LWP 332]
[New LWP 318]
[New LWP 336]
[New LWP 333]
[New LWP 344]
[New LWP 331]
[New LWP 359]
[New LWP 323]
[New LWP 339]
[New LWP 348]
[New LWP 330]
[New LWP 321]
[New LWP 360]
[New LWP 343]
[New LWP 338]
[New LWP 345]
[New LWP 329]
[New LWP 349]
[New LWP 353]
[New LWP 352]
[New LWP 361]
[New LWP 341]
[New LWP 355]
[New LWP 347]
[New LWP 342]
[New LWP 362]
[New LWP 340]
[New LWP 363]
[New LWP 325]
[New LWP 335]
[New LWP 350]
[New LWP 357]
[New LWP 334]
[New LWP 351]
[New LWP 354]
[New LWP 346]
[New LWP 337]
[New LWP 356]
[New LWP 326]
[New LWP 358]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

warning: File "/usr/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path /usr/lib/libthread_db-1.0.so
line to your configuration file "/home/espadav8/.gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/home/espadav8/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.

warning: File "/usr/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `./RimWorldLinux.x86_64 -logfile /tmp/rimworld_log'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000003ecff2db0e in ?? () from /lib/libc.so.6
[Current thread is 1 (LWP 322)]
warning: File "/usr/lib/libstdc++.so.6.0.22-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
#0  0x0000003ecff2db0e in  () at /lib/libc.so.6
#1  0x00007fe52c403cf8 in  () at /lib/dri/radeonsi_dri.so
#2  0x00007fe52c403e73 in  () at /lib/dri/radeonsi_dri.so
#3  0x00007fe52c4064d0 in  () at /lib/dri/radeonsi_dri.so
#4  0x00007fe52bf972c5 in  () at /lib/dri/radeonsi_dri.so
#5  0x00007fe52bf96f37 in  () at /lib/dri/radeonsi_dri.so
#6  0x0000003ed0607444 in  () at /lib/libpthread.so.0
#7  0x0000003ecfee827f in clone () at /lib/libc.so.6

@nanonyme
Copy link
Collaborator

@valentindavid?

@EspadaV8
Copy link
Contributor

Do I need anything extra installed on the host system?

@nanonyme
Copy link
Collaborator

Did you run the flatpak with - - devel? I don't think you should need anything on host

@EspadaV8
Copy link
Contributor

I ran flatpak run com.valvesoftware.Steam, attempted to load RimWorld (it crashed), quit Steam and then ran flatpak run --devel --command=bash com.valvesoftware.Steam followed by the gdb command gdb ./RimWorldLinux.x86_64 core-steam.317 --batch --eval-command=backtrace. I did try running flatpak run --devel com.valvesoftware.Steam instead but the output from gdb was the same

@nanonyme
Copy link
Collaborator

Thanks. I don't have further pieces of advice, your stack just looks like gdb can't resolve symbols

@valentindavid
Copy link
Contributor

It looks odd. Can you please give us the output of flatpak list -d?

@valentindavid
Copy link
Contributor

There is no such file as /lib/dri/radeonsi_dri.so in the runtime.

@valentindavid
Copy link
Contributor

Please run flatpak update. It looks to me that you are on the old runtime.

@nanonyme
Copy link
Collaborator

Wonder if deprecated extensions are getting properly removed

@valentindavid
Copy link
Contributor

I do not think this is the case here. The path points in the old .Platform. Extension would have different path.

@nanonyme
Copy link
Collaborator

@vibolvireak does this still repro for you?

@ghost
Copy link
Author

ghost commented Aug 26, 2018

@valentindavid @nanonyme @fooishbar I don't know what going on but now it's working really fine

Today after away from computer for above 2 day and i start formating and install a fresh fedora linux again to my hard disk now i can start playing dota 2 really fine without changing any configuration thank everyone. :D

@nanonyme
Copy link
Collaborator

  1. Shader flush path was wrong
  2. LC_NUMERIC=C workaround was applied
    One of the two may have fixed this
    You can try overriding numeric to your original locale value and see if ir starts crashing again

@nanonyme
Copy link
Collaborator

If it's second, we might finally have a clue of what's going on

@ghost
Copy link
Author

ghost commented Aug 26, 2018

@nanonyme Thank you feel free to close this issue

@nanonyme
Copy link
Collaborator

Did you verify it reproduced without the numeric setting?

@ghost
Copy link
Author

ghost commented Aug 26, 2018

Yes everything work out of the box click and play

@nanonyme
Copy link
Collaborator

That's not what I asked. In terminal (outside Flatpak), type locale. Read numeric
flatpak run - - env=LC_NUMERIC=value you got com.valvesoftware.Steam. Does the crash come back?

@ghost
Copy link
Author

ghost commented Aug 26, 2018

@nanonyme I hope i doing correctly but

$ flatpak run --env=LC_NUMERIC=en_US com.valvesoftware.Steam

Steam and dota 2 still working really fine. No problem

@nanonyme
Copy link
Collaborator

Okay. Then it might be related to the cache flushing change instead. If you can no longer repro, may wish to comment on upstream ticket that properly flushing shader cache helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fatal-error Prevents running the steam Flatpak under default configurations across a large number of setups
Projects
None yet
Development

No branches or pull requests

5 participants