http://bugs.winehq.org/show_bug.cgi?id=34973
Bug #: 34973 Summary: Uru - Ages Beyond Myst Demo Can't finish game in wine-1.3.21 without disabling sound. Product: Wine Version: 1.3.21 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: erichv@verizon.net Classification: Unclassified
Created attachment 46602 --> http://bugs.winehq.org/attachment.cgi?id=46602 My fix for the problem arrived at after much experimentation and code study.
Uru - Ages Beyond Myst Demo works good enough to play completely in wine-1.3.20 but loses some of it's functionality and can't be completed in both wine-1.3.21 and wine-1.7.5. Disabling sound at the beginning of the game allows the game to be played completely in both wine-1.3.21 and wine-1.7.5.
This is the regression test result:
19c4c37a1d16ce8790bbbfcda3c19eb753dba199 is the first bad commit commit 19c4c37a1d16ce8790bbbfcda3c19eb753dba199 Author: Piotr Caban piotr@codeweavers.com Date: Thu May 19 15:31:22 2011 +0200
msvcrt: Allocate FILE tables dynamically.
:040000 040000 8bae25f560b02bfbc2fbc7484ae98e947a91e608 c6e410abafefa5a00464f3ff645091dd27e74931 M dlls
http://bugs.winehq.org/show_bug.cgi?id=34973
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression CC| |piotr.caban@gmail.com Summary|Uru - Ages Beyond Myst Demo |Uru - Ages Beyond Myst Demo |Can't finish game in |can't finish game without |wine-1.3.21 without |disabling sound |disabling sound. | Regression SHA1| |19c4c37a1d16ce8790bbbfcda3c | |19eb753dba199
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com 2013-11-22 05:05:40 CST --- Please, can you add the demo download link?
http://bugs.winehq.org/show_bug.cgi?id=34973
--- Comment #2 from Piotr Caban piotr.caban@gmail.com 2013-11-22 05:51:37 CST --- On windows _getmaxstdio returns 2048 in msvcrt.dll and 512 in msvcr90.dll. The MSVCRT_max_streams value should be changed. Changing MSVCRT_fstream size doesn't make sense.
I would like to take a look on the demo before changing MSVCRT_max_streams. Most probably the game is leaking file handles due to some other bug.
http://bugs.winehq.org/show_bug.cgi?id=34973
--- Comment #3 from Piotr Caban piotr.caban@gmail.com 2013-11-22 06:01:54 CST --- I've wrote the test incorrectly (called _getmaxstdio after setting it earlier with _setmaxstdio). The values in wine are correct, so the problem is somewhere else.
http://bugs.winehq.org/show_bug.cgi?id=34973
--- Comment #4 from Elwin erichv@verizon.net 2013-11-22 09:27:28 CST --- Created attachment 46605 --> http://bugs.winehq.org/attachment.cgi?id=46605 UruDemo terminal output with debug channel msvct and sound activated.
http://bugs.winehq.org/show_bug.cgi?id=34973
--- Comment #5 from Elwin erichv@verizon.net 2013-11-22 09:31:33 CST --- Created attachment 46606 --> http://bugs.winehq.org/attachment.cgi?id=46606 UruDemo terminal output with debug channel msvct and sound disabled.
I have attached terminal out from the program with and without sound activated.
http://bugs.winehq.org/show_bug.cgi?id=34973
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com 2013-11-22 09:39:23 CST --- Is this the demo? http://www.fileplanet.com/133011/130000/fileinfo/Uru:-Ages-Beyond-MYST-Demo
http://bugs.winehq.org/show_bug.cgi?id=34973
--- Comment #7 from Elwin erichv@verizon.net 2013-11-22 09:51:31 CST --- I believe this is the link I downloaded the program from: https://archive.org/details/UruAgesBeyondMystDemo
If not, I downloaded it from the UBI website in my M$ days.
I agree with Piotr Caban it is possible that either the program or wine is not handling the file handles properly.
I do need one clarification, is statement "static file_crit* MSVCRT_fstream[MSVCRT_MAX_FILES/MSVCRT_FD_BLOCK_SIZE];" defining a size or the maximum number of possible records of type file_crit.
Sorry, I coming from a Pascal programming background.
http://bugs.winehq.org/show_bug.cgi?id=34973
--- Comment #8 from Elwin erichv@verizon.net 2013-11-22 16:09:23 CST --- Piotr Caban you are correct just increasing "MSVCRT_max_streams = 512" to "MSVCRT_max_streams = 1022" without changing "MSVCRT_fstream" does fix the problem.
There problems with sound but that may be because the program does not detect direct sound capability or because the program uses EAFX.
https://bugs.winehq.org/show_bug.cgi?id=34973
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|msvcrt |-unknown Ever confirmed|0 |1
--- Comment #9 from Piotr Caban piotr.caban@gmail.com --- It works correctly on Windows 7.
The application creates sound files during first run. The files created on wine are broken (or incompatible). The application leaks files descriptors in error handling code. If SFX directory is copied from windows the game works as expected.
I was not checking yet what's wrong with created wav files, it's possible to play them with mplayer.
https://bugs.winehq.org/show_bug.cgi?id=34973
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #10 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Piotr Caban from comment #9)
It works correctly on Windows 7.
The application creates sound files during first run. The files created on wine are broken (or incompatible). The application leaks files descriptors in error handling code. If SFX directory is copied from windows the game works as expected.
I was not checking yet what's wrong with created wav files, it's possible to play them with mplayer.
That's possibly bug #17403
https://bugs.winehq.org/show_bug.cgi?id=34973
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE
--- Comment #11 from Piotr Caban piotr.caban@gmail.com --- It's indeed a duplicate of bug 17403.
*** This bug has been marked as a duplicate of bug 17403 ***
https://bugs.winehq.org/show_bug.cgi?id=34973
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |nerv@dawncrow.de
--- Comment #12 from André H. nerv@dawncrow.de --- closing dup