ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.36k stars 233 forks source link

Wine + Discord #393

Open Pythonic456 opened 3 years ago

Pythonic456 commented 3 years ago

Wine version: 5.13 from Pi-Apps Box86 version: v0.2.3

Discord setup file: https://dl.discordapp.net/distro/app/stable/win/x86/1.0.9002/DiscordSetup.exe

This issue is not necessarily going to be closed, instead it is meant for progress updates on running Discord with Box86.

Pythonic456 commented 3 years ago

Hardware: Raspberry Pi 4B (4G of RAM), 64G SD Card

Terminal output running wine DiscordSetup.exe:

pi@raspberrypi4b:~/Downloads $ wine DiscordSetup.exe 
Box86 with Dynarec v0.2.3 53a647af built on Jun  6 2021 00:03:18
Box86 with Dynarec v0.2.3 53a647af built on Jun  6 2021 00:03:18
Box86 with Dynarec v0.2.3 53a647af built on Jun  6 2021 00:03:18
0024:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
0024:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0031DC5C
0024:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\ieframe.dll"
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E79C) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E714) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000019-0000-0000-c000-000000000046} 00819BA8) interface not supported
0024:fixme:ver:GetCurrentPackageId (0031FE34 00000000): stub
pi@raspberrypi4b:~/Downloads $ 00e0:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
00e0:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0031DC5C
00e0:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\ieframe.dll"
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E79C) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E714) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000019-0000-0000-c000-000000000046} 00819DD0) interface not supported
00e0:fixme:ver:GetCurrentPackageId (0031FE34 00000000): stub
010c:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
010c:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0031DC5C
010c:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\ieframe.dll"
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E79C) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E714) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000019-0000-0000-c000-000000000046} 0081C0F0) interface not supported
010c:fixme:ver:GetCurrentPackageId (0031FE34 00000000): stub
0138:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
0138:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0031DC5C
0138:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\ieframe.dll"
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E79C) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E714) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000019-0000-0000-c000-000000000046} 0081C110) interface not supported
0138:fixme:ver:GetCurrentPackageId (0031FE34 00000000): stub
0164:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
0164:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0031DC5C
0164:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\ieframe.dll"
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E79C) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E714) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000019-0000-0000-c000-000000000046} 008264F0) interface not supported
0164:fixme:ver:GetCurrentPackageId (0031FE34 00000000): stub
0190:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
0190:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0031DC5C
0190:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\ieframe.dll"
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E79C) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E714) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000019-0000-0000-c000-000000000046} 00828590) interface not supported

. . .

00cc:fixme:ver:GetCurrentPackageId (0031FE34 00000000): stub
00f4:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevationType, ...) semi-stub
00f4:fixme:ieframe:DllGetClassObject {9ba05972-f6a8-11cf-a442-00a0c90a8f39} {00000001-0000-0000-c000-000000000046} 0031DC5C
00f4:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\ieframe.dll"
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E79C) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000003-0000-0000-c000-000000000046} 0031E714) interface not supported
0050:fixme:explorer:webbrowser_QueryInterface (41CCFD0C)->({00000019-0000-0000-c000-000000000046} 0083E950) interface not supported
^C

Just repeats the same error/warning repeatedly, with slight variants (of what I assume to be either a memory error code/machine error code).

ptitSeb commented 3 years ago

Does it works with actual x86 linux and wine? It looks like a legit wine error.

Hacker1245 commented 3 years ago

Wouldn't it make more sense to try running the Linux version of Discord?

Pythonic456 commented 3 years ago

Does it works with actual x86 linux and wine? It looks like a legit wine error.

I will test this ASAP.

Pythonic456 commented 3 years ago

Wouldn't it make more sense to try running the Linux version of Discord?

It is 64bit so no it wouldn't work yet. When box64 comes out, there is a possibility that it will work with that. I am aware that electron-related stuff seems to be hard to get working with box86, but I am hoping ptitSeb will get it working. 👍

Pythonic456 commented 3 years ago

The WineDB status is currently Garbage, but this seems to have been tested with a very old version of wine.

Pythonic456 commented 3 years ago

https://stackoverflow.com/questions/67917713/wine-5-13-0050fixmeexplorerwebbrowser-queryinterface-interface-not-sup

Hacker1245 commented 3 years ago

Wouldn't it make more sense to try running the Linux version of Discord?

It is 64bit so no it wouldn't work yet. When box64 comes out, there is a possibility that it will work with that. I am aware that electron-related stuff seems to be hard to get working with box86, but I am hoping ptitSeb will get it working. +1

ah right, forgot the Linux version is 64 bit only.

chills340 commented 3 years ago

The official Discord is an electron webapp right? Errors look like its trying to call IE have you installed the browser via winetricks to see if that works? BOX86_NOBANNER=1 winetricks ie8

Pythonic456 commented 3 years ago

@chills340 I ran your suggestion, and same result, repeating errors. WINE Windows version: 10 IE: 8 Box86: Latest OS: RPi OS

chills340 commented 3 years ago

Alright I just re-flashed my OS and i'll give it a try in a few and see if i can figure anything out. However, I still don't think discord through wine will be any better than spacingbats port.

Pythonic456 commented 3 years ago

spacingbats version is just the web app, not the app itself.

chills340 commented 3 years ago

OK some progress to report. I installed wine staging 5.15 ie8 launched but discord still had those repeat errors. my next step was to install BOX86_NOBANNER=1 winetricks wininet the MS windows internet api. This ended the repeating of that error and now BOX86_LOG=1 wine DiscordSetup shows some needed libs. I don't wanna hunt down each ATM but should get ya pointed in the right direction.

discordlog.txt

edit: well now ie8 doesn't wanna load when i try to launch it. other stuff works. could be the API broke something.

Pythonic456 commented 3 years ago

Thanks for the progress report. Could you try it with the latest version of wine? And if you could explain how to get the latest wine i386 binary too on a raspberry pi (I currently have 5.13 from Pi-Apps)👍

chills340 commented 3 years ago

The wine build directions are here ( https://github.com/ptitSeb/box86/blob/master/docs/X86WINE.md ) you'd have to check the winehq site and change out the name of the .deb to whatever version you want. There might be prepackaged i386 versions of newer builds somewhere but i'm not sure. I might play around with it more later.

Painadath commented 3 years ago

Any progress?

WheezyE commented 3 years ago

Any progress?

Maybe give it a shot and see? If things don’t run, a bug report could be helpful

ptitSeb commented 2 years ago

So it's running now? I'll close the ticket soon if nothing happens.

Pythonic456 commented 2 years ago

I will check tomorrow and let you know.