[Wine-Steam] Lutris kills steam process while downloading

When using the Wine-Steam runner, Lutris kills the process if the game doesn’t launch.

    DEBUG    2017-10-14 14:32:54,805 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:32:54,878 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:32:54,880 [thread]:Cycles without children: 1
DEBUG    2017-10-14 14:32:56,806 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:32:56,862 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:32:56,863 [thread]:Cycles without children: 2
DEBUG    2017-10-14 14:32:58,806 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:32:58,879 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:32:58,881 [thread]:Cycles without children: 3
DEBUG    2017-10-14 14:33:00,807 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:00,881 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:00,882 [thread]:Cycles without children: 4
DEBUG    2017-10-14 14:33:02,808 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:02,865 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:02,866 [thread]:Cycles without children: 5
DEBUG    2017-10-14 14:33:04,809 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:04,860 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:04,861 [thread]:Cycles without children: 6
DEBUG    2017-10-14 14:33:06,810 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:06,885 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:06,887 [thread]:Cycles without children: 7
DEBUG    2017-10-14 14:33:08,810 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:08,883 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:08,883 [thread]:Cycles without children: 8
DEBUG    2017-10-14 14:33:10,810 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:10,886 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:10,887 [thread]:Cycles without children: 9
DEBUG    2017-10-14 14:33:12,811 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:12,865 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:12,866 [thread]:Cycles without children: 10
DEBUG    2017-10-14 14:33:14,812 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:14,887 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:14,888 [thread]:Cycles without children: 11
DEBUG    2017-10-14 14:33:16,812 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:16,865 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:16,866 [thread]:Cycles without children: 12
DEBUG    2017-10-14 14:33:18,812 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:18,887 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:18,888 [thread]:Cycles without children: 13
DEBUG    2017-10-14 14:33:20,814 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:20,881 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:20,882 [thread]:Cycles without children: 14
DEBUG    2017-10-14 14:33:22,814 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:22,889 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:22,890 [thread]:Cycles without children: 15
DEBUG    2017-10-14 14:33:24,815 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:24,869 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:R)
DEBUG    2017-10-14 14:33:24,871 [thread]:Cycles without children: 16
DEBUG    2017-10-14 14:33:26,816 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:26,890 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:26,891 [thread]:Cycles without children: 17
DEBUG    2017-10-14 14:33:28,817 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:28,893 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:28,894 [thread]:Cycles without children: 18
DEBUG    2017-10-14 14:33:30,818 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:30,892 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:30,894 [thread]:Cycles without children: 19
DEBUG    2017-10-14 14:33:32,818 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:32,886 [thread]:Processes: excluded: Steam.exe (99941:Z), steamwebhelper. (99984:S), Steam.exe (99981:S)
DEBUG    2017-10-14 14:33:32,887 [thread]:Cycles without children: 20
DEBUG    2017-10-14 14:33:32,887 [thread]:Maximum number of cycles without children reached
DEBUG    2017-10-14 14:33:32,887 [winesteam]:Game configured to stop Steam on exit
DEBUG    2017-10-14 14:33:32,888 [winesteam]:Stopping all winesteam processes
DEBUG    2017-10-14 14:33:32,888 [wine]:Killing all wine processes: ['/usr/bin/wineserver', '-k']
DEBUG    2017-10-14 14:33:32,943 [thread]:Some processes are still active (3)
DEBUG    2017-10-14 14:33:34,819 [game]:Game thread stopped
DEBUG    2017-10-14 14:33:34,820 [winesteam]:Game configured to stop Steam on exit
DEBUG    2017-10-14 14:33:34,820 [game]:The Elder Scrolls V: Skyrim stopped at Sat, 14 Oct 2017 14:33:34
DEBUG    2017-10-14 14:33:34,820 [winesteam]:Stopping all winesteam processes
DEBUG    2017-10-14 14:33:34,821 [wine]:Killing all wine processes: ['/usr/bin/wineserver', '-k']
DEBUG    2017-10-14 14:33:34,825 [system]:Executing /bin/fuser /usr/bin/wine
DEBUG    2017-10-14 14:33:34,889 [thread]:Killing process Steam.exe (99941:Z)

To get this, I tried to install a Wine-Steam game (skyrim in this case, but the same happens with any game). It works fine, steam.exe starts and the game starts downloading. However, this appears to start a timeout. Lutris seems to wait for the game to launch and as you can see from the log, It counts “cycles without children” I’m assuming it’s waiting for skyrim.exe (in this case) to launch. But because it’s still downloading, it reaches this limit and then the steam process is killed. Stopping the download.

If I restart steam, it continues where it left off and once again times out. This is very annoying as it’s not a problem with steam or wine, but lutris killing the process after some time has passed.

2 Likes

Yep, same problem with me (and probably everyone else). The workaround for now is to check Disable process monitor in the Preferences.

1 Like

Where is that? I can’t find it.

Never mind. I was looking in the game configuration. I thought it might be a global thing so I looked in the Lutris menu and found it. Skyrim works now except for sometimes getting stuck in auto run and sometimes the movement becomes very slow like stuck in sneak mode but that dosn’t seem to be it. Probably a wine/ direct x thing.

that’s a known bug with how skyrim (ab)uses the directInput system, essenially it sometimes ignores you stopping to press a button, and the only fix (except maybe for some SKSE scripting that might be able fix this but don’t know of any) seems to be to just save&restart the game.

Known bug, it’s not even a bug, this is how I originally coded the stuff, everything was intentional. I’ll try to push a fix for the next update or the one after to fix this. We’re actually very close to getting this permanently fixed.

After reading about the bug at wine HQ, I have found a work around. First I discovered the Distro installer had set the wrong keyboard also I set the repeat rate to 2. According to the bug report some times the keys get stuck and setting the repeat rate lower solves the problem. It worked for me. Now I just have a problem with some light flickering. I suspect one or more of my mods might be the cause. I hope they get the stuck key figured out soon. Probably some xinput thing or something like that.

I forgot to add the bug link:
https://bugs.winehq.org/show_bug.cgi?id=30981