Whisky icon indicating copy to clipboard operation
Whisky copied to clipboard

[Bug]: Wine crashes immediately

Open desepticon opened this issue 1 year ago • 12 comments

Description

I'm on macOS Ventura with the latest command line tools beta, and I can't seem to get anything to run at all. It won't run the game, nor will it even run any simple program such as installing vcrun.

SIP is disabled

  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • 0068:err:module:open_builtin_so_file failed to load .so lib "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_64-unix/wineusb.sys.so"
  • 0068:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\wineusb": c0000142
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000

2023-06-10T18:09:15Z.log

Steps to reproduce

Created a bottle, which worked fine. Went to try and launch something through it but it won't work.

Expected behaviour

run the exe

What version of Whisky are you using?

pre-0.2.3

What version of macOS are you using?

Ventura (macOS 13)

Issue Language

  • [X] Yes my issue is written in English

desepticon avatar Jun 10 '23 18:06 desepticon

+1

hauntek avatar Jun 11 '23 06:06 hauntek

Same issue here.

linuzel avatar Jun 11 '23 08:06 linuzel

same, pls help us

CaptainGaryPecker avatar Jun 11 '23 08:06 CaptainGaryPecker

Have the same issue, Ventura 13.4 Whisky pre-0.2.3 (11)

  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • 0068:err:module:open_builtin_so_file failed to load .so lib "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_64-unix/wineusb.sys.so"
  • 0068:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\wineusb": c0000142
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
  • 00d8: thread_get_state failed on Apple Silicon - faking zero debug registers

alxjzx100 avatar Jun 11 '23 17:06 alxjzx100

Please don't just reply with "I have the same issue"

IsaacMarovitz avatar Jun 11 '23 18:06 IsaacMarovitz

Possibly the same issue. This worked straight out of the box via Sonoma on an external SSD, but Ventura is defeating me. It won't even launch the built-in apps like wordpad.

If I look at logs in the console App I see all the "failed to reserve range" warnings. And also:

01e4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
01e4:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

And this from trying to launch notepad.exe

0068:err:module:open_builtin_so_file failed to load .so lib "/private/var/folders/gz/vs9b83t94lq_hgdc90kdqj1m0000gn/T/AppTranslocation/62287A2D-7B64-49A3-B4C9-2319C4606255/d/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_64-unix/wineusb.sys.so"
0068:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142

Or if launched via the command line:

0068:err:module:open_builtin_so_file failed to load .so lib "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_64-unix/wineusb.sys.so"
0068:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142

Nothing meaningful is logged to the command line in any of the above scenarios.

This is not a clean system. I have the beta of both XCode and the command line tools. I previously had the paid version of crossover installed and I tied to install the porting toolkit via the "official" instructions before using Whisky. I also have a few packages installed under x86 Homebrew and I have Parallels on this machine.

Things I tried that didn't help:

  • export WINEDEBUG=-all
  • arch -x86_64 zsh && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
  • manually copying it to /Applications before running it
  • Running the app from a different location
  • launching the app via iTerm as /Applications/Whisky.app/Contents/MacOS/Whisky before attempting to run notepad.exe to rule out translocation as a possible issue
  • Deleting and re-creating the bottle
  • Deleting the app and reinstalling from a fresh copy of the 0.2.3 zip

I'm a dev myself - though not an Apple one. Happy to run whatever diagnostics I can that might help nail this. Also, are there any command-line options to enable additional debugging?

kevinwright avatar Jun 11 '23 20:06 kevinwright

Results! After a fashion...

I can get an application to run if I hit the wine64 binary directly. So this very much looks to be an issue in the way Whisky is invoking the embedded binary, one that only seems to happen on Ventura.

Lots of console spam but, crucially, notepad.exe does start running.

From within the /Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin folder:

./wine64 ~/Library/Containers/com.isaacmarovitz.Whisky/Bottles/Steam/drive_c/windows/notepad.exe
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
wine: created the configuration directory '/Users/XXXX/.wine'
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
002c:fixme:shell:create_link failed to connect to mount manager
002c:fixme:shell:create_link failed to connect to mount manager
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
00f0:fixme:module:dlopen_32on64_opengl32 loaded "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_32on64-unix/opengl32.dll.so" early @ 0x6a34f000
00f0: thread_get_state failed on Apple Silicon - faking zero debug registers
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
00f8:fixme:module:dlopen_32on64_opengl32 loaded "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_32on64-unix/opengl32.dll.so" early @ 0x69b4f000
00f8: thread_get_state failed on Apple Silicon - faking zero debug registers
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
0110:err:module:open_builtin_so_file failed to load .so lib "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_64-unix/wineusb.sys.so"
0110:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
002c:err:setupapi:SetupDiInstallDevice Failed to start service L"wineusb" for device L"ROOT\\WINE\\WINEUSB", error 1114.
002c:err:setupapi:SetupDiInstallDevice Failed to control service L"wineusb" for device L"ROOT\\WINE\\WINEUSB", error 1062.
wine: configuration in L"/Users/kevin/.wine" has been updated.
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
preloader: Warning: failed to reserve range 0000000000010000-0000000000110000
0024:fixme:imm:ImeSetActiveContext (0x4783d0, 1): stub
0024:fixme:imm:ImmReleaseContext (000000000001007E, 00000000004783D0): stub
0144:fixme:imm:ImeSetActiveContext (0x47d0b0, 0): stub
0144:fixme:imm:ImmReleaseContext (0000000000040052, 000000000047D0B0): stub

kevinwright avatar Jun 11 '23 21:06 kevinwright

I'd like to add that I run into this with any application as well on MacOS 13.4, but if I run the Battle.net installer in my MacOS downloads folder directly with "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/bin/wine64" in the terminal, it launches whereas before it failed immediately.

oleyb avatar Jun 12 '23 14:06 oleyb

I was able to get Notepad to launch, however, I can't seem to be able to actually run any games. Getting this notable error in the logs: Assertion failed: (GFXTHandle && "Failed to dlopen D3DMetal"), function D3DRMDispatch_Init_block_invoke, file shared.mm, line 694. I am trying to run a game off an external drive (as I don't have space on my internal one). Using macOS 13.4 (22F66) on Macmini8,1 (2018)

Piipperi avatar Jun 12 '23 15:06 Piipperi

I have the same behaviour. Always present in the logs. 0068:err:module:open_builtin_so_file failed to load .so lib "/Applications/Whisky.app/Contents/Resources/Libraries/Wine/lib/wine/x86_64-unix/wineusb.sys.so" & 00bc: thread_get_state failed on Apple Silicon - faking zero debug registers

The error with wineusb.sys shouldn't be an issue, because the behaviour is the same, when disabling/deleting the kernel driver in the services.

Patt92 avatar Jun 13 '23 15:06 Patt92

the new build fixed those errors, but now they are:

Whisky Version: pre-0.2.4 Date: Dienstag, 13. Juni 2023 um 18:02:19 Bottle Name: Win10 Wine Version: 7.7 Windows Version: win10 Bottle URL: /Users/pat/Library/Containers/com.isaacmarovitz.Whisky/Bottles/Win10

Arguments: start /unix /Volumes/mountediso/setup.exe

Environment: { }

Launched Wine (34711) Process exited with code 0

actually the way with homebrew from applegamingwiki works, but I would prefer the graphical version

Patt92 avatar Jun 13 '23 16:06 Patt92

I fixed it via clearing all related files and folder of old Whisky app first, such as '~/Library/Application Support/Whisky/...'. And drag new Whisky app to /Applications to restart steps, everything goes fine now.

AppCleaner (free) provides a simple way to help you to clean related files.

pilisir avatar Jun 17 '23 06:06 pilisir

may be it fits in here even if it is closed already. My System is based on Apple M1 Pro and MacOS 13.4.1 As admin I did the following: (1) installed XQuartz (-> brew install ––cask xquartz) (2) installed wine (-> brew install ––cask ––no-quarantine wine-stable) (3) installed winetricks (-> brew install winetricks) (4) dowloaded Setup-File (Airstudio -> https://www.jbmedia.eu/light-manager/download/) (5) opened terminal, cd to the download folder and run "wine64 airstudioSetup.exe"

In the Dock a wine64-preloader pops up and in the terminal I got the following messages: admin@MacBook-Pro downloads % wine64 airstudioSetup.exe preloader: Warning: failed to reserve range 0000000000010000-0000000000110000 preloader: Warning: failed to reserve range 0000000000010000-0000000000110000 preloader: Warning: failed to reserve range 0000000000010000-0000000000110000 0120:err:environ:init_peb starting L"Z:\Users\admin\downloads\airstudioSetup.exe" in experimental wow64 mode preloader: Warning: failed to reserve range 0000000000010000-0000000000110000 0128:err:environ:init_peb starting L"C:\users\admin\Temp\is-OSIJI.tmp\airstudioSetup.tmp" in experimental wow64 mode 0128:fixme:imm:ImeSetActiveContext (00020068, 1): stub 0128:fixme:imm:ImmReleaseContext (00020064, 00020068): stub 0128:fixme:win:DisableProcessWindowsGhosting : stub 0128:fixme:graphics:ShutdownBlockReasonDestroy (00020064): stub 0128:fixme:graphics:ShutdownBlockReasonCreate (00020064, L"Installiere ..."): stub 0128:fixme:msg:ChangeWindowMessageFilterEx 00010078 c047 1 00000000

Nothing more happens, the terminal as well as the wine64-preloader have to be killed manually.

HobbyDev1 avatar Jul 09 '23 12:07 HobbyDev1