Wine 1.7.15 & Second Sight

Questions about Wine on Linux
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

I installed the game in Wine 1.7.15. System-Ubuntu 13.10. Second Sight only shows the firsts two videos and freeze.

Debug:

Code: Select all

igor@LIFEBOOK-A512:~$ wine winedbg /home/igor/wine/Games/Second Sight/secondsight.exe
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a060, {485e7de8-0a80-11d8-ad15-505054503030}, 1, 0x33fdd0, (null), (null), 0x100a068): stub
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a080, {485e7de9-0a80-11d8-ad15-505054503030}, 1, 0x33fdd0, (null), (null), 0x100a088): stub
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0a0, {485e7dea-0a80-11d8-ad15-505054503030}, 1, 0x33fdd0, (null), (null), 0x100a0a8): stub
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0c0, {485e7deb-0a80-11d8-ad15-505054503030}, 1, 0x33fdd0, (null), (null), 0x100a0c8): stub
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0e0, {485e7dec-0a80-11d8-ad15-505054503030}, 1, 0x33fdd0, (null), (null), 0x100a0e8): stub
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a100, {485e7ded-0a80-11d8-ad15-505054503030}, 1, 0x33fdd0, (null), (null), 0x100a108): stub
fixme:win:RegisterDeviceNotificationW (hwnd=0x125398, filter=0x53e8ac,flags=0x00000001) returns a fake device notification handle!
WineDbg starting on pid 002d
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block Unhandled Tag type 0x15 at ctx(0x32c38c,L"kernel32<elf>"), for debug_info(abbrev:0x4347e8,symt:(nil))
fixme:dbghelp_dwarf:dwarf2_parse_subprogram_block Unhandled Tag type 0xf at ctx(0x32c38c,L"kernel32<elf>"), for debug_info(abbrev:0x4347e8,symt:(nil))
fixme:dbghelp_dwarf:dwarf2_parse_udt_type Unhandled Tag type 0x1 at ctx(0x32c38c,L"ntdll<elf>"), for debug_info(abbrev:0x8569c0,symt:0xcce884)
fixme:dbghelp_dwarf:dwarf2_parse_udt_type Unhandled Tag type 0x1 at ctx(0x32c38c,L"ntdll<elf>"), for debug_info(abbrev:0x8569c0,symt:0xcce884)
fixme:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled Tag type 0xf at ctx(0x32c38c,L"ntdll<elf>"), for debug_info(abbrev:0x85727c,symt:0xcce730)
start_process () at /build/buildd/wine1.7-1.7.15/dlls/kernel32/process.c:1097
0x7b860077 start_process+0x57 [/build/buildd/wine1.7-1.7.15/dlls/kernel32/process.c:1097] in kernel32: movl	%edi,0x4(%esp)
Unable to access file '/build/buildd/wine1.7-1.7.15/dlls/kernel32/process.c'
Wine-dbg>bt /home/igor/wine/Games/Second Sight/secondsight.exe
Backtrace:
=>0 0x7b860077 start_process+0x57(peb=<couldn't compute location>) [/build/buildd/wine1.7-1.7.15/dlls/kernel32/process.c:1097] in kernel32 (0x0033feb8)
  1 0x7bc802a0 call_thread_func_wrapper+0xb() in ntdll (0x0033fed8)
  2 0x7bc8322d call_thread_func+0x7c(entry=0x7b860020, arg=0x7ffdf000, frame=0x33ffc8) [/build/buildd/wine1.7-1.7.15/dlls/ntdll/signal_i386.c:2629] in ntdll (0x0033ffa8)
  3 0x7bc8027e RtlRaiseException+0x21() in ntdll (0x0033ffc8)
  4 0x7bc540ee start_process+0x1d(kernel_start=0x7b860020) [/build/buildd/wine1.7-1.7.15/dlls/ntdll/loader.c:2840] in ntdll (0x0033ffe8)
  5 0xb758263d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  6 0xb75826fb wine_switch_to_stack+0x2a(func=0x7bc540d0, arg=0x7b860020, stack=0x340000) [/build/buildd/wine1.7-1.7.15/libs/wine/port.c:59] in libwine.so.1 (0xbfda7658)
  7 0x7bc59bb9 LdrInitializeThunk+0x238(kernel_start=<couldn't compute location>, unknown2=<couldn't compute location>, unknown3=<couldn't compute location>, unknown4=<couldn't compute location>) [/build/buildd/wine1.7-1.7.15/dlls/ntdll/loader.c:2894] in ntdll (0xbfda7698)
  8 0x7b8668d3 __wine_kernel_init+0xa12() [/build/buildd/wine1.7-1.7.15/dlls/kernel32/process.c:1269] in kernel32 (0xbfda87b8)
  9 0x7bc5aae3 __wine_process_init+0x192() [/build/buildd/wine1.7-1.7.15/dlls/ntdll/loader.c:3103] in ntdll (0xbfda8848)
  10 0xb757fda8 wine_init+0x327(argc=0x2, argv=0xbfda8d94, error="", error_size=0x400) [/build/buildd/wine1.7-1.7.15/libs/wine/loader.c:996] in libwine.so.1 (0xbfda88a8)
  11 0x7bf0100c main+0xfb(argc=<is not available>, argv=<is not available>) [/build/buildd/wine1.7-1.7.15/loader/main.c:278] in <wine-loader> (0xbfda8cf8)
  12 0xb73aa905 __libc_start_main+0xf4() in libc.so.6 (0x00000000)
syntax error
Wine-dbg>
User avatar
core
Level 3
Level 3
Posts: 84
Joined: Tue Oct 23, 2012 6:22 am

Re: Wine 1.7.15 & Second Sight

Post by core »

Could try to launch from a game folder. But see also http://bugs.winehq.org/show_bug.cgi?id=31954
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

I see the same bug. I'm sorry but your advice can't help.
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Today I tried to launch game in Wine 1.7.16+NetFramework 4.5.1 was installed.

Debug:

Code: Select all

wine winedbg /home/igor/wine/drive_d/Games/Second Sight/secondsight.exe
fixme:wer:WerSetFlags (2) stub!
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
WineDbg starting on pid 002a
start_process () at /build/buildd/wine1.7-1.7.16/dlls/kernel32/process.c:1097
0x7b860127 start_process+0x57 [/build/buildd/wine1.7-1.7.16/dlls/kernel32/process.c:1097] in kernel32: movl	%edi,0x4(%esp)
Unable to access file '/build/buildd/wine1.7-1.7.16/dlls/kernel32/process.c'
Wine-dbg>bt
Backtrace:
=>0 0x7b860127 start_process+0x57(peb=<couldn't compute location>) [/build/buildd/wine1.7-1.7.16/dlls/kernel32/process.c:1097] in kernel32 (0x0033feb8)
  1 0x7bc802f0 call_thread_func_wrapper+0xb() in ntdll (0x0033fed8)
  2 0x7bc8327d call_thread_func+0x7c(entry=0x7b8600d0, arg=0x7ffdf000, frame=0x33ffc8) [/build/buildd/wine1.7-1.7.16/dlls/ntdll/signal_i386.c:2629] in ntdll (0x0033ffa8)
  3 0x7bc802ce RtlRaiseException+0x21() in ntdll (0x0033ffc8)
  4 0x7bc5413e start_process+0x1d(kernel_start=0x7b8600d0) [/build/buildd/wine1.7-1.7.16/dlls/ntdll/loader.c:2840] in ntdll (0x0033ffe8)
  5 0xb75e263d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  6 0xb75e26fb wine_switch_to_stack+0x2a(func=0x7bc54120, arg=0x7b8600d0, stack=0x340000) [/build/buildd/wine1.7-1.7.16/libs/wine/port.c:59] in libwine.so.1 (0xbfc2ff28)
  7 0x7bc59c09 LdrInitializeThunk+0x238(kernel_start=<couldn't compute location>, unknown2=<couldn't compute location>, unknown3=<couldn't compute location>, unknown4=<couldn't compute location>) [/build/buildd/wine1.7-1.7.16/dlls/ntdll/loader.c:2894] in ntdll (0xbfc2ff68)
  8 0x7b866983 __wine_kernel_init+0xa12() [/build/buildd/wine1.7-1.7.16/dlls/kernel32/process.c:1269] in kernel32 (0xbfc31088)
  9 0x7bc5ab33 __wine_process_init+0x192() [/build/buildd/wine1.7-1.7.16/dlls/ntdll/loader.c:3103] in ntdll (0xbfc31118)
  10 0xb75dfda8 wine_init+0x327(argc=0x2, argv=0xbfc31664, error="", error_size=0x400) [/build/buildd/wine1.7-1.7.16/libs/wine/loader.c:996] in libwine.so.1 (0xbfc31178)
  11 0x7bf0100c main+0xfb(argc=<is not available>, argv=<is not available>) [/build/buildd/wine1.7-1.7.16/loader/main.c:278] in <wine-loader> (0xbfc315c8)
  12 0xb740c905 __libc_start_main+0xf4() in libc.so.6 (0x00000000)
Wine-dbg>fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented

User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine 1.7.15 & Second Sight

Post by dimesio »

Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

QueryServiceConfig2 function

SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO
6

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Looks like function is unimplemented and it is a reason why game freeze.
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

I tried to launch game in Wine 1.7.18(with NetFramework).
Attachments
secondsight.txt.tar.gz
Debug
(1.94 KiB) Downloaded 308 times
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

I tried in Wine 1.7.22

Installations:

Microsoft NET Framework 2.0 SP1
MSXML 4.0 SP3 Parser
Internet Explorer 8
Windows Media Player 10
Attachments
secondsight.txt(Wine 1.7.22).tar.bz2
console output
(1.4 KiB) Downloaded 181 times
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Second Sight in Wine 1.7.24

Installations:

Microsoft NET Framework 2.0 SP1
MSXML 4.0 SP3 Parser
Internet Explorer 8
Windows Media Player 10
Windows Imaging Component
Attachments
Second Sight-Wine-1.7.24.tar.bz2
console output
(1.32 KiB) Downloaded 174 times
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine 1.7.15 & Second Sight

Post by dimesio »

Code: Select all

err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
Obviously you need to fix that. However, I doubt it will solve the issue with Second Sight. It has already been pointed out twice in this thread that this is a known bug. The bug is still open. If you simply want to note that problem is still present, do it in the bug report and/or file a test report in the AppDB. There is no point in doing it here.
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Game can't work even with SECUR32_initNTLMSP ntlm_auth fix.
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Game in Wine 1.7.34
Attachments
secondsight.txt.tar.bz2
(19.41 KiB) Downloaded 175 times
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Demonstrates Windows reading past the source string when using WideCharToMultiByte.
https://gist.github.com/ngbrown/2467960
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Wine 1.7.15 & Second Sight

Post by lahmbi5678 »

Please add a comment about your findings to the bug mentioned above. Or file a new bug, if it isn't exactly the same issue. The wine devs in general aren't following this list closely, but they do read bug reports, they just can't fix all of them in a sudden. The better the analysis of a bug is, the faster it will be fixed.
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Wine 1.7.34. More detailed output
Attachments
secondsight.txt.7z
(248.15 KiB) Downloaded 158 times
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

I don't know if it is important,but in folder with Second Sight,I found file "_startup.fx"

_startup.fx content:

Code: Select all


technique _startup
{
    pass
    {
	AlphaBlendEnable = FALSE;
	ScissorTestEnable = TRUE;
	Lighting = FALSE;
	MinFilter[0] = LINEAR;
	MagFilter[0] = LINEAR;
	MipFilter[0] = LINEAR;
	MinFilter[1] = LINEAR;
	MagFilter[1] = LINEAR;
	MipFilter[1] = LINEAR;
	ColorOp[0] = Modulate2x;
	AlphaOp[0] = Modulate2x;
	TexCoordIndex[0] = 0;
	TexCoordIndex[1] = 1;
    }
}

Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

+ "_shared.fx"

Content:

Code: Select all


#ifndef __SHARED_FX__
#define __SHARED_FX__

shared float4x4 projection;
shared float4x4 modelview;
shared float4x3 modelview_fillet[26];

shared float4x4 texmtx0;
shared float4x4 texmtx1;
shared float4x4 bbmtx;
shared float4x4 bbmtxy;

shared float4 lights_pos[3] = { { 0.f, -1.f, 0.f, 0.f }, { 0.f, -1.f, 0.f, 0.f }, { 0.f, -1.f, 0.f, 0.f } };
shared float4 lights_clr[3] = { { 0.f, 0.f, 0.f, 0.f }, { 0.f, 0.f, 0.f, 0.f }, { 0.f, 0.f, 0.f, 0.f } };
shared float4 lights_amb = { 0.f, 0.f, 0.f, 0.f };

shared float4 light_dir0;
shared float4 light_dir1;
shared float4 light_dir2;
shared float4 light_dir_clr0;
shared float4 light_dir_clr1;
shared float4 light_dir_clr2;

shared float4 const_col_f;
shared float4 particle_const_col_f;

shared int const_col;
shared int particle_const_col;

shared int fixedalpha;

float3 calclight( float3 P, float3 N, int idx )
{
    float3 L = lights_pos[idx] - P;
    float3 D = normalize( L );
    float dp = max( 0, dot( D, N ) );
    return dp * lights_clr[idx];
}

float3 calcdirlight( float3 N, float3 D, float3 clr )
{
    float dp = max( 0, -dot( D, N ) );
    return dp * clr;
}

#endif

Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Game in Wine 1.7.38
Attachments
secondsight.txt.7z
(23.42 KiB) Downloaded 168 times
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Game in Wine 1.7.44
Attachments
secondsight.txt.7z
(12.06 KiB) Downloaded 144 times
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Game in Wine 1.7.50

Code: Select all


WineDbg starting on pid 002b
0x7b862b87: movl	%edi,0x4(%esp)
Wine-dbg>bt
Backtrace:
=>0 0x7b862b87 in kernel32 (+0x52b87) (0x0033feb8)
  1 0x7bc837f0 call_thread_func_wrapper+0xb() in ntdll (0x0033fed8)
  2 0x7bc869bd call_thread_func+0x7c() in ntdll (0x0033ffa8)
  3 0x7bc837ce RtlRaiseException+0x21() in ntdll (0x0033ffc8)
  4 0x7bc55fbe call_dll_entry_point+0x3fd() in ntdll (0x0033ffe8)
  5 0xb75d965d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  6 0xb75d971b wine_switch_to_stack+0x2a() in libwine.so.1 (0xbfb35e88)
  7 0x7bc5c189 LdrInitializeThunk+0x238() in ntdll (0xbfb35ec8)
  8 0x7b869403 __wine_kernel_init+0xa12() in kernel32 (0xbfb36fe8)
  9 0x7bc5d0b3 __wine_process_init+0x192() in ntdll (0xbfb37078)
  10 0xb75d6dc8 wine_init+0x327() in libwine.so.1 (0xbfb370d8)
  11 0x7bf0100c main+0xfb() in <wine-loader> (0xbfb37528)
  12 0xb73f072e __libc_start_main+0xdd() in libc.so.6 (0x00000000)
Wine-dbg>cont
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:0033f874 EBP:00000000 EFLAGS:00210206(  R- --  I   - -P- )
 EAX:00000000 EBX:008d7610 ECX:0033f87c EDX:04910f40
 ESI:00000000 EDI:007b5cc0
Stack dump:
0x0033f874:  00000001 00000000 6fcb07d2 00412120
0x0033f884:  00000000 0014c0b8 00000000 00000001
0x0033f894:  00000016 00000080 00000280 000001e0
0x0033f8a4:  00000015 00000002 00000000 00000000
0x0033f8b4:  00000001 0002004e 00000000 00000001
0x0033f8c4:  0000004d 00000002 0000003c 00000000
Backtrace:
=>0 0x0040e3c7 in secondsight (+0xe3c7) (0x00000000)
0x0040e3c7: movl	0x0(%esi),%eax

Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Code: Select all


Backtrace:
=>0 0x0040e3c7 in secondsight (+0xe3c7) (0x00000000)
0x0040e3c7: movl   0x0(%esi),%eax

Looks very interesting. I found this link:
https://en.wikibooks.org/wiki/X86_Assem ... and_syntax

Could this be related with bug? Looks like bug with Second Sight could be related with asm,or missing things in ntoskrnl.exe (just my IMHO).
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

https://en.wikibooks.org/wiki/X86_Assem ... ne-by-line

> The "l" on the end of each opcode indicates that we want to use the version of the opcode that works with "long" (32-bit) operands; usually the assembler is able to work out the correct opcode version from the operands, but just to be safe, it's a good idea to include the "l", "w", "b", or other suffix. The percent signs designate register names, and the dollar sign designates a literal value. This sequence of instructions is typical at the start of a subroutine to save space on the stack for local variables; EBP is used as the base register to reference the local variables, and a value is subtracted from ESP to reserve space on the stack (since the Intel stack grows from higher memory locations to lower ones).



Looks like Wine can't work with "long" (32-bit) operands.
Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Chebanenko Igor
Level 2
Level 2
Posts: 43
Joined: Tue Jul 16, 2013 5:16 am

Re: Wine 1.7.15 & Second Sight

Post by Chebanenko Igor »

Second Sight in Wine 1.7.50. Another debug.
Attachments
secondsight.txt.7z
Debug
(21.23 KiB) Downloaded 148 times
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Wine 1.7.15 & Second Sight

Post by lahmbi5678 »

Please add a comment to the bug report and maybe explain your findings. As I said before, the wine devs are watching bug reports, and sometimes it may help, if a bug gets more attention.
Locked