https://bugs.winehq.org/show_bug.cgi?id=39418
Bug ID: 39418 Summary: Infinity Engine games (Baldur's Gate 1-2, Icewind Dale 1-2, Planescape:Torment) hang frequently when realtime priority enabled Product: Wine-staging Version: 1.7.52 Hardware: x86 URL: http://www.fileplanet.com/164134/160000/fileinfo/Baldu r's-Gate-II-Demo-%5BFull-Install%5D OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de Distribution: ---
When changing the priority of running applications is enabled in staging, those games built on Bioware's Infinity Engine lock up at various stages (but always in the first 1-2 minutes after the game was started). There's nothing written in the terminal, the game executable consumes 100% CPU after freezing. The games are running stable if I unset the STAGING_RT_PRIORITY_BASE variable (or set it to 0).
In etc/security/limits.conf I have gyebro - rtprio 90 gyebro - nice -10
I changed the value of 'STAGING_PRIORITY_BASE=' in ~/.bashrc between 1 and 85, but this didn't change the bahaviour.
The problem seemingly occurs randomly thus I can't give you the exact steps to reproduce the problem. Sometimes the games hang while I'm navigating in the menus, during character generation or when loading a saved game. Occasionally I can get in the game but it always freezes in 1-2 minutes. It seems to me that the I need to interact with the game to trigger the bug: the game runs stable if I let it idle either in the menus or in mid-game. The hang occurs when I click on a button in the menus or when issuing a move command.
I have those games from GOG.com, but the problem is reproducible with the original Baldur's Gate 2 demo too (released in 1998). Install BG2 demo, start the game with BGMain.exe. Sometimes it freezes when I click on the options button in the main menu. If not, start a new game, follow the steps to generate a character and get in the game.Select your character and move him/her across the screen, interact with the buttons in the UI etc...there's no rule when the bug happens.
wine-1.7.52-190-gd548639 (Staging) Fedora 22 32-bit
bg2_fullinstall.zip (618M) sha1: 0dbdd3164c452235c25ed65c6050584a7ee93122
https://bugs.winehq.org/show_bug.cgi?id=39418
--- Comment #1 from Béla Gyebrószki gyebro69@gmail.com --- Still occurs in wine-2.17 Staging when STAGING_RT_PRIORITY_BASE is set. Tested with the GOG.com version of the original Baldur's Gate I-II, Icewind Dale and Planescape: Torment games.
Arch Linux (64-bit) Wine Staging 2.17 (32-bit) Linux kernel 4.13.3 Nvidia 384.69
https://bugs.winehq.org/show_bug.cgi?id=39418
--- Comment #2 from Béla Gyebrószki gyebro69@gmail.com --- This could have been my fault as I was using these values in the staging environment variables: STAGING_RT_PRIORITY_SERVER=90 STAGING_RT_PRIORITY_BASE=85
The games mentioned in the title are freezing with those settings, but these values work and the games are running stable with them: STAGING_RT_PRIORITY_SERVER=90 STAGING_RT_PRIORITY_BASE=90
I also noticed that under a recent kernel on Arch (4.18.9-arch1-1-ARCH) it's not just the games that become unresponsive, but I get a complete system freeze so that only a hard reset helps. Under the 4.14.71-1-lts kernel only the games become unresponsive.
Can anyone explain what could be wrong with these settings ? STAGING_RT_PRIORITY_SERVER=90 STAGING_RT_PRIORITY_BASE=85
I should also mention that no other games that I tried in the past had problems with the first settings.