FreeBSD 13.1 release amd64 KDE plasma 5 emulators/wine-devel 7.12 not work at all. -------------------------------------------------------------- ykla@ykla:~ % wine wincfg 0024:fixme:ntdll:create_logical_proc_info stub 0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 002c:fixme:ntdll:create_logical_proc_info stub 002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION 002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION 0034:fixme:ntdll:create_logical_proc_info stub 0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 003c:fixme:ntdll:create_logical_proc_info stub 003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0044:fixme:ntdll:create_logical_proc_info stub 0044:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0050:fixme:ntdll:create_logical_proc_info stub 0050:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0070:fixme:ntdll:create_logical_proc_info stub 0070:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0090:fixme:ntdll:create_logical_proc_info stub 0090:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 00a8:fixme:ntdll:create_logical_proc_info stub 00a8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 00c0:fixme:ntdll:create_logical_proc_info stub 00c0:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. Application could not be started, or no application associated with the specified file. ShellExecuteEx failed: File not found. ykla@ykla:~ % 00d4:fixme:ntdll:create_logical_proc_info stub 00d4:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. ykla@ykla:~ % wine --version wine-7.12 ykla@ykla:~ % ykla@ykla:~ % --------------------------------------------------------------- and I tested wine6 is OK.
Created attachment 235311 [details] log
In VMware Workstation Pro 16.2.3, and it seems ok in virtualbox with the same error.
OK. Same issue in real computer.
Same error % winecfg 0180:fixme:ntdll:create_logical_proc_info stub 0180:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 06b4:fixme:ntdll:create_logical_proc_info stub 06b4:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0170:fixme:ntdll:create_logical_proc_info stub 0170:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. % pkg info | grep wine wine-devel-7.14,1 Microsoft Windows compatibility environment winetricks-20220411 Easy way to work around problems in Wine % wine --version wine-7.14 %
The problem in the original post is "wine wincfg", it should be "wine winecfg". Also try "wine64 winecfg".
(In reply to Damjan Jovanovic from comment #5) I tried winecfg.
Try: sysctl kern.elf64.aslr.stack=0
(In reply to Damjan Jovanovic from comment #7) Doesn't help. Abort trap on all 32 bit windows apps. 64 bit win apps seem to continue to function with ASLR enabled. Didn't notice this was a thing until I was trying to play some 32 bit stuff and googled my error finding this PR. system amd64 13.1p1
Same, but also trow exception mitya@m18:~/Desktop % wine winbox.exe 0024:fixme:ntdll:create_logical_proc_info stub 0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 002c:fixme:ntdll:create_logical_proc_info stub 002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION 002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION 002c:err:winediag:getaddrinfo Failed to resolve your host name IP 0034:fixme:ntdll:create_logical_proc_info stub 0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 003c:fixme:ntdll:create_logical_proc_info stub 003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0048:fixme:ntdll:create_logical_proc_info stub 0048:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0050:fixme:ntdll:create_logical_proc_info stub 0050:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0068:fixme:ntdll:create_logical_proc_info stub 0068:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0088:fixme:ntdll:create_logical_proc_info stub 0088:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0090:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142 003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114 00a8:fixme:ntdll:create_logical_proc_info stub 00a8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 00b8:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005 00c8:fixme:ntdll:create_logical_proc_info stub 00c8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 00f0:fixme:ntdll:create_logical_proc_info stub 00f0:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0034:err:ole:apartment_createwindowifneeded CreateWindow failed with error 1411 creating Window Class routeros_null 0024:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0024:err:winediag:nodrv_CreateWindow L"The explorer process failed to start." ERROR: createWindow failed error=18 ACCESS VIOLATION EXCEPTION at address: _ 42dc4f eip=_ 42dc4f eflags=__ 10246 edi=_ 13affc esi=_____ 21 ebp=_ 7bea98 esp=_ 7bea94 eax=_______0 ebx= 23a14c8 ecx= 23a14c8 edx=_______0 winbox version: 3.37 backtrace: 7b0147cb 7bc2986f 7bc8a441 7bc6ff89 7bc6ff5b 7bc70a15 7bc706e6 7bc6fded _ 42ea47 _ 4303cd _ 4a715b _ 4b2249 _ 52041d _ 401386 7b6327e0 7bc79497 7bc79c68 stack: 23a14c8 _ 7beab8 _ 42ea47 _______0 linked to KERNEL32! wineserver: file_set_error() can't map error: Cannot allocate memory createToolhelpSnapshot failed 31 code: 8b 40 20 85 c0 74 1a 8b 18 8b 48 04 29 d9 c1 f9
I'm getting this issue with Wine 7.16. This is coming from 7.08 which was working just fine.
+1 with wine-devel 7.17
On my 13.1 machine 7.17 works fine I've been using it for a while. kern.*.aslr.enable are both 1.
I can confirm this. I get the same error message when trying to start Kmquake2, which is a 32-bit application. I am going to try with wine (not devel) now.
I think this ticket can be closed I've been using 7.19 just fine it fixes the issues brought up in this ticket.
(In reply to Amar Takhar from comment #14) But according to https://www.freshports.org/emulators/wine-devel Here, the wine-devel pkg package is still 7.18,1 as of today. The i386 for wine-devel cannot be compiled via ports without 7.19. Or are you using some other method to compile the port? The above error occurs mainly when running a 32-bit windows exe.
I tested wine7.21 today and the problem is still there. You can try fetch https://dldir1.qq.com/qqfile/qq/PCQQ9.6.9/QQ9.6.9.28878.exe for test. At first it was possible to use winecfg to open the configuration screen, but after closing it, it would no longer open.The errors are still the same as in the past.
mitya@m18:~ % wine --version wine-7.22 mitya@m18:~ % winecfg 0024:fixme:ntdll:create_logical_proc_info stub 0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 002c:fixme:ntdll:create_logical_proc_info stub 002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to start L"C:\\windows\\system32\\wineboot.exe" 0024:err:environ:run_wineboot failed to start wineboot 40000003 0034:fixme:ntdll:create_logical_proc_info stub 0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to start L"C:\\windows\\system32\\conhost.exe" 003c:fixme:ntdll:create_logical_proc_info stub 003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 0044:fixme:ntdll:create_logical_proc_info stub 0044:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to start L"C:\\windows\\system32\\explorer.exe" 003c:err:win:get_desktop_window failed to start explorer 40000003 004c:fixme:ntdll:create_logical_proc_info stub 004c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to start L"C:\\windows\\system32\\winecfg.exe" 003c:err:winecfg:wWinMain failed to restart 64-bit L"C:\\windows\\system32\\winecfg.exe", err 700 003c:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 003c:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
7.21 and 7.22 both work for me, no issues. I have one question: do you use Nvidia card? If yes, then the issue is with package nvidia-driver not wine. Wine configuration is a 32-bit application and will not work with the current nvidia-driver. You can "downgrade" your nvidia-driver to use nvidia-driver-470 instead to "fix" the issue. Also, I can download and install QQ installer from comment #17, works for me on wine 7.21.
(In reply to Bartek Jasicki from comment #19) NO NVIDIA, just i915kms or vmware
(In reply to Bartek Jasicki from comment #19) You can download and install QQ, and then please try to reopen it after you installs it. C:\Program Files (x86)\Tencent\QQ\Bin
(In reply to ykla from comment #21) I can confirm that QQ doesn't start after installation. Maybe it is an issue with QQ itself? I found some solutions for QQ on Wine on the net, but all of them in Chinese. Unfortunately, I'm not well-educated to know it. :) Automatic translation suggests something about disabling security checks in QQ. But wine winecfg or winecfg commands work properly. Same as a few other 32-bit applications.
FreeBSD 14.0-CURRENT #0 main-n259812-777e472cd86b: $ wine --version wine-7.22 (Staging) $ wine winecfg 0024:fixme:ntdll:create_logical_proc_info stub 0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 002c:fixme:ntdll:create_logical_proc_info stub 002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to open L"C:\\windows\\system32\\wineboot.exe": c0000135 0024:err:environ:run_wineboot failed to start wineboot c0000135 0024:fixme:winediag:LdrInitializeThunk wine-staging 7.22 is a testing version containing experimental patches. 0024:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org. 0034:fixme:ntdll:create_logical_proc_info stub 0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to open L"C:\\windows\\system32\\conhost.exe": c0000135 003c:fixme:ntdll:create_logical_proc_info stub 003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to open L"C:\\windows\\system32\\explorer.exe": c0000135 0024:err:win:get_desktop_window failed to start explorer c0000135 0044:fixme:ntdll:create_logical_proc_info stub 0044:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 004c:fixme:ntdll:create_logical_proc_info stub 004c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to open L"C:\\windows\\system32\\winecfg.exe": c0000135 0044:err:winecfg:wWinMain failed to restart 64-bit L"C:\\windows\\system32\\winecfg.exe", err 126 0044:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 0044:err:winediag:nodrv_CreateWindow L"The explorer process failed to start." wine-7.0.1,1 works.
(In reply to Bartek Jasicki from comment #22) Not issue with QQ itself,in many Linux likes fedora it works well by wine now. And maybe you can test others windows 32 bit applications.
(In reply to ykla from comment #24) If something works under Wine on Linux, it doesn't mean it will work under Wine on FreeBSD too. :) I just checked QQ again and for me, it reports issues with missing some libraries at my side (win32k or something like that). About testing other 32-bit apps: I have a couple of old Windows games, 32-bit. All of them work. I'm not using VM. Another thing, the reports at comments #9, #18 and #23 are different: 0044:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. This mean that for some reasons, Wine can't find a suitable graphic driver, and it can't initialize graphic subsystem. I'm curious what drivers and graphic cards are used there. ;)
(In reply to Bartek Jasicki from comment #19) Seeing this I have a question: I realized that since upgrading from nvidia-driver-470 to nvidia-driver-510 I get a segmentation fault when trying to start linux-steam-utils. As something is always updated when starting steam from linux-steam-utils, I did not know if the failure was due to the application or the nvidia driver. So do you think this could be related?
(In reply to Werner Lehmann from comment #26) I don't know. Generally, running anything 32-bit doesn't work with the current nvidia-driver package because, for some reasons, applications can't find 32-bit Nvidia libraries and trying to use 64-bit ones. You can check if it is related to the driver by downgrading it to 470. It shouldn't be hard because nvidia-driver 470 series is now a separated package.
(In reply to Bartek Jasicki from comment #27) Thanks a lot for the suggestion and explanation. I have downgraded to nvidia-driver-470 and wine works now for me! I use wine-6.0.4_1,1 from the quarterly packages. I have tested Kmquake2, Hitman 2, Wolfenstein 2009 (all 32-bit) and also Wrath - Aeon of Ruin, which I could never play with i386-wine before because it is 64-bit. Downgrading to 470 did not fix the problem with linux-steam-utils, though.
This is broken for me again. I updated from 7.21 and this error has come back after being fixed for months. Not sure what's going on going to try and downgrade by rebuilding from ports due to updated dependencies.
Downgrading to 7.21 fixed the problem for me though it seems for some 7.21 doesn't work, either. I haven't had much success figuring out what causes this issue to trigger.
(In reply to Amar Takhar from comment #30) As far I know, 7.22 is completely broken on FreeBSD. It can't find 32-bit libraries. You can build it, but: 1) running winecfg doesn't work, unless you do it by executing: wine64 winecfg. 2) it doesn't copy all libraries to newly created wine prefix (syswow64 directory is empty). 3) the 2) and the problems with finding kernel32.dll cause that 32-bit programs will crash due to lack of libraries. Someone could try to work around the issues, by: 1) Manually filling directory syswow64 in wine prefix directory. 2) Manipulating with LD_LIBRARY_PATH or LD_32_LIBRARY_PATH.
(In reply to Bartek Jasicki from comment #31) So this is a different issue from what this ticket is about. I see what you are pointing out now. Funnily enough I get all the same error messages related to create_logical_proc_info which is why I thought it was the same problem but it's clearly not. I was more focused on getting it working again as I really needed a functional setup. Thanks for pointing out what's wrong I'll see if I can dig into it later should another ticket be opened?
(In reply to Amar Takhar from comment #32) True, these error messages can lead to different issues. :) About another issue: I think yes, eventually if you will have a solution it may not solve the original issue. Unless you have the same problem with wine 7.12?
in wine-devel-7.22_1,1: --------------------------------------- ykla@ykla:~ $ winecfg 0024:fixme:ntdll:create_logical_proc_info stub 0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. 002c:fixme:ntdll:create_logical_proc_info stub 002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002. wine: failed to open L"C:\\windows\\system32\\wineboot.exe": c0000135 0024:err:environ:run_wineboot failed to start wineboot c0000135 wine: could not load kernel32.dll, status c0000135 ykla@ykla:~ $
Can you please advise to what extent this still applies after the update of wine-devel to Wine 8.11?
(In reply to Gerald Pfeifer from comment #35) It seems that the 32-bit version of wine-devel is not available in the latest repository. ---------------------------------------------------------------- $ /usr/local/share/wine/pkg32.sh install wine-devel mesa-dri pkg -o ABI=FreeBSD:13:i386 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir /home/ukla/.i386-wine-pkg install wine-devel mesa-dri Updating FreeBSD repository catalogue... pkg: Repository FreeBSD has a wrong packagesite, need to re-create database Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 Fetching packagesite.pkg: 100% 6 MiB 3.4MB/s 00:02 Processing entries: 100% FreeBSD repository update completed. 33128 packages processed. All repositories are up to date. pkg: No packages available to install matching 'wine-devel' have been found in the repositoris --------------------- --------------------------------- root@ykla:~ # pkg info wine-devel wine-devel-8.11_1,1 Name : wine-devel Version : 8.11_1,1 Installed on : Mon Aug 28 06:30:32 2023 CST Origin : emulators/wine-devel Architecture : FreeBSD:13:amd64 Prefix : /usr/local Categories : emulators Licenses : LGPL3 or LGPL21 Maintainer : damjan.jov@gmail.com WWW : https://www.winehq.org Comment : Microsoft Windows compatibility environment Options : ALSA : off CUPS : off DOCS : on DOSBOX : off GECKO : off GNUTLS : on MONO : off OSS : on V4L : off WINEMAKER : off X11 : on Shared Libs required: libgcc_s.so.1 libXext.so.6 libX11.so.6 Annotations : FreeBSD_version: 1302001 cpe : cpe:2.3:a:winehq:wine:8.11:::::freebsd13:x64:1 repo_type : binary repository : FreeBSD Flat size : 292MiB Description : Wine is a Microsoft Windows compatibility layer (or program loader) capable of running Windows applications on i386 and compatible CPUs. Windows programs running in Wine act as native programs would, running without the performance or memory usage penalties of an emulator, with a similar look and feel to other applications on your desktop. Many applications already work, more or less, including versions of Microsoft Office and many games. If you receive a message of "Did you reconfigure your kernel with "options USER_LDT"?" add the line machdep.max_ldt_segment="2048" to /boot/loader.conf and reboot. Gerald Pfeifer <gerald@FreeBSD.org> root@ykla:~ # ------------------------------------------------
(In reply to Gerald Pfeifer from comment #35) see also https://www.freshports.org/emulators/wine-devel
Yes, my bad: 32-bit fails to build since the early 8.x days (shortly before the 8.0 release). One consequence is that WoW64 does not work. If you are interested in helping with that, you could try build on i386 and file a report against clang/the compiler which I believe is where that build failed last time someone mentioned the issue.
(In reply to Gerald Pfeifer from comment #38) ------------------------------------------------- root@ykla:/usr/ports/emulators/wine-devel # make BATCH=yes install clean | tee 1.txt ===> wine-devel-8.11_1,1 is marked as broken on i386: fails to build: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271201#c6. *** Error code 1 Stop. make: stopped in /usr/ports/emulators/wine-devel --------------------------------
Yes, you need to remove that BROKEN= line from the Makefile or try the build with something like make BATCH=yes TRYBROKEN=1 install clean
Created attachment 244603 [details] Revert upstream Wine commit that break i386 build From https://bugs.winehq.org/show_bug.cgi?id=55408#c6, I found that building i386 can also break on Linux. Here is a patch to revert an upstream Wine commit that lets the i386 port build successfully in poudriere. Apparently, it is a bug in LLVM: https://bugs.winehq.org/show_bug.cgi?id=54889 https://github.com/llvm/llvm-project/issues/62339
I believe this report is mixing several different issues and Wine has progressed quite a bit in those last 12+ months. wine-devel is now at version 8.11 up from 7.12 and I proposed an update to 8.14 in bug #273538. This does not mean any of the observations and tests here is incorrect or bad, mind. Also note that upstream Wine has developed its own approach to WoW64 that does not require 32-bit libraries. Pursuing that in the context of the wine-devel port look preferable (and more sustainable). This is my strong recommendation. That said, if you want to go ahead and push your patch from comment #41 to emulators/wine - the stable version - that's probably good and Approved by: gerald (maintainer).