Cannot run program after installed

Questions about Wine on Linux
Locked
User avatar
CountStarlight
Level 2
Level 2
Posts: 16
Joined: Tue Feb 06, 2018 11:13 pm

Cannot run program after installed

Post by CountStarlight »

system: Archlinux
wine: 3.16

Program download link: http://dldir1.qq.com/qqfile/qq/TIM2.1.5 ... M2.1.5.exe

I run the install program with:

Code: Select all

env LC_ALL=zh_CN.UTF-8 WINEPREFIX="$HOME/.wine/" WINEDEBUG=-msvcrt wine TIM2.1.5.exe
Install program can work with Simsun font, but after installed, run program with:

Code: Select all

env WINEPREFIX="$HOME/.wine/" WINEDEBUG=-msvcrt wine "c:\\Program Files (x86)\\Tencent\\TIM\\Bin\\TIM.exe"
And log print:

Code: Select all

001f:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0025:fixme:advapi:RegisterEventSourceW ((null),L"QPCore"): stub
0025:fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000000,(nil),0x0001,0x00000000,0x73fc64,(nil)): stub
0025:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
002a:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtectX64": c0000001
0014:err:service:process_send_command service protocol error - failed to write pipe!
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"QQProtectX64" failed to start: 31
0009:err:module:attach_dlls "libtcmalloc.dll" failed to initialize, aborting
0009:err:module:attach_dlls Initializing dlls for L"c:\\Program Files (x86)\\Tencent\\TIM\\Bin\\TIM.exe" failed, status c0000005
0026:fixme:ntdll:NtQueryInformationProcess (process=0xa8) Unimplemented information class: ProcessSessionInformation
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
003b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtectX64": c0000001
003d:err:service:process_send_command service protocol error - failed to write pipe!
0026:fixme:msg:ChangeWindowMessageFilter 4a 00000001
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0026:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
003e:fixme:iphlpapi:NotifyAddrChange (Handle 0x182fed8, overlapped 0x182feb8): stub
003e:fixme:iphlpapi:CancelIPChangeNotify (overlapped 0x182feb8): stub
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0026:fixme:process:WTSGetActiveConsoleSessionId stub
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f4bc
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f4c4
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f594
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f594
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f468
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f470
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f468
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84f470
0026:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0026:fixme:ntdll:EtwEventRegister ({dc55d4d9-138d-441a-80cb-77aec617e3f7}, 0x10097970, 0x10116b98, 0x10116b90) stub.
0026:fixme:ntdll:EtwEventUnregister (deadbeef) stub.
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0026:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x84f1e8 1 C) semi-stub
0026:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x84efc8 1 C) semi-stub
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0017:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0048:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtectX64": c0000001
0015:err:service:process_send_command service protocol error - failed to write pipe!
0026:fixme:crypt:CryptProtectMemory (0x174240 112 00000001): stub
0026:fixme:crypt:CryptUnprotectMemory (0x10e0460 112 00000001): stub
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84c758
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84e90c
0026:fixme:wtsapi:WTSQueryUserToken 1 0x84e934
0025:fixme:advapi:RegisterEventSourceW ((null),L"QPCore"): stub
0025:fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000000,(nil),0x0001,0x00000000,0x73fc80,(nil)): stub
0025:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
The program cannot work, how to solve it?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Cannot run program after installed

Post by Bob Wya »

CountStarlight wrote: And log print:

Code: Select all

...
0026:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
...
The program cannot work, how to solve it?
@CountStarlight

I tried out TIM with Wine Staging 3.16.
It seems to start up - obviously I cannot test any further due to a slight language barrier!
I'd re-test TIM, using wine-staging-3.16 - due to the UAC warning above (in your terminal log).

Code: Select all

0107:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtect": c0000002
Hopefully these drivers aren't important...
Because Wine doesn't do native drivers... :cry:

Bob
User avatar
CountStarlight
Level 2
Level 2
Posts: 16
Joined: Tue Feb 06, 2018 11:13 pm

Re: Cannot run program after installed

Post by CountStarlight »

Bob Wya wrote:
CountStarlight wrote: And log print:

Code: Select all

...
0026:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
...
The program cannot work, how to solve it?
@CountStarlight

I tried out TIM with Wine Staging 3.16.
It seems to start up - obviously I cannot test any further due to a slight language barrier!
I'd re-test TIM, using wine-staging-3.16 - due to the UAC warning above (in your terminal log).

Code: Select all

0107:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtect": c0000002
Hopefully these drivers aren't important...
Because Wine doesn't do native drivers... :cry:

Bob
Thank you for your test. I installed multilib/wine-staging 3.16-1, and remove ~/.wine, instal TIM with:

Code: Select all

env LC_ALL=zh_CN.UTF-8 WINEPREFIX="$HOME/.wine/" WINEDEBUG=-msvcrt wine TIM2.1.5.exe
During installation, you only need to click on the blue button in the middle, it's mean "install now".
Image

After installation, click the blue button, it's mean "run now"
Image

But it cannot work, try to run it with:

Code: Select all

env WINEPREFIX="$HOME/.wine/" WINEDEBUG=-msvcrt wine "c:\\Program Files (x86)\\Tencent\\TIM\\Bin\\TIM.exe"
And log print:

Code: Select all

000b:fixme:winediag:start_process Wine Staging 3.16 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0021:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0028:fixme:advapi:RegisterEventSourceW ((null),L"QPCore"): stub
0028:fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000000,(nil),0x0001,0x00000000,0x73fc64,(nil)): stub
0028:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
002d:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtectX64": c0000001
0016:err:service:process_send_command service protocol error - failed to write pipe!
000f:fixme:service:scmdatabase_autostart_services Auto-start service L"QQProtectX64" failed to start: 31
0009:err:module:LdrInitializeThunk "libtcmalloc.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"c:\\Program Files (x86)\\Tencent\\TIM\\Bin\\TIM.exe" failed, status c0000005
0029:fixme:ntdll:NtQueryInformationProcess (process=0x9c) Unimplemented information class: ProcessSessionInformation
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
003b:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtectX64": c0000001
003d:err:service:process_send_command service protocol error - failed to write pipe!
0029:fixme:msg:ChangeWindowMessageFilter 4a 00000001
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0029:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
003e:fixme:iphlpapi:NotifyAddrChange (Handle 0x171fed8, overlapped 0x171feb8): stub
003e:fixme:iphlpapi:CancelIPChangeNotify (overlapped 0x171feb8): stub
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0029:fixme:process:WTSGetActiveConsoleSessionId stub
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f4bc
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f4c4
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f594
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f594
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f468
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f470
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f468
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84f470
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0029:fixme:ntdll:EtwEventRegister ({dc55d4d9-138d-441a-80cb-77aec617e3f7}, 0x10097970, 0x10116b98, 0x10116b90) stub.
0029:fixme:ntdll:EtwEventUnregister (deadbeef) stub.
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0029:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x84f1e8 1 C) semi-stub
0029:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x84efc8 1 C) semi-stub
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 2d1400 (device=2d access=0 func=500 method=0)
0019:fixme:mountmgr:harddisk_ioctl Unsupported ioctl 74080 (device=7 access=1 func=20 method=0)
0048:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\QQProtectX64": c0000001
0017:err:service:process_send_command service protocol error - failed to write pipe!
0029:fixme:crypt:CryptProtectMemory (0x176358 112 00000001): stub
0029:fixme:crypt:CryptUnprotectMemory (0x10e0540 112 00000001): stub
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84e90c
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0029:fixme:wtsapi:WTSQueryUserToken 1 0x84e934
0029:fixme:shell:_SHGetUserProfilePath unsupported for user other than current or default
0028:fixme:advapi:RegisterEventSourceW ((null),L"QPCore"): stub
0028:fixme:advapi:ReportEventW (0xcafe4242,0x0004,0x0000,0x00000000,(nil),0x0001,0x00000000,0x73fc80,(nil)): stub
0028:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Cannot run program after installed

Post by Bob Wya »

@CountStarlight

I see you chiming in on:
Bug 45199 - Many applications and games fail to start/crash after compiling wine with gcc 8.1.0 and -O2 (GOT/PIC register load code now emitted at function entry, missing hotpatch signatures)
, re TIM not working.

TIM runs OK for me (installation and launching the installed application).
But note I'm compiling Wine / Wine Staging with gcc 8.2.0 and -O0 (no optimisations).

Bob
User avatar
CountStarlight
Level 2
Level 2
Posts: 16
Joined: Tue Feb 06, 2018 11:13 pm

Re: Cannot run program after installed

Post by CountStarlight »

Bob Wya wrote:@CountStarlight

I see you chiming in on:
Bug 45199 - Many applications and games fail to start/crash after compiling wine with gcc 8.1.0 and -O2 (GOT/PIC register load code now emitted at function entry, missing hotpatch signatures)
, re TIM not working.

TIM runs OK for me (installation and launching the installed application).
But note I'm compiling Wine / Wine Staging with gcc 8.2.0 and -O0 (no optimisations).

Bob
Thank you for your reply, and it is possible or not to rebuild wine with '-O0' during install a package from AUR?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Cannot run program after installed

Post by Bob Wya »

CountStarlight wrote:...
Thank you for your reply, and it is possible or not to rebuild wine with '-O0' during install a package from AUR?
You can even use the wine-staging PKGBUILD from the main Arch repo.
As in: Arch Packages: wine-staging source files.

Before running makepkg - to build the package. Either:
  • See: Arch Wiki: makepkg and alter the global CFLAGS.
  • Or locally change:

    Code: Select all

    export CFLAGS="${CFLAGS/-fno-plt/}"
    to:

    Code: Select all

    export CFLAGS="${CFLAGS/-fno-plt/} -O0"
    in the wine-staging PKGBUILD script.
Bob
Locked