MagicaVoxel with wine 7 ends up in unhandled exception

Questions about Wine on Linux
Locked
cryptonaut01
Newbie
Newbie
Posts: 4
Joined: Tue Apr 19, 2022 6:57 am

MagicaVoxel with wine 7 ends up in unhandled exception

Post by cryptonaut01 »

Hey.
I am trying to get MagicaVoxel running on the Chromebook (with Debian 10 linux container activated) of my daugther. Already spend a few days with the wine package from the distro's repo and ended up in installing the wine 7.0 from the winehq repo. But without sucess yet. As far as I know the tool needs .NET framework and the c++ redistributable's - therefore I installed those via winetricks. As the tool has a win32 + win64 version available, I tried both of them via definition of WINEPREFIX + WINEARCH upfront. Environment itself seems to work as I can use Irfanview for example ...But now I am stuck. What does the following backtrace tell ? Any support is welcome.
Thx in advance.
Oli

Code: Select all

Unhandled exception: page fault on execute access to 0x004f7000 in 32-bit code (0x004f6fff).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:004f6fff ESP:0021ff34 EBP:0021ff48 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:7ffd1000 EBX:7ffd1000 ECX:00000000 EDX:004dc4cd
 ESI:00000000 EDI:00000000
Stack dump:
0x0021ff34:  7b62db20 7ffd1000 7bc56f77 7bc56f77
0x0021ff44:  7ffd1000 0021ff5c 7bc56f77 7ffd1000
0x0021ff54:  7ffd1000 00000000 0021ffec 7bc57630
0x0021ff64:  7b62db10 004dc4cd 7ffd1000 7bc7287c
0x0021ff74:  004dc4cd 7ffd1000 00000000 00000000
0x0021ff84:  00000000 00000000 ffffffff 7bc62430
Backtrace:
=>0 0x004f6fff in magicavoxel (+0xf6fff) (0x0021ff48)
  1 0x7bc56f77 RtlWakeConditionVariable+0x57(variable=7B62DB10) [Z:\usr\src\packages\BUILD\dlls\ntdll\sync.c:766] in ntdll (0x0021ff5c)
  2 0x7bc57630 RtlCreateUserThread(entry=004DC4CD, arg=7FFD1000) [Z:\usr\src\packages\BUILD\dlls\ntdll\thread.c:261] in ntdll (0x0021ffec)
0x004f6fff magicavoxel+0xf6fff: addb    %dh,0x1a(%eax)
Modules:
Module  Address                 Debug info      Name (25 modules)
PE      00400000-005d6000       Export          magicavoxel
PE      005e0000-00839000       Deferred        comdlg32
PE      00840000-00cbf000       Deferred        ole32
PE      00cc0000-00e0e000       Deferred        combase
PE      61740000-6182a000       Deferred        advapi32
PE      62fc0000-631f0000       Deferred        rpcrt4
PE      63480000-6349c000       Deferred        version
PE      63bc0000-63c05000       Deferred        shcore
PE      64a40000-64b5c000       Deferred        shlwapi
PE      663c0000-66483000       Deferred        winspool
PE      66b00000-66b5c000       Deferred        win32u
PE      67ec0000-68ca4000       Deferred        shell32
PE      6a280000-6a4e6000       Deferred        msvcrt
PE      6bc00000-6bca4000       Deferred        sechost
PE      6bcc0000-6bea0000       Deferred        setupapi
PE      6c9c0000-6cbaa000       Deferred        gdi32
PE      6cc40000-6d0aa000       Deferred        comctl32
PE      6ed00000-6f4d1000       Deferred        user32
PE      70b40000-70dfe000       Deferred        ucrtbase
PE      71200000-7124c000       Deferred        imm32
PE      7a840000-7a844000       Deferred        opengl32
PE      7b000000-7b2f7000       Deferred        kernelbase
PE      7b600000-7b91d000       Deferred        kernel32
PE      7bc00000-7be83000       Dwarf-4         ntdll
PE      7e5e0000-7e5e4000       Deferred        winex11
Threads:
process  tid      prio (all id:s are in hex)
00000020 (D) Z:\mnt\chromeos\MyFiles\linux\MagicaVoxel-0.99.4.2-alpha-win32\MagicaVoxel.exe
        00000024    0 <==
        0000009c    0
        000000a0    0
000000a4 plugplay.exe
        000000a8    0
        000000c0    0
        000000c4    0
        000000c8    0
000000d4 rpcss.exe
        000000d8    0
        000000e0    0
        000000e4    0
        000000e8    0
        000000ec    0
        00000110    0
000000f8 conhost.exe
        000000fc    0
00000100 explorer.exe
        00000104    0
        00000108    0
        0000010c    0
System information:
    Wine build: wine-7.0
    Platform: i386
    Version: Windows 7
    Host system: Linux
    Host version: 5.10.101-14960-gb2e5df468a73
    
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: MagicaVoxel with wine 7 ends up in unhandled exception

Post by jkfloris »

The program start in a clean wine prefix. (without any winetrick).
If this is not the case for you, please post the complete terminal output.
https://wiki.winehq.org/FAQ#How_can_I_g ... tput.29.3F
cryptonaut01
Newbie
Newbie
Posts: 4
Joined: Tue Apr 19, 2022 6:57 am

Re: MagicaVoxel with wine 7 ends up in unhandled exception

Post by cryptonaut01 »

As requested I created a new clean prefix via

Code: Select all

 WINEPREFIX="/home/audischrauber/.wine-clean" WINEARCH=win32 wine winecfg
and run MagicaVoxel 32bit version with output parsed to a log file

Code: Select all

WINEPREFIX="/home/audischrauber/.wine-clean" WINEARCH=win32 wine /mnt/chromeos/MyFiles/linux/MagicaVoxel-0.99.4.2-alpha-win32/MagicaVoxel.exe &> log.txt
Result:

Code: Select all

wine: Unhandled page fault on execute access to 004F7000 at address 004F6FFF (thread 0024), starting debugger...
0100:fixme:imm:ImeSetActiveContext (0x5a0298, 1): stub
0100:fixme:imm:ImmReleaseContext (00010062, 005A0298): stub
0080:fixme:imm:ImeSetActiveContext (0x4b3040, 0): stub
0080:fixme:imm:ImmReleaseContext (00010020, 004B3040): stub
Unhandled exception: page fault on execute access to 0x004f7000 in 32-bit code (0x004f6fff).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:004f6fff ESP:0021ff34 EBP:0021ff48 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:7ffd1000 EBX:7ffd1000 ECX:00000000 EDX:004dc4cd
 ESI:00000000 EDI:00000000
Stack dump:
0x0021ff34:  7b62db20 7ffd1000 7bc56f77 7bc56f77
0x0021ff44:  7ffd1000 0021ff5c 7bc56f77 7ffd1000
0x0021ff54:  7ffd1000 00000000 0021ffec 7bc57630
0x0021ff64:  7b62db10 004dc4cd 7ffd1000 7bc7287c
0x0021ff74:  004dc4cd 7ffd1000 00000000 00000000
0x0021ff84:  00000000 00000000 ffffffff 7bc62430
Backtrace:
=>0 0x004f6fff in magicavoxel (+0xf6fff) (0x0021ff48)
  1 0x7bc56f77 RtlWakeConditionVariable+0x57(variable=7B62DB10) [Z:\usr\src\packages\BUILD\dlls\ntdll\sync.c:766] in ntdll (0x0021ff5c)
  2 0x7bc57630 RtlCreateUserThread(entry=004DC4CD, arg=7FFD1000) [Z:\usr\src\packages\BUILD\dlls\ntdll\thread.c:261] in ntdll (0x0021ffec)
0x004f6fff magicavoxel+0xf6fff: addb	%dh,0x1a(%eax)
Modules:
Module	Address			Debug info	Name (25 modules)
PE	00400000-005d6000	Export          magicavoxel
PE	005e0000-00839000	Deferred        comdlg32
PE	00840000-00cbf000	Deferred        ole32
PE	00cc0000-00e0e000	Deferred        combase
PE	61740000-6182a000	Deferred        advapi32
PE	62fc0000-631f0000	Deferred        rpcrt4
PE	63480000-6349c000	Deferred        version
PE	63bc0000-63c05000	Deferred        shcore
PE	64a40000-64b5c000	Deferred        shlwapi
PE	663c0000-66483000	Deferred        winspool
PE	66b00000-66b5c000	Deferred        win32u
PE	67ec0000-68ca4000	Deferred        shell32
PE	6a280000-6a4e6000	Deferred        msvcrt
PE	6bc00000-6bca4000	Deferred        sechost
PE	6bcc0000-6bea0000	Deferred        setupapi
PE	6c9c0000-6cbaa000	Deferred        gdi32
PE	6cc40000-6d0aa000	Deferred        comctl32
PE	6ed00000-6f4d1000	Deferred        user32
PE	70b40000-70dfe000	Deferred        ucrtbase
PE	71200000-7124c000	Deferred        imm32
PE	7a840000-7a844000	Deferred        opengl32
PE	7b000000-7b2f7000	Deferred        kernelbase
PE	7b600000-7b91d000	Deferred        kernel32
PE	7bc00000-7be83000	Dwarf-4         ntdll
PE	7e600000-7e604000	Deferred        winex11
Threads:
process  tid      prio (all id:s are in hex)
00000020 (D) Z:\mnt\chromeos\MyFiles\linux\MagicaVoxel-0.99.4.2-alpha-win32\MagicaVoxel.exe
	00000024    0 <==
	00000104    0
00000038 services.exe
	0000003c    0
	00000040    0
	0000004c    0
	0000006c    0
	000000a4    0
	000000c0    0
	000000d8    0
00000044 winedevice.exe
	00000048    0
	00000054    0
	00000058    0
	0000005c    0
	00000060    0
	000000cc    0
00000064 winedevice.exe
	00000068    0
	00000070    0
	00000074    0
	00000078    0
	00000084    0
	00000088    0
	0000008c    0
0000007c explorer.exe
	00000080    0
	00000098    0
	0000009c    0
00000090 plugplay.exe
	00000094    0
	000000ac    0
	000000b0    0
	000000b4    0
000000b8 svchost.exe
	000000bc    0
	000000c4    0
	000000c8    0
000000d0 rpcss.exe
	000000d4    0
	000000dc    0
	000000e0    0
	000000e4    0
	000000e8    0
	000000ec    0
000000f4 conhost.exe
	000000f8    0
System information:
    Wine build: wine-7.0
    Platform: i386
    Version: Windows 7
    Host system: Linux
    Host version: 5.10.106-15270-g0b4f789ff65e
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: MagicaVoxel with wine 7 ends up in unhandled exception

Post by jkfloris »

I there any difference if you move the program inside the wineprefix and/or start the program in a different way?

Code: Select all

cd "/mnt/chromeos/MyFiles/linux/MagicaVoxel-0.99.4.2-alpha-win32/"
WINEPREFIX="/home/audischrauber/.wine-clean" wine MagicaVoxel.exe

# or:
WINEPREFIX="/home/audischrauber/.wine-clean" wine start /unix "/mnt/chromeos/MyFiles/linux/MagicaVoxel-0.99.4.2-alpha-win32/MagicaVoxel.exe"
Is the GPU in the Chromebook powerful enough to run the program?
cryptonaut01
Newbie
Newbie
Posts: 4
Joined: Tue Apr 19, 2022 6:57 am

Re: MagicaVoxel with wine 7 ends up in unhandled exception

Post by cryptonaut01 »

Tried both. Makes no difference. Still not working.

Code: Select all

$ WINEPREFIX="/home/audischrauber/.wine-clean" wine MagicaVoxel.exe
wine: Unhandled page fault on execute access to 004F7000 at address 004F6FFF (thread 0024), starting debugger...
0118:fixme:imm:ImeSetActiveContext (0x5a0750, 1): stub
0118:fixme:imm:ImmReleaseContext (00010062, 005A0750): stub
0104:fixme:imm:ImeSetActiveContext (0x4b2ec8, 0): stub
0104:fixme:imm:ImmReleaseContext (00020032, 004B2EC8): stub
Unhandled exception: page fault on execute access to 0x004f7000 in 32-bit code (0x004f6fff).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:004f6fff ESP:0021ff34 EBP:0021ff48 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:7ffd1000 EBX:7ffd1000 ECX:00000000 EDX:004dc4cd
 ESI:00000000 EDI:00000000
Stack dump:
0x0021ff34:  7b62db20 7ffd1000 7bc56f77 7bc56f77
0x0021ff44:  7ffd1000 0021ff5c 7bc56f77 7ffd1000
0x0021ff54:  7ffd1000 00000000 0021ffec 7bc57630
0x0021ff64:  7b62db10 004dc4cd 7ffd1000 7bc7287c
0x0021ff74:  004dc4cd 7ffd1000 00000000 00000000
0x0021ff84:  00000000 00000000 ffffffff 7bc62430
Backtrace:
=>0 0x004f6fff in magicavoxel (+0xf6fff) (0x0021ff48)
  1 0x7bc56f77 RtlWakeConditionVariable+0x57(variable=7B62DB10) [Z:\usr\src\packages\BUILD\dlls\ntdll\sync.c:766] in ntdll (0x0021
ff5c)
  2 0x7bc57630 RtlCreateUserThread(entry=004DC4CD, arg=7FFD1000) [Z:\usr\src\packages\BUILD\dlls\ntdll\thread.c:261] in ntdll (0x0
021ffec)
0x004f6fff magicavoxel+0xf6fff: addb    %dh,0x1a(%eax)
Modules:
Module  Address                 Debug info      Name (25 modules)
PE      00400000-005d6000       Export          magicavoxel
PE      005e0000-00839000       Deferred        comdlg32
PE      00840000-00cbf000       Deferred        ole32
PE      00cc0000-00e0e000       Deferred        combase
PE      61740000-6182a000       Deferred        advapi32
PE      62fc0000-631f0000       Deferred        rpcrt4
PE      63480000-6349c000       Deferred        version
PE      63bc0000-63c05000       Deferred        shcore
PE      64a40000-64b5c000       Deferred        shlwapi
PE      663c0000-66483000       Deferred        winspool
PE      66b00000-66b5c000       Deferred        win32u
PE      67ec0000-68ca4000       Deferred        shell32
PE      6a280000-6a4e6000       Deferred        msvcrt
PE      6bc00000-6bca4000       Deferred        sechost
PE      6bcc0000-6bea0000       Deferred        setupapi
PE      6c9c0000-6cbaa000       Deferred        gdi32
PE      6cc40000-6d0aa000       Deferred        comctl32
PE      6ed00000-6f4d1000       Deferred        user32
PE      70b40000-70dfe000       Deferred        ucrtbase
PE      71200000-7124c000       Deferred        imm32
PE      7a840000-7a844000       Deferred        opengl32
PE      7b000000-7b2f7000       Deferred        kernelbase
PE      7b600000-7b91d000       Deferred        kernel32
PE      7bc00000-7be83000       Dwarf-4         ntdll
PE      7e720000-7e724000       Deferred        winex11
Threads:
process  tid      prio (all id:s are in hex)
00000020 (D) Z:\mnt\chromeos\MyFiles\linux\MagicaVoxel-0.99.4.2-alpha-win32\MagicaVoxel.exe
        00000024    0 <==
        0000011c    0
00000038 services.exe
        0000003c    0
        00000040    0
        0000004c    0
        0000006c    0
        00000078    0
        000000a8    0
        000000c4    0
        000000dc    0
00000044 winedevice.exe
        00000048    0
        00000054    0
        00000058    0
        0000005c    0
        00000060    0
        000000d0    0
00000064 winedevice.exe
        00000068    0
        00000070    0
        00000074    0
        0000007c    0
        00000088    0
        0000008c    0
        00000090    0
00000094 plugplay.exe
        00000098    0
        000000b0    0
        000000b4    0
        000000b8    0
000000bc svchost.exe
        000000c0    0
        000000c8    0
        000000cc    0
000000d4 rpcss.exe
        000000d8    0
        000000e0    0
        000000e4    0
        000000e8    0
        000000ec    0
        00000110    0
000000f8 conhost.exe
        000000fc    0
00000100 explorer.exe
        00000104    0
        00000108    0
        0000010c    0
System information:
    Wine build: wine-7.0
    Platform: i386
    Version: Windows 7
    Host system: Linux
    Host version: 5.10.106-15270-g0b4f789ff65e
audischrauber@penguin:/mnt/chromeos/MyFiles/linux/MagicaVoxel-0.99.4.2-alpha-win32$ WINEPREFIX="/home/audischrauber/.wine-clean" wine start /unix MagicaVoxel.exe
audischrauber@penguin:/mnt/chromeos/MyFiles/linux/MagicaVoxel-0.99.4.2-alpha-win32$ wine: Unhandled page fault on execute access to 004F7000 at address 004F6FFF (thread 0108), starting debugger...
0128:fixme:imm:ImeSetActiveContext (0x5a0790, 1): stub
0128:fixme:imm:ImmReleaseContext (00010062, 005A0790): stub
0110:fixme:imm:ImeSetActiveContext (0x4b2f00, 0): stub
0110:fixme:imm:ImmReleaseContext (00020032, 004B2F00): stub
Regarding the GPU ... The chromebook has an Intel Graphics UHD 600 ... and I have an wine / MagicVoxel instance running on a ACEPC mini-pc with Intel HD Grahics 500 build-in. Therefore should not be the issue / trigger.

Is there any indication in the log ? Not sure what the dump itself is stating ...
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: MagicaVoxel with wine 7 ends up in unhandled exception

Post by jkfloris »

Unfortunately, I can't tell from the output what exactly is going wrong.
The fact that you can run the program on another computer makes me suspect that the solution must be found in the Chromebook settings. Did you enable GPU acceleration for the Debian container?

Code: Select all

glxinfo -B
cryptonaut01
Newbie
Newbie
Posts: 4
Joined: Tue Apr 19, 2022 6:57 am

Re: MagicaVoxel with wine 7 ends up in unhandled exception

Post by cryptonaut01 »

Yes. GPU acceleration is enabled:

Code: Select all

audischrauber@penguin:~$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0x1af4)
    Device: virgl (0x1010)
    Version: 20.3.5
    Accelerated: yes
    Video memory: 0MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: virgl
OpenGL core profile version string: 4.3 (Core Profile) Mesa 20.3.5
OpenGL core profile shading language version string: 4.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 20.3.5
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: MagicaVoxel with wine 7 ends up in unhandled exception

Post by jkfloris »

Already spend a few days with the wine package from the distro's repo and ended up in installing the wine 7.0 from the winehq repo.
When you installed the Debian Wine packages, what didn't work?
Locked