https://bugs.winehq.org/show_bug.cgi?id=45357
--- Comment #17 from Silvan s.jegen@gmail.com --- (In reply to Zebediah Figura from comment #16)
(In reply to Silvan from comment #15)
I used winecfg to set the winehid.sys library to "disabled" but I got the same messages and a runtime of about 11s when running wine64 with a non-existing file.
Er, my apologies; I meant winebus.sys.
This seems to have done the trick! When running wine64 with the non-existing file I now get
$ time wine64 nonexistingfile.exe001c:fixme:ntdll:EtwEventUnregister (deadbeef) stub. 0012:fixme:ntdll:EtwEventUnregister (deadbeef) stub. 0012:fixme:wer:WerSetFlags (2) stub! 0012:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub 0019:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub. 0019:fixme:ntdll:EtwEventRegister ({319dc449-ada5-50f7-428e-957db6791668}, 0x993b10, 0x9e1b20, 0x9e1b38) stub. 0019:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x973159, 28) stub 001c:fixme:heap:RtlSetHeapInformation 0x240000 0 0x23e830 4 stub 001c:fixme:wer:WerSetFlags (2) stub! 001c:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub 0022:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub. 0022:fixme:ntdll:EtwEventRegister ({319dc449-ada5-50f7-428e-957db6791668}, 0x950d00, 0x9c0260, 0x9c0280) stub. 0022:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x998add, 28) stub 0036:err:winedevice:async_create_driver failed to create driver L"WineBus": c0000142 000f:fixme:service:scmdatabase_autostart_services Auto-start service L"WineBus" failed to start: 31 wine: cannot find L"C:\windows\system32\nonexistingfile.exe"
real 0m1.722s user 0m0.001s sys 0m0.006s $ time wine64 nonexistingfile.exe wine: cannot find L"C:\windows\system32\nonexistingfile.exe"
real 0m0.022s user 0m0.000s sys 0m0.019s $ time wine64 nonexistingfile.exe wine: cannot find L"C:\windows\system32\nonexistingfile.exe"
real 0m0.018s user 0m0.004s sys 0m0.012s ...
The times are not very consistent but I assume that this could be related to a wine service shutting down and starting again.
I can also confirm that with winebus.sys disabled our program takes about the same time as on Windows (I misremembered the time taken on Windows being 1s but it was actually 5s which is what we get through wine now as well).
Do you want me to try to debug what the issue with winebus.sys is?
Weirdly enough, the output of our program using the Solid OCR libraries when ran on Windows is different from what it is when ran in Wine. I am not sure that this counts as a Wine bug...