Lutris takes increasingly more time to start Batletech

When i added HBS Batletech to lutris in started almost instantly, but every time i ran it lutris was taking more and more time to “prepare to launch Batletech”. I tried recreating lutris entry (pointing to the same wineprefix) it didnt help. While lutris is “preparing” the lutris process eats 100% of one core with no IO, wine is not yet started at this point (no wine processes). The last time it taken 6 minutes to start. The one before the last ~3 minutes. Its kinda doubles every run… The is nothing useful in debug output.

DEBUG    2018-12-16 03:17:54,271 [wineprefix]:Virtual desktop: True
DEBUG    2018-12-16 03:23:50,252 [game]:Launching Batletech (2): {'env': {'WINEARCH': 'win64', 'WINEPREFIX': '/home/nikita/Games/Battletech', 'DRI_PRIME': '0', 'WINEDEBUG': '-all', 'WINEESYNC': '0', 'WINE': '/home/nikita/.local/share/lutris/runners/wine/tkg-3.19-x86_64/bin/wine', 'LD_LIBRARY_PATH': '/home/nikita/.local/share/lutris/runners/wine/tkg-3.19-x86_64/lib:/home/nikita/.local/share/lutris/runners/wine/tkg-3.19-x86_64/lib64:/usr/lib:/usr/lib32:/usr/lib64:/lib/x86_64-linux-gnu:/lib/i386-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu:/home/nikita/.local/share/lutris/runtime/lib32:/home/nikita/.local/share/lutris/runtime/steam/i386/lib/i386-linux-gnu:/home/nikita/.local/share/lutris/runtime/steam/i386/lib:/home/nikita/.local/share/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/home/nikita/.local/share/lutris/runtime/steam/i386/usr/lib:/home/nikita/.local/share/lutris/runtime/lib64:/home/nikita/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/home/nikita/.local/share/lutris/runtime/steam/amd64/lib:/home/nikita/.local/share/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/home/nikita/.local/share/lutris/runtime/steam/amd64/usr/lib:$LD_LIBRARY_PATH', 'STEAM_RUNTIME': '/home/nikita/.local/share/lutris/runtime/steam'}, 'command': ['/home/nikita/.local/share/lutris/runners/wine/tkg-3.19-x86_64/bin/wine', '/home/nikita/Games/Battletech/drive_c/GOG Games/BATTLETECH/BattleTech.exe', '-force-driver-type-warp']}

Update: 21 minutes on next run :frowning:

WARNING  2018-12-16 18:31:59,054 [joypad]:python3-evdev not installed, controller support not available
DEBUG    2018-12-16 18:38:30,341 [wineprefix]:Virtual desktop: True
DEBUG    2018-12-16 18:52:30,377 [game]:Launching Batletech:

Ok, after some straceing i figured whats going on, its a bug in lutris that is trigeredd by HBS idiocity with windows registry. Battletech writes some idiotic analytics in a string key in user.reg, by the time of investigation that key gotten ~15MB long.