http://bugs.winehq.org/show_bug.cgi?id=6297
Brad Martin wine@fatlxception.no-ip.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@fatlxception.no-ip.org
--- Comment #39 from Brad Martin wine@fatlxception.no-ip.org 2008-07-22 21:57:49 --- This has been happening to me for the past few months practically every time I start the game unless I invoke the workaround I found.
Basically, before I start tf2, I start the following script running in a separate terminal window: "while ! killall -STOP hl2.exe; do sleep .1; done; sleep 5; killall -CONT hl2.exe" Works every time that way. The problem seems to be that steam launches the game first, and *then* releases the resources that the game expects to be able to use. Some kind of difference in processor or disk scheduling means that the game starts quicker than steam is expecting, leading to the resource conflict. Anything you can do to delay the game from actually running after steam launches it makes it more likely that the whole process will succeed. I suspect that is why some of you are having luck with 'sync' commands. Deleting some cache files and forcing the game to regenerate them before starting probably has a similar effect.
Not sure of a good way to fix this in wine though. Obviously you could hardcode some kind of a sleep any time a process named "hl2.exe" is launched, but that's not very satisfying. When the bug is ultimately in steam though, not sure what more can be done.