Boxedwine icon indicating copy to clipboard operation
Boxedwine copied to clipboard

Reproducing the emscripten builds fails: wine: Unhandled privileged instruction at address 0xd0dd8382 (thread 0021)

Open kyr0 opened this issue 5 months ago • 7 comments

Hi,

I'm currently trying to reproduce the emscripten builds. The compile works fine; but when I serve the files (via Vite, but that has nothing to do with the issue) and open Chrome at: http://localhost:5173/?root=boxedwine&p=c:/files/onedd.exe&app=videodd1.zip

I get (console):

Starting ...
Command line arguments: "./this.program" "-root" "/root" "-zip" "boxedwine.zip" "-mount" "videodd1.zip" "/home/username/.wine/dosdevices/c:/files" "-mount_drive" "/d_drive" "d" "-w" "/home/username/.wine/dosdevices/c:/files" "/bin/wine" "c:/files/onedd.exe"
Using root directory: /root
Using zip file system: boxedwine.zip
Loaded boxedwine.zip in 23 ms
Mounted videodd1.zip in 0 ms
Launching "/bin/wine" "c:/files/onedd.exe" 
wine: Unhandled privileged instruction at address 0xd0dd8382 (thread 0021), starting debugger...
err:module:attach_process_dlls "wined3d.dll" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\files\\onedd.exe" failed, status c0000096
wine: Unhandled privileged instruction at address 0xd1408382 (thread 000d), starting debugger...

Which I find spooky.. I downloaded the exact files I found in the online demo: https://www.boxedwine.org/app/videodd1-directdraw-benchmark/

Namely: https://www.boxedwine.org/boxedwine/apps/videodd1.zip

And: https://www.boxedwine.org/boxedwine/fs/fullWine1.7.55-v8.zip

  • I saved fullWine1.7.55-v8.zip as boxedwine.zip and it loads (as we can see)
  • I saved videodd1.zip as videodd1.zip in the folder and it also loads

I obviously configured the params correctly, because the executable is loaded and executed. But attempting to load any DLL fails.

I suspect that it either tries to loopup the DLL from a place it should not, so that it cannot be loaded and the instruction pointer now points to the wrong area in memory... OR something is weird with the current code... OR the wine version in fullWine1.7.55-v8.zip is somehow incompatible with the current impl... or?

I'm not sure where to continue. Would be cool to get this up and running because I'd like to dive deeper into the emscripten optimization (I'm quite familiar with some SIMD128 vectorization tweaks); but I'd need some basic setup working to be motivated and able to learn and get familiar with the codebase..

kyr0 avatar Jul 24 '25 00:07 kyr0