http://bugs.winehq.org/show_bug.cgi?id=18975
--- Comment #10 from GyB gyebro69@gmail.com 2010-12-31 10:05:33 CST --- Created an attachment (id=32683) --> (http://bugs.winehq.org/attachment.cgi?id=32683) terminal output Wine-1.3.10
Hello,
Since there are several other opened bugreports about a crash in RealMyst I didn't want to open a new one (e.g bug #18976 and bug #21119). The crash is still present with Wine-1.3.10 and I'm sure it is due to the fact that Wine/Linux runs out of the available opened files (you can see the error message in the attached log).
Here's what I found: Right after starting RealMYST.exe (pid 28593) the output of lsof | grep 28593 | grep REG | wc -l was: 908 What's more interesting is that one of the game's video files (MystIsland_Indeo.avi, using Indeo v5 codec) is opened several hundreds of times: 'lsof | grep 28593 | grep -i MystIsland_Indeo.avi | wc -l' counted 846!
The game crashes very soon using the default 1024 fd value. Raising the value of ulimit -n (e.g. 30k) helps, but the game is very 'laggy' all the time. After some more gameplay newer and newer video files are coming into play and they're all replicated/opened several times. It seems that the ending game, the Rime Age (bug #18976) is much more demanding: after loading that part of the game, the same video files are kept opened several hundreds of times. After 2-3 minutes of gameplay the counter of opened files are well above 20k.
Note: the issue is not reproducible in the demo (it has only one video file).
Best regards and Happy New Year, Béla Gyebrószki