3D on ARM+Box86

Questions about Wine on Linux
Locked
dcatofm
Newbie
Newbie
Posts: 2
Joined: Fri Jul 14, 2023 9:11 am

3D on ARM+Box86

Post by dcatofm »

Code: Select all

_                       _        _
| |    ___   _ __   ___ | |_ __ _| |_ ___
| |   / _ \ | '_ \ / _ \| __/ _` | __/ _ \
| |__|  __/ | |_) | (_) | || (_| | || (_) |
|_____\___| | .__/ \___/ \__\__,_|\__\___/
            |_|
Welcome to Armbian 23.02.2 Jammy with Linux 6.1.11-meson64

No end-user support: untested automated build

System load:   31%              Up time:       7 days 16:52   Local users:   2
Memory usage:  32% of 1.89G     Zram usage:    9% of 2.94G    IP:            10.0.0.182
CPU temp:      73°C             Usage of /:    36% of 116G

Last login: Wed Jul 12 16:35:43 2023 from 10.0.0.142
kodi@lepotato:~$ uname -a
Linux lepotato 6.1.11-meson64 #23.02.2 SMP PREEMPT Sat Feb 18 00:07:55 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
kodi@lepotato:~$ wine --version
Box86 with Dynarec v0.3.1 3043f506 built on Mar 22 2023 07:26:35
wine-5.13
kodi@lepotato:~$
As with most Box86 installs at this point, I scoffed my wine from TwisterOS. I did originally try the Armbian version, but as I pretty much expected, it couldn't run x86 binaries.. I was a little surprised it couldn't even run its own taskmgr.exe but I can't say I was outright shocked. I installed the wine32 version with recommends, then removed wine without removing dependencies so the twister wine would (hopefully) have everything it needs.

2D is already working; tested with MidRadio, plays XG midis better than my Chromebook, which was a pleasant surprise.

So now I'm trying to go up to the next level, Need for Speed 4: High Stakes. It was a favorite in the old days and I was testing on the team that did the XP crack (since I had Win2K in the day.. it worked) and IP Lounge. This app is gold listed in the AppDB but I'm not having any luck in getting it running here. I'm not on that machine here so I'll write back with logs later, but the basic gist is D3D errors of one form or another. Different things I've tried have resulted in slightly different errors, but pretty all of them had to do with a graphics fail. I even tried the software renderer out of desperation and got an error that the video card was not recognized. I've tried everything on the AppDB page, plus the MESA_VERSION_OVERRIDE=4.5 (which is the one thing that got it to actually try). I've tried every render option built in the game, most hang at a black screen but the ones given in the AppDB page (nglide and dx7) will crash out gracefully. Like said, will post full logs when I get to it (will be kind of busy today) but I wanted to get this in here on the off chance someone knows about this and has a suggestion I haven't tried. I'm hoping (in one hand) it's something as simple as a library that didn't get a 32 bit (armhf) version installed but I'm also preparing for a grimmer reality.

Thank you for your time, more details forthcoming.
dcatofm
Newbie
Newbie
Posts: 2
Joined: Fri Jul 14, 2023 9:11 am

Re: 3D on ARM+Box86

Post by dcatofm »

Part 2: the details.
Today's adventure had me wondering what in the memory was working against me. I ended up rebooting a few times so I could be assured fresh and accurate errors.

Here are the logs...
(Directx 7)

Code: Select all


# First attempt (fresh boot), Dx7, WinXP

kodi@lepotato:~$ MESA_GL_VERSION_OVERIDE=4.5 wine C:\\Program\ Files\\Need\ For\ Speed\ High\ Stakes\\nfshs.exe
Box86 with Dynarec v0.3.1 3043f506 built on Mar 22 2023 07:26:35
Box86 with Dynarec v0.3.1 3043f506 built on Mar 22 2023 07:26:35
Box86 with Dynarec v0.3.1 3043f506 built on Mar 22 2023 07:26:35
003c:err:service:process_send_command service protocol error - failed to write pipe!
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 1053
0088:err:ntdll:RtlpWaitForCriticalSection section 7BCC55C0 "loader.c: loader_section" wait timed out in thread 0088, blocked by 0090, retrying (60 sec)
003c:err:service:process_send_command receiving command result timed out
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 1053
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
The instruction at 0x0054801f referenced memory at 0x00000010.
The memory could not be read.

# also, screenshot taken

# Second attempt, same command

0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  0 ()
  Serial number of failed request:  252
  Current serial number in output stream:  252
(nglide):

Code: Select all

# First attempt, nglide, WinXP

0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  0 ()
  Serial number of failed request:  252
  Current serial number in output stream:  252


# Second attempt, nglide, WinXP

0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  0 ()
  Serial number of failed request:  221
  Current serial number in output stream:  221


# nglide, fresh boot, win10

003c:err:service:process_send_command service protocol error - failed to write pipe!
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 1053
0084:err:ntdll:RtlpWaitForCriticalSection section 7BCC55C0 "loader.c: loader_section" wait timed out in thread 0084, blocked by 008c, retrying (60 sec)
003c:err:service:process_send_command receiving command result timed out
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 1053
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  0 ()
  Serial number of failed request:  221
  Current serial number in output stream:  221
(Software Renderer):

Code: Select all


# Actual first attempt on software renderer, but following nglide.. 
# Wasn't expecting GLX error, so rebooted after. 
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
X Error of failed request:  GLXBadFBConfig
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  0 ()
  Serial number of failed request:  221
  Current serial number in output stream:  221

# First attempt software renderer, fresh boot, ver is WinXP
003c:err:service:process_send_command service protocol error - failed to write pipe!
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 1053
0080:err:ntdll:RtlpWaitForCriticalSection section 7BCC55C0 "loader.c: loader_section" wait timed out in thread 0080, blocked by 0088, retrying (60 sec)
003c:err:service:process_send_command receiving command result timed out
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 1053
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0034:err:menubuilder:generate_associations error updating rb tree
wine: Unhandled page fault on read access to 00000010 at address 0054801F (thread 0024), starting debugger...
winedbg detected, not launching it!
0024:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 32 148" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger

# Second attempt

0034:err:menubuilder:generate_associations error updating rb tree
003c:err:service:process_send_command service protocol error - failed to write pipe!
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"PlugPlay" failed to start: 1053
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
wine: Unhandled page fault on read access to 00000010 at address 0054801F (thread 0024), starting debugger...
winedbg detected, not launching it!
0024:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 32 140" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger

# third attempt, set ver to Win10 
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0034:err:menubuilder:generate_associations error updating rb tree
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
wine: Unhandled page fault on read access to 00000010 at address 0054801F (thread 0024), starting debugger...
winedbg detected, not launching it!
0024:err:seh:start_debugger Couldn't start debugger L"winedbg --auto 32 148" (1359)
Read the Wine Developers Guide on how to set up winedbg or another debugger
Other things that might be notable:
Before using the mesa version override, I got a specific fail point error:

Code: Select all

DX7_setdisplay - error
 FILE dx7\dx7init.c, LINE 2025
Exception errors were screenshot.
Attachments
Software renderer, after nglide
Software renderer, after nglide
nfshs fail2(swr).jpg (17.61 KiB) Viewed 590 times
Software renderer, after reboot
Software renderer, after reboot
nfshs fail3(swr).jpg (18.49 KiB) Viewed 590 times
Dx7, after reboot
Dx7, after reboot
nfshs fail(dx7).jpg (16.77 KiB) Viewed 590 times
Locked