box86
box86 copied to clipboard
Wine inside box86 - issues with create window
My setup: Debian stable, wine 7.0, box86 compiled with armhf gcc -DRK3399. I'm attaching the error log and two other programs that do work. Running with BOX_LOG=1
$ box86 xeyes
- works
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 24 Env var
Looking for xeyes
Error initializing native libXext.so.6 (last dlerror is libXext.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXext.so.6
Error initializing native libXmu.so.6 (last dlerror is libXmu.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXmu.so.6
Error initializing native libXt.so.6 (last dlerror is libXt.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXt.so.6
Error initializing native libX11.so.6 (last dlerror is libX11.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libX11.so.6
Error initializing native libXrender.so.1 (last dlerror is libXrender.so.1: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXrender.so.1
Using native(wrapped) libm.so.6
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Error initializing native libxcb.so.1 (last dlerror is libxcb.so.1: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libxcb.so.1
Using native(wrapped) libdl.so.2
Error initializing native libXau.so.6 (last dlerror is libXau.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXau.so.6
Error initializing native libXdmcp.so.6 (last dlerror is libXdmcp.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXdmcp.so.6
Using emulated /lib/i386-linux-gnu/libbsd.so.0
Using emulated /lib/i386-linux-gnu/libmd.so.0
Error initializing native libSM.so.6 (last dlerror is libSM.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libSM.so.6
Error initializing native libICE.so.6 (last dlerror is libICE.so.6: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libICE.so.6
Using native(wrapped) libuuid.so.1
Error initializing native libXcursor.so.1 (last dlerror is libXcursor.so.1: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXcursor.so.1
Error initializing native libXfixes.so.3 (last dlerror is libXfixes.so.3: cannot open shared object file: No such file or directory)
Using emulated /lib/i386-linux-gnu/libXfixes.so.3
$ box86 hello.exe
- works
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 24 Env var
Looking for wine
argv[1]="/home/tgq/print_compiler.exe"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated /opt/wine-stable/bin/../lib/wine/i386-unix/ntdll.so
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
BOX86: Wine detected, WINEPRELOADRESERVE=""
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 25 Env var
Looking for /opt/wine-stable/bin/wine
argv[1]="/home/tgq/print_compiler.exe"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated /opt/wine-stable/bin/../lib/wine/i386-unix/ntdll.so
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 25 Env var
Looking for /opt/wine-stable/bin/wineserver
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using emulated /opt/wine-stable/lib/wine/i386-unix/libwine.so.1
wine: Unhandled page fault on read access to 000030E6 at address 68E8DB27 (thread 0078), starting debugger...
0078:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 108 72" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger
003c:err:service:process_send_command service protocol error - failed to read pipe r = 0 count = 0!
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1053
003c:err:service:process_send_start_message pipe connect failed
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1053
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/kernel32.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/kernel32.so"/0x64290997, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/kernelbase.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/kernelbase.so"/0x642815d7, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/vcruntime140.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/vcruntime140.so"/0x642a20ff, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/ucrtbase.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/ucrtbase.so"/0x642a2037, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-runtime-l1-1-0.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-runtime-l1-1-0.so"/0x642a2797, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-stdio-l1-1-0.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-stdio-l1-1-0.so"/0x642a2947, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-math-l1-1-0.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-math-l1-1-0.so"/0x642a2947, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-locale-l1-1-0.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-locale-l1-1-0.so"/0x642a2947, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-heap-l1-1-0.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/api-ms-win-crt-heap-l1-1-0.so"/0x642a2947, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/tzres.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/tzres.so"/0x642ce25f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/tzres.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/tzres.so"/0x642d3e77, 2)
Debug level is 1
Dynarec for ARMv8, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
BOX86: Wine detected, WINEPRELOADRESERVE="000400000-000492000"
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 27 Env var
Looking for /opt/wine-stable/bin/wine
argv[1]="C:\windows\system32\conhost.exe"
argv[2]="--unix"
argv[3]="--width"
argv[4]="213"
argv[5]="--height"
argv[6]="59"
argv[7]="--server"
argv[8]="0x10"
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux.so.2
Using native(wrapped) librt.so.1
Using emulated /opt/wine-stable/bin/../lib/wine/i386-unix/ntdll.so
Using emulated /opt/wine-stable/lib/wine/i386-unix/libwine.so.1
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/conhost.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/conhost.so"/0x64ddb33f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/kernel32.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/kernel32.so"/0x650ea97f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/kernelbase.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/kernelbase.so"/0x6517315f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/advapi32.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/advapi32.so"/0x6517af67, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/msvcrt.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/msvcrt.so"/0x6517ae97, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/sechost.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/sechost.so"/0x6517b0e7, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/ucrtbase.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/ucrtbase.so"/0x6517b30f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/gdi32.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/gdi32.so"/0x6517c48f, 2)
Using emulated /opt/wine-stable/lib/wine/i386-unix/win32u.so
Using native(wrapped) libm.so.6
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/user32.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/user32.so"/0x6517ca0f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/setupapi.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/setupapi.so"/0x6520f85f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/rpcrt4.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/rpcrt4.so"/0x6520f5f7, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/version.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/version.so"/0x65211b1f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/tzres.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/tzres.so"/0x6557ce4f, 2)
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/tzres.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/tzres.so"/0x65583a5f, 2)
Using native(wrapped) libfreetype.so.6
Using native(wrapped) libfontconfig.so.1
Error loading needed lib /opt/wine-stable/lib/wine/i386-unix/imm32.so
Warning: Cannot dlopen("/opt/wine-stable/lib/wine/i386-unix/imm32.so"/0x66991497, 2)
Clang-14.0.0
$ box86 wine winemine
- does not
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
wine: Unhandled page fault on read access to 000030E6 at address 68E8DB27 (thread 0078), starting debugger...
0078:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 108 72" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger
003c:err:service:process_send_command service protocol error - failed to read pipe r = 0 count = 0!
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1053
003c:err:service:process_send_start_message pipe connect failed
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"winebus" failed to start: 1053
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
Box86 with Dynarec v0.2.5 5187b55a built on Feb 7 2022 15:15:19
00c4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00c4:err:winediag:nodrv_CreateWindow The explorer process failed to start.
Install libX11 (and all other needed libs) from armhf debian. Everything will work better.
(I mean, at least for box86 xeyes
all the libs you be native, none should be emulated)
Did not help. Maybe I did not present the issue clearly, the problem is that anything requiring a window in wine closes with 00c4:err:winediag:nodrv_CreateWindow The explorer process failed to start.
Is it possible that it's wine's fault? The dlsym error point to nonexisting files such as /opt/wine-stable/lib/wine/i386-unix/kernelbase.so
, the wine package comes with /opt/wine-stable/lib/wine/i386-windows/kernelbase.dll
which looks suspiciously similar, except for the -unix and .so part.
I’m not sure where the problem might be, but I just wanted to say that I can confirm that box86 from at least up to Dec 10, 2021 does work with wine-devel-7.1 on Raspberry Pi OS 32-bit bullseye
On Mon, Feb 7, 2022 at 10:51 AM Krzysztof Aleksander Pyrkosz < @.***> wrote:
Did not help. Is it possible that it's wine's fault? The dlsym error point to nonexisting files such as /opt/wine-stable/lib/wine/i386-unix/kernelbase.so, the wine package comes with /opt/wine-stable/lib/wine/i386-windows/kernelbase.dll which looks suspiciously similar, except for the -unix and .so part.
— Reply to this email directly, view it on GitHub https://github.com/ptitSeb/box86/issues/570#issuecomment-1031747911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHCGVPRKLMCNSHIMZ7EENADU2ABC3ANCNFSM5NX4KHIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
I have replaced my arm64 rootfs with armhf. Now I am on 64 bit kernel but pure armhf userland. The issue is gone. Aaand it's back when I installed xfce... Okay it seems to be fixed after reinstalling wine. There were some libraries that bit eachother.
I think using a chroot is also an option for aarch64 systems, though I haven’t tried that yet.
Itai also put together a guide for another method (armhf multiarch on aarch64) for box86 too here https://itai-nelken.github.io/Ubuntu-on-rpi-fixes/ (Under “installation instructions (for ubuntu 64bit, using multiarch):“)
I think this ticket should be closed. It's not an issue with box86.
I think using a chroot is also an option for aarch64 systems, though I haven’t tried that yet.
Itai also put together a guide for another method (armhf multiarch on aarch64) for box86 too here https://itai-nelken.github.io/Ubuntu-on-rpi-fixes/ (Under “installation instructions (for ubuntu 64bit, using multiarch):“)
Using pi-apps helped me finally run Zoom on my aarm64 Raspberry Pi 400. Thanks !