Page 1 of 1

winbox stopped working on my Mac

Posted: Wed Apr 26, 2023 12:13 pm
by thanpolas
I had been running winbox using wine for years on my macbook pro, it's only recently that it stopped working and I am trying to find out why...

* I have upgraded wine to the latest stable v8.0
* I have downloaded a fresh new copy of winbox.exe v3.37
* Made sure permissions from macos are allowed via the "Privacy & Security" tab of settings
* MacOS Ventura v13.3.1, M1 chip

This is my iMac that has the problem... I can still run winbox on my macbook pro, which uses wine 6.0.2 and the same MacOS version (13.3.1), so I am guessing this is a problem particular to my iMac...

When I run winbox from the command line via wine, I get the error bellow:
$ wine64 winbox64.exe
0074: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
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0024:err:dnsapi:DllMain No libresolv support, expect problems
0024:err:module:LdrInitializeThunk "ws2_32.dll" failed to initialize, aborting
0024:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\Users\\thanpolas\\Documents\\winbox\\winbox64.exe" failed, status c0000142
I've run out of ideas, any tips / help?

Re: winbox stopped working on my Mac

Posted: Fri Apr 28, 2023 8:58 pm
by BRCnet
Another one affected with the same problem.

Re: winbox stopped working on my Mac

Posted: Fri Apr 28, 2023 9:55 pm
by mkx
To me it looks like wine upgrade broke things ...

Re: winbox stopped working on my Mac

Posted: Mon May 01, 2023 10:29 am
by marsbeetle
Did you try the 32bit version of winbox ?

Re: winbox stopped working on my Mac

Posted: Tue May 02, 2023 7:30 pm
by walkingwithlee
Please Mikrotik come up with a solution here to have Winbox natively on MacOS (Apple Silicon) rather than on the mercy of Wine.

32 bit and 64 bit Winbox not working MacOS 13.3.1 for weeks now!

This dependancy is killing me

Re: winbox stopped working on my Mac

Posted: Wed May 03, 2023 7:19 pm
by kehrlein
Please Mikrotik come up with a solution here to have Winbox natively on MacOS (Apple Silicon) rather than on the mercy of Wine.

+1

Re: winbox stopped working on my Mac

Posted: Thu May 04, 2023 7:40 am
by vidhayakji79
I don't know which interfaces you're using or what is your exact set-up. But if you use it as a router with dhcp server, then yes better not change anything and just allow winbox on input of the firewall, or use vpn if its on a public network.

Re: winbox stopped working on my Mac

Posted: Wed May 10, 2023 11:25 am
by walkingwithlee
I don't know which interfaces you're using or what is your exact set-up. But if you use it as a router with dhcp server, then yes better not change anything and just allow winbox on input of the firewall, or use vpn if its on a public network.
Sorry but this is irrelevant to the thread. Winbox doesnt work, ie. it doesnt start/open....

Re: winbox stopped working on my Mac

Posted: Wed May 10, 2023 1:48 pm
by normis
winbox64.exe works fine with wine64 on macOS 13.3 and 13.4

Reinstall wine64 https://github.com/Gcenx/macOS_Wine_bui ... x86.tar.xz
Open "Wine devel"
Screenshot 2023-05-10 at 13.48.43.png

Re: winbox stopped working on my Mac

Posted: Wed May 10, 2023 5:08 pm
by walkingwithlee
winbox64.exe works fine with wine64 on macOS 13.3 and 13.4

Reinstall wine64 https://github.com/Gcenx/macOS_Wine_bui ... x86.tar.xz
Open "Wine devel"

Screenshot 2023-05-10 at 13.48.43.png
Wine issues on the last few 13.x builds. had issues with wine-devel with bad battery drain.

Anyone my point is Wine is a challenge and really asking Mikrotik for a native solution for Apple Silicon here not playing cat and mouse with Wine.

Re: winbox stopped working on my Mac

Posted: Thu May 11, 2023 8:29 am
by normis
Like I said, Wine 8.7 64bit works fine on M1 MBP. Just had the issue like in this thread, killed all wine processes, installed Wine 8.7 and working good now.

Re: winbox stopped working on my Mac

Posted: Fri May 12, 2023 11:48 am
by quezhou
Strongly demand a not wine macOS version of Winbox.

Re: winbox stopped working on my Mac

Posted: Fri May 12, 2023 4:56 pm
by walkingwithlee
Like I said, Wine 8.7 64bit works fine on M1 MBP. Just had the issue like in this thread, killed all wine processes, installed Wine 8.7 and working good now.
I appreciate that it works now but a few weeks ago it didnt. It still needs Rosetta and devel version of Wine.
Had other issues with Wine Devel killing my M1 battery in a few hours.

All I am asking for is a more native solution here and remove the dependancy on Wine

Re: winbox stopped working on my Mac

Posted: Fri May 12, 2023 8:32 pm
by optio
For those who want more convenient way to run windows apps using wine directly from MacOS Finder here is AppleScript which can be added into Automator app:
on run {input, parameters}
  if (count of input) > 0 then
    set exePath to POSIX path of item 1 of input as string
    set exeDir to characters 1 thru -((offset of "/" in (reverse of items of exePath as string)) + 1) of exePath as string
    do shell script "nohup bash -lc \"cd '" & exeDir & "' && wine64 '" & exePath & "'\" >/dev/null 2>&1 &"
  end if
  return input
end run
Create Automator app, ex: winrun.app with this script above and assign that app in "Get Info->Open With" for files with .exe extension.
Commands in do shell script... needs to be in PATH env. or add full path for these binaries in script.

I'm running with this Windows applications on Mac for a long time, its great for small programs like Winbox.

Re: winbox stopped working on my Mac

Posted: Wed May 24, 2023 11:43 am
by sabirrao33
This may be a dll error and can be solved by downloading ws2_32.dll file from the website and installing it in your system.

Re: winbox stopped working on my Mac

Posted: Wed May 24, 2023 12:56 pm
by thanpolas
I found the solution on a reddit comment:

You’ll need to use wine-devel as macOS Ventura 13.3 increased the size of some dylibs this screwed with how preloader works, this issue was already resolved in wine-devel see Bugzilla 54420

Re: winbox stopped working on my Mac

Posted: Wed May 24, 2023 6:31 pm
by optio
I found the solution on a reddit comment:

You’ll need to use wine-devel as macOS Ventura 13.3 increased the size of some dylibs this screwed with how preloader works, this issue was already resolved in wine-devel see Bugzilla 54420
I use Codeweavers wine mod., https://github.com/Gcenx/winecx, builds from https://github.com/Gcenx/WineskinServer, never had these problems on macOS.
$ wine --version
wine-7.7 (WineskinCX 22.0.1)

Re: winbox stopped working on my Mac

Posted: Wed May 24, 2023 6:34 pm
by optio
<unable to delete>