http://bugs.winehq.org/show_bug.cgi?id=31954
Bug #: 31954 Summary: Second Sight hangs with a black screen after the intro videos Product: Wine Version: 1.5.15 Platform: x86 URL: http://www.gamershell.com/download_8848.shtml OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com Classification: Unclassified
Created attachment 42105 --> http://bugs.winehq.org/attachment.cgi?id=42105 plain terminal output
According to the test results on AppDB, this game probably never worked in Wine, yet, no one has reported the problem here. The problem can be reproduced with the demo version as well, so I decided to file a bug report.
The game starts with a couple of intro videos, then comes a black screen with a greyish loading bar at the bottom and the game freezes there. Wineserver and secondsight.exe together are consuming 100% CPU power, so something is happening 'under the hood', but the game never finishes loading.
Steps to reproduce the problem with the demo version: 1. create a new wineprefix 2. winetricks ie6 3. start the installed demo with secondsight.exe. In the launcher click <Start Free Trial>, wait for the videos to end...the game is hanging with a black screen after the videos.
Fedora 17 Nvidia 250 / driver 304.51
http://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #1 from GyB gyebro69@gmail.com 2012-10-13 08:49:55 CDT --- Created attachment 42106 --> http://bugs.winehq.org/attachment.cgi?id=42106 winedbg bt all
A backtrace generated by winedbg. For the sake of curiosity, threads 0024, 0023, and 0022 in secondsight.exe contain text of a window title: 'File Monitor - Sysinternals: www.sysinternals.com' Could that be related?
http://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #2 from Béla Gyebrószki gyebro69@gmail.com --- Still present in wine-1.7.17-148-g2e5cb7a
https://bugs.winehq.org/show_bug.cgi?id=31954
Chebanenko Igor chebanenkoigor93@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chebanenkoigor93@gmail.com
--- Comment #3 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 52356 --> https://bugs.winehq.org/attachment.cgi?id=52356 Second Sight in Wine 1.7.50
https://bugs.winehq.org/show_bug.cgi?id=31954
mrdeathjr28@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrdeathjr28@yahoo.es
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #4 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 53550 --> https://bugs.winehq.org/attachment.cgi?id=53550 Second Sight in Wine 1.9.2
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #5 from Chebanenko Igor chebanenkoigor93@gmail.com --- I found this article: http://www.codeproject.com/Articles/19685/Get-Process-Info-with-NtQueryInfor...
Can this be useful?
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #6 from Chebanenko Igor chebanenkoigor93@gmail.com --- NtReadFile https://msdn.microsoft.com/en-us/library/windows/hardware/ff556706%28v=vs.85...
NtWriteFile https://msdn.microsoft.com/en-us/library/windows/hardware/ff557714%28v=vs.85...
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #7 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 54067 --> https://bugs.winehq.org/attachment.cgi?id=54067 Second Sight in Wine 1.9.6 (+relay,+seh,+tid)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #8 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 55303 --> https://bugs.winehq.org/attachment.cgi?id=55303 Second Sight in Wine 1.9.16 (+server)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #9 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 55798 --> https://bugs.winehq.org/attachment.cgi?id=55798 Second Sight in Wine 1.9.19 (+winedevice,+mountmgr,+service,+explorer)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #10 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 56134 --> https://bugs.winehq.org/attachment.cgi?id=56134 Second Sight in Wine 1.9.23
https://bugs.winehq.org/show_bug.cgi?id=31954
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #11 from fjfrackiewicz@gmail.com --- (In reply to Chebanenko Igor from comment #10)
Created attachment 56134 [details] Second Sight in Wine 1.9.23
I see this
wine: Unhandled page fault on read access to 0x00000000 at address 0x40e3c7 (thread 0025), starting debugger...
and would you happen to have the backtrace for this crash as well?
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #12 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 56224 --> https://bugs.winehq.org/attachment.cgi?id=56224 Second Sight in Wine 1.9.23 (bt all)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #13 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 56510 --> https://bugs.winehq.org/attachment.cgi?id=56510 Second Sight in Wine 2.0-rc2
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #14 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 57345 --> https://bugs.winehq.org/attachment.cgi?id=57345 Second Sight in Wine 2.2
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #15 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 58425 --> https://bugs.winehq.org/attachment.cgi?id=58425 Second Sight in Wine 2.10
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #16 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 59502 --> https://bugs.winehq.org/attachment.cgi?id=59502 Second Sight (Wine 2.19)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #17 from Chebanenko Igor chebanenkoigor93@gmail.com ---
From Wine 2.19 file:
warn:d3d9:d3d9_swapchain_QueryInterface {580ca87e-1d3c-4d54-991d-b7d3e3c298ce} not implemented, returning E_NOINTERFACE.
What is this?
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #18 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 59615 --> https://bugs.winehq.org/attachment.cgi?id=59615 Second Sight (Wine 2.20)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #19 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 59929 --> https://bugs.winehq.org/attachment.cgi?id=59929 Second Sight (Wine 3.0-RC1)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #20 from Chebanenko Igor chebanenkoigor93@gmail.com ---
From debug file:
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x0040e3c7).
Register dump: CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b EIP:0040e3c7 ESP:0033f8d4 EBP:00000000 EFLAGS:00210206( R- -- I - -P- ) EAX:00000000 EBX:008d7610 ECX:0033f8dc EDX:048010b0 ESI:00000000 EDI:007b5cc0 Stack dump: 0x0033f8d4: 00000001 00000000 90de9e7b 00412120 0x0033f8e4: 00000000 00134238 00000000 00000001 0x0033f8f4: 00000016 00000080 00000280 000001e0 0x0033f904: 00000015 00000002 00000000 00000000 0x0033f914: 00000001 00020056 00000000 00000001 0x0033f924: 00000047 00000002 0000003c 00000000 Backtrace: =>0 0x0040e3c7 in secondsight (+0xe3c7) (0x00000000) 0x0040e3c7: movl 0x0(%esi),%eax
What I found using Google:
1) ESI - Source (32 Bit) Index registers, relative to DS,ES respectively
Data Segment (DS). Pointer to the data. Extra Segment (ES). Pointer to extra data ('E' stands for 'Extra').
2) EAX - Accumulator (32 Bit) EAX,EBX,ECX,EDX - "general purpose", more or less interchangeable.
3) Code Segment (CS). Pointer to the code. F Segment (FS). Pointer to more extra data ('F' comes after 'E'). G Segment (GS). Pointer to still more extra data ('G' comes after 'F').
4) EBP - Stack Base Pointer (32 Bit) ESP - Stack Pointer (32 Bit) EBX - Base (32 Bit) ECX - Counter (32 Bit) EDX - Data (32 Bit) EDI - Destination (32 Bit) EIP - Program counter (instruction pointer), relative to CS. Code Segment (CS). Pointer to the code.
We have 32 bit code where we can see unhandled exception and it is the same as EIP. So,something is wrong with counter and code segment. When you launch Second Sight,it takes A LOT of PC resources to make memory allocation. Bela mentioned it:"The game starts with a couple of intro videos, then comes a black screen with a greyish loading bar at the bottom and the game freezes there. Wineserver and secondsight.exe together are consuming 100% CPU power, so something is happening 'under the hood', but the game never finishes loading."It could be related with FS and GS registers,because your game,when you launch it,freeze your PC,it takes ALL your memory resources,but I'm not sure about it.
Any ideas?
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #21 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 60039 --> https://bugs.winehq.org/attachment.cgi?id=60039 Second Sight in Wine 3.0-RC3
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #22 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 60053 --> https://bugs.winehq.org/attachment.cgi?id=60053 Second Sight in Wine 3.0-RC 3 (+virtual,+tid,+seh,+relay)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #23 from Chebanenko Igor chebanenkoigor93@gmail.com ---
From Second Sight debug info:
fixme:d3d:wined3d_check_device_format_conversion wined3d 0x1351e0, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_REF, src_format WINED3DFMT_B5G5R5A1_UNORM, dst_format WINED3DFMT_B5G6R5_UNORM stub!
Any chance this will be implemented?
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #24 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 60516 --> https://bugs.winehq.org/attachment.cgi?id=60516 Second Sight in Wine 3.2
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #25 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 60541 --> https://bugs.winehq.org/attachment.cgi?id=60541 Second Sight in Wine 3.2 (another log)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #26 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Chebanenko Igor from comment #25)
Created attachment 60541 [details] Second Sight in Wine 3.2 (another log)
You have a bunch of messages like:
002d:warn:ntdll:FILE_CreateFile L"\??\Z:\home\igor\win32\fx\litbead_tm.fx" not found (c000003a)
which suggest you are running the game from your home directory. Please cd into the game directory and retry.
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #27 from Chebanenko Igor chebanenkoigor93@gmail.com --- (In reply to Matteo Bruni from comment #26)
(In reply to Chebanenko Igor from comment #25)
Created attachment 60541 [details] Second Sight in Wine 3.2 (another log)
You have a bunch of messages like:
002d:warn:ntdll:FILE_CreateFile L"\??\Z:\home\igor\win32\fx\litbead_tm.fx" not found (c000003a)
which suggest you are running the game from your home directory. Please cd into the game directory and retry.
same results
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #28 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 62442 --> https://bugs.winehq.org/attachment.cgi?id=62442 Second Sight (Wine 3.16)
https://bugs.winehq.org/show_bug.cgi?id=31954
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #29 from joaopa jeremielapuree@yahoo.fr --- Link for the demo is burst. Here is a new working one: https://www.gamepressure.com/download.asp?ID=7545
Can an administrator put it in the url field?
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #30 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 62501 --> https://bugs.winehq.org/attachment.cgi?id=62501 Second Sight (Wine 3.17)
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #31 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 63327 --> https://bugs.winehq.org/attachment.cgi?id=63327 Second Sight in Windows
Second Sight in Windows. Please,check files,looks like they will be useful.
https://bugs.winehq.org/show_bug.cgi?id=31954
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gofmanp@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #32 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 63416 --> https://bugs.winehq.org/attachment.cgi?id=63416 Second Sight in Windows (#2)
Second Sight in Windows (#2)
Please,check file,I tried with kernel functions monitoring on real Win7 hardware.
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #33 from Chebanenko Igor chebanenkoigor93@gmail.com --- Created attachment 63569 --> https://bugs.winehq.org/attachment.cgi?id=63569 Second Sight In Windows 7
Second Sight in Windows 7. It will be my last debug from real Win7 hardware. I hope It will be useful.
https://bugs.winehq.org/show_bug.cgi?id=31954
Sergey Isakov isakov-sl@bk.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |isakov-sl@bk.ru
--- Comment #34 from Sergey Isakov isakov-sl@bk.ru --- I think this is the reason ~~~ 002c:fixme:d3d:wined3d_device_set_software_vertex_processing device 0x148e20, software 0 stub! ~~~
AFAIK software vertex processing is not implemented. See bug 8051
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #35 from Paul Gofman gofmanp@gmail.com --- Created attachment 63572 --> https://bugs.winehq.org/attachment.cgi?id=63572 Proof of concept hack which lets demo run
The demo gets stuck on reading one of its files. It calls ReadFile() repeatedly requesting all the same read infinitely.
The game uses overlapped IO for reading its data files. Those files are opened with FILE_FLAG_OVERLAPPED, and OVERLAPPED structure is provided for FileRead (with NULL event object). Windows seem to return ERROR_IO_PENDING consistently for it's reads. The demo calls GetOverlappedResult() after each read (even though Wine returns TRUE and no error from ReadFile), and proceeds further. At some point the game seemingly gets sick of it and starts calling ReadFile() repeatedly with all the same parameters endlessly. Giving it FALSE / ERROR_PENDING makes it happy.
I am attaching the hack which effectively sets ERROR_PENDING return unconditionally for overlapped reads. With this patch applied the demo starts and seemingly works.
https://bugs.winehq.org/show_bug.cgi?id=31954
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com
--- Comment #36 from Józef Kucia joseph.kucia@gmail.com --- There was a similar issue with NtReadFileScatter(). See bug 43935 and https://source.winehq.org/git/wine.git/?a=commit;h=52627611359fa74409c67dd48...
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #37 from Gijs Vermeulen gijsvrm@gmail.com --- Seems like bug 42982 is related as well (has some patches attached to it too).
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #38 from Paul Gofman gofmanp@gmail.com --- I've got some more details now after more testing, it looks like sync or async result for read and write differs between Windows versions and preconditions (likely by the data availability in cache). But when the file is created with FILE_FLAG_NO_BUFFERING (which I checked is actually the case for Second Sight demo), it looks like async return is consistent. I refined my patch this way and going to suggest it upstream with the test.
The patch "Alternative 1" from Bug 42982 looks incorrect to me in a sense that non-zero overlapped parameter in kernel32.ReadFile() does not imply async read. Really "overlapped" read is requested by FILE_FLAG_OVERLAPPED given to CreateFile(), otherwise this parameter can be just used to specify position for sync read. Regarding doing the read really asynchronous, I suppose it is completely distinct change which most likely would benefit from some heuristics when it is worth doing.
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #39 from Chebanenko Igor chebanenkoigor93@gmail.com --- (In reply to Paul Gofman from comment #38)
I've got some more details now after more testing, it looks like sync or async result for read and write differs between Windows versions and preconditions (likely by the data availability in cache). But when the file is created with FILE_FLAG_NO_BUFFERING (which I checked is actually the case for Second Sight demo), it looks like async return is consistent. I refined my patch this way and going to suggest it upstream with the test.
The patch "Alternative 1" from Bug 42982 looks incorrect to me in a sense that non-zero overlapped parameter in kernel32.ReadFile() does not imply async read. Really "overlapped" read is requested by FILE_FLAG_OVERLAPPED given to CreateFile(), otherwise this parameter can be just used to specify position for sync read. Regarding doing the read really asynchronous, I suppose it is completely distinct change which most likely would benefit from some heuristics when it is worth doing.
Looks like it will help:
https://support.microsoft.com/ru-ru/help/156932/asynchronous-disk-i-o-appear...
https://bugs.winehq.org/show_bug.cgi?id=31954
--- Comment #40 from Paul Gofman gofmanp@gmail.com --- Should be fixed by 7ce2a8e0ae3d107f7dbeeeebb4b1189d34d27827
https://bugs.winehq.org/show_bug.cgi?id=31954
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |7ce2a8e0ae3d107f7dbeeeebb4b | |1189d34d27827 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #41 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Paul Gofman from comment #40)
Should be fixed by 7ce2a8e0ae3d107f7dbeeeebb4b1189d34d27827
Demo works fine for me now, thanks. Marking FIXED.
https://bugs.winehq.org/show_bug.cgi?id=31954
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll
https://bugs.winehq.org/show_bug.cgi?id=31954
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #42 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.3.
https://bugs.winehq.org/show_bug.cgi?id=31954
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=31954
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #43 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.1.