Unhandled Pagefault Exception in every wine application

Questions about Wine on Linux
Locked
Vralkhir
Level 1
Level 1
Posts: 6
Joined: Sun Feb 18, 2018 4:19 am

Unhandled Pagefault Exception in every wine application

Post by Vralkhir »

Hello wine-community,

I've lately run into a problem, when I uninstalled my patched wine-gallium-nine AUR package and replaced it with the standard wine 3.2.
Now, not a single one of my applications which used to work will start.
As an example, the following output is of Anno1602. I got no clue how to decipher the debug-output, could somebody point me in the right direction, please?

Code: Select all

0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f5f4,0x00000000), stub!
0030:err:d3d:wined3d_swapchain_update_swap_interval_cs wglSwapIntervalEXT failed to set swap interval 1 for context 0x188c38, last error 0x591
0030:err:d3d:wined3d_swapchain_update_swap_interval_cs wglSwapIntervalEXT failed to set swap interval 1 for context 0x18cba0, last error 0x591
wine: Unhandled page fault on read access to 0x000002a0 at address 0x498947 (thread 0009), starting debugger...
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
Unhandled exception: page fault on read access to 0x000002a0 in 32-bit code (0x00498947).
0032:fixme:dbghelp:elf_search_auxv can't find symbol in module
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:00498947 ESP:0032fc60 EBP:00000000 EFLAGS:00210202(  R- --  I   - - - )
 EAX:3f480000 EBX:0000001a ECX:00000000 EDX:000000a8
 ESI:00000258 EDI:00000320
Stack dump:
0x0032fc60:  004407d6 0032fc84 0032fc7c 00000320
0x0032fc70:  00000258 00000100 00000000 00486ba7
0x0032fc80:  3fa3d70a 00000258 0048eef7 00000320
0x0032fc90:  00000258 005d74c9 0056d190 00491679
0x0032fca0:  00000001 00000000 00000000 00000001
0x0032fcb0:  0032fec0 7b639000 00000100 00000000
Backtrace:
=>0 0x00498947 in 1602 (+0x98947) (0x00000000)
0x00498947: movl	0x0(%ecx,%edx,4),%eax
Modules:
Module	Address			Debug info	Name (100 modules)
PE	  400000-  721000	Export          1602
PE	10000000-1001b000	Deferred        smackw32
PE	28000000-28028000	Deferred        maxnet
PE	28100000-2810e000	Deferred        maxsound
ELF	76b8c000-7a800000	Deferred        libllvm-5.0.so
ELF	7a800000-7a93d000	Deferred        opengl32<elf>
  \-PE	7a820000-7a93d000	\               opengl32
ELF	7b400000-7b7e9000	Deferred        kernel32<elf>
  \-PE	7b420000-7b7e9000	\               kernel32
ELF	7bc00000-7bcf9000	Deferred        ntdll<elf>
  \-PE	7bc10000-7bcf9000	\               ntdll
ELF	7c000000-7c004000	Deferred        <wine-loader>
ELF	7c465000-7c46e000	Deferred        libffi.so.6
ELF	7c5e9000-7c605000	Deferred        libelf.so.1
ELF	7c605000-7c611000	Deferred        libdrm_amdgpu.so.1
ELF	7c611000-7c61f000	Deferred        libdrm_radeon.so.1
ELF	7c61f000-7c62f000	Deferred        libsensors.so.4
ELF	7c62f000-7d462000	Deferred        r600_dri.so
ELF	7d562000-7d5d8000	Deferred        libglx_mesa.so.0
ELF	7d77e000-7d788000	Deferred        libdrm_nouveau.so.2
ELF	7d788000-7d79d000	Deferred        libdrm.so.2
ELF	7d79d000-7d7b9000	Deferred        libxcb-glx.so.0
ELF	7d7b9000-7d818000	Deferred        libgldispatch.so.0
ELF	7d818000-7d83b000	Deferred        libglx.so.0
ELF	7d83b000-7d89b000	Deferred        libgl.so.1
ELF	7d89c000-7d8a2000	Deferred        libxcb-dri2.so.0
ELF	7d8a2000-7d8c0000	Deferred        libglapi.so.0
ELF	7da01000-7da04000	Deferred        libx11-xcb.so.1
ELF	7da04000-7da08000	Deferred        libxdamage.so.1
ELF	7da08000-7da0b000	Deferred        libxshmfence.so.1
ELF	7da0b000-7da13000	Deferred        libxcb-sync.so.1
ELF	7da13000-7da1c000	Deferred        libxcb-xfixes.so.0
ELF	7da1c000-7da38000	Deferred        libgcc_s.so.1
ELF	7da5a000-7da61000	Deferred        libxfixes.so.3
ELF	7da61000-7da6d000	Deferred        libxcursor.so.1
ELF	7da6d000-7da80000	Deferred        libxi.so.6
ELF	7da80000-7da84000	Deferred        libxcomposite.so.1
ELF	7da84000-7da91000	Deferred        libxrandr.so.2
ELF	7da91000-7da9d000	Deferred        libxrender.so.1
ELF	7da9d000-7daa4000	Deferred        libxxf86vm.so.1
ELF	7daa4000-7daab000	Deferred        libxdmcp.so.6
ELF	7daab000-7dad6000	Deferred        libxcb.so.1
ELF	7dad6000-7dc23000	Deferred        libx11.so.6
ELF	7dc23000-7dc38000	Deferred        libxext.so.6
ELF	7dc39000-7dc3d000	Deferred        libxcb-present.so.0
ELF	7dc3d000-7dc41000	Deferred        libxcb-dri3.so.0
ELF	7dc65000-7dc9d000	Deferred        uxtheme<elf>
  \-PE	7dc70000-7dc9d000	\               uxtheme
ELF	7dc9d000-7dd2a000	Deferred        winex11<elf>
  \-PE	7dcb0000-7dd2a000	\               winex11
ELF	7dd94000-7ddc6000	Deferred        libexpat.so.1
ELF	7ddc6000-7de11000	Deferred        libfontconfig.so.1
ELF	7de11000-7de89000	Deferred        libpcre.so.1
ELF	7de89000-7dfbb000	Deferred        libglib-2.0.so.0
ELF	7dfbb000-7e060000	Deferred        libharfbuzz.so.0
ELF	7e060000-7e09e000	Deferred        libpng16.so.16
ELF	7e09e000-7e0af000	Deferred        libbz2.so.1.0
ELF	7e0af000-7e0c8000	Deferred        libz.so.1
ELF	7e0c8000-7e195000	Deferred        libfreetype.so.6
ELF	7e195000-7e203000	Deferred        libncursesw.so.6
ELF	7e203000-7e207000	Deferred        libxinerama.so.1
ELF	7e268000-7e2b3000	Deferred        dsound<elf>
  \-PE	7e270000-7e2b3000	\               dsound
ELF	7e2b3000-7e368000	Deferred        msvcrt<elf>
  \-PE	7e2d0000-7e368000	\               msvcrt
ELF	7e368000-7e3ae000	Deferred        usp10<elf>
  \-PE	7e370000-7e3ae000	\               usp10
ELF	7e3ae000-7e4e5000	Deferred        comctl32<elf>
  \-PE	7e3c0000-7e4e5000	\               comctl32
ELF	7e4e5000-7e510000	Deferred        msacm32<elf>
  \-PE	7e4f0000-7e510000	\               msacm32
ELF	7e510000-7e591000	Deferred        rpcrt4<elf>
  \-PE	7e520000-7e591000	\               rpcrt4
ELF	7e591000-7e6eb000	Deferred        ole32<elf>
  \-PE	7e5b0000-7e6eb000	\               ole32
ELF	7e6eb000-7e7a4000	Deferred        winmm<elf>
  \-PE	7e6f0000-7e7a4000	\               winmm
ELF	7e7a4000-7e7e4000	Deferred        dplayx<elf>
  \-PE	7e7b0000-7e7e4000	\               dplayx
ELF	7e7e4000-7e92c000	Deferred        wined3d<elf>
  \-PE	7e7f0000-7e92c000	\               wined3d
ELF	7e92c000-7e9a2000	Deferred        ddraw<elf>
  \-PE	7e930000-7e9a2000	\               ddraw
ELF	7e9a2000-7ea1a000	Deferred        advapi32<elf>
  \-PE	7e9b0000-7ea1a000	\               advapi32
ELF	7ea1a000-7eb47000	Deferred        gdi32<elf>
  \-PE	7ea30000-7eb47000	\               gdi32
ELF	7eb47000-7ed28000	Deferred        user32<elf>
  \-PE	7eb60000-7ed28000	\               user32
ELF	7eec3000-7eed7000	Deferred        libnss_files.so.2
ELF	7eed7000-7ef9b000	Deferred        libm.so.6
ELF	7ef9c000-7efc0000	Deferred        imm32<elf>
  \-PE	7efa0000-7efc0000	\               imm32
ELF	7efe6000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f7ac4000-f7ac9000	Deferred        libdl.so.2
ELF	f7acb000-f7ad0000	Deferred        libxau.so.6
ELF	f7b2e000-f7d01000	Deferred        libc.so.6
ELF	f7d01000-f7d20000	Deferred        libpthread.so.0
ELF	f7ed9000-f7f00000	Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Anno1602\1602.exe
	00000030    0
	00000009    0 <==
0000000e services.exe
	00000026    0
	00000023    0
	0000001e    0
	00000018    0
	00000013    0
	00000010    0
	0000000f    0
00000011 winedevice.exe
	0000001d    0
	00000017    0
	00000016    0
	00000012    0
0000001b plugplay.exe
	00000020    0
	0000001f    0
	0000001c    0
00000021 winedevice.exe
	0000002b    0
	00000025    0
	00000024    0
	00000022    0
00000029 explorer.exe
	0000002e    0
	0000002d    0
	0000002c    0
	0000002a    0
System information:
    Wine build: wine-3.2
    Platform: i386
    Version: Windows 7
    Host system: Linux
    Host version: 4.14.20-1-ck-core2
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Unhandled Pagefault Exception in every wine application

Post by jkfloris »

Do you also get a page fault with the build-in Wine applications?

Code: Select all

wine notepad
Did you try to create a clean Wine prefix?

Code: Select all

WINEPREFIX=~/wine-test wine notepad
Vralkhir
Level 1
Level 1
Posts: 6
Joined: Sun Feb 18, 2018 4:19 am

Re: Unhandled Pagefault Exception in every wine application

Post by Vralkhir »

jkfloris wrote:Do you also get a page fault with the build-in Wine applications?

Code: Select all

wine notepad
Did you try to create a clean Wine prefix?

Code: Select all

WINEPREFIX=~/wine-test wine notepad

Hi jkfloris,
I'll try as soon as I'm back from work.
I did try moving the game files to a new prefix (anno1602 doesn't need any special settings), but that didn't help. Winecfg is running just fine, if that counts as built-in application for that purpose.
Thanks for Your help.
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: Unhandled Pagefault Exception in every wine application

Post by Gcenx »

annon1602 does work on wine 3.2 just loads the intro loads slowly, did you install the optional dependencies? also for that wine 3.0 & wine 3.1 it loads the intro without delay.
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Unhandled Pagefault Exception in every wine application

Post by Cybermax »

wine-gallium-nine is afaik a "nine" patched version of wine-staging. wine-staging had/have loads of patches and fixes for all kinds of games that wine-dev do not have.

Test as suggested with wine notepad, if that works (most likely does), download something like Unigine Heaven (Not superposition.. kinda bugged), and try if that works. If you have used gallium-nine until now, it might be some mesa bug with the graphics driver that will fubar wine perhaps?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Unhandled Pagefault Exception in every wine application

Post by Bob Wya »

Cybermax wrote:...
Test as suggested with wine notepad, if that works (most likely does), download something like Unigine Heaven (Not superposition.. kinda bugged), and try if that works. If you have used gallium-nine until now, it might be some mesa bug with the graphics driver that will fubar wine perhaps?
Unigine Heaven is a very demanding benchmark. Not a good starting point! :cry:

The Windows Steam client is a much better test. It renders to an OpenGL canvas but isn't too demanding.

Bob
Vralkhir
Level 1
Level 1
Posts: 6
Joined: Sun Feb 18, 2018 4:19 am

Re: Unhandled Pagefault Exception in every wine application

Post by Vralkhir »

jkfloris wrote: Did you try to create a clean Wine prefix?

Code: Select all

WINEPREFIX=~/wine-test wine notepad
Yes, tried it just now, works as expected.
Gcenx wrote: annon1602 does work on wine 3.2 just loads the intro loads slowly, did you install the optional dependencies? also for that wine 3.0 & wine 3.1 it loads the intro without delay.
Just checked all optional dependencies, everything is in place.
Bob Wya wrote:
Cybermax wrote:...
Test as suggested with wine notepad, if that works (most likely does), download something like Unigine Heaven (Not superposition.. kinda bugged), and try if that works. If you have used gallium-nine until now, it might be some mesa bug with the graphics driver that will fubar wine perhaps?
Unigine Heaven is a very demanding benchmark. Not a good starting point! :cry:

The Windows Steam client is a much better test. It renders to an OpenGL canvas but isn't too demanding.

Bob
Will try this next, Unigine Heaven is most probably too demanding for my old ASUS X61SL :wink:

Thank You all for helping out.
Vralkhir
Level 1
Level 1
Posts: 6
Joined: Sun Feb 18, 2018 4:19 am

Re: Unhandled Pagefault Exception in every wine application

Post by Vralkhir »

Bob Wya wrote:
Cybermax wrote:...
Test as suggested with wine notepad, if that works (most likely does), download something like Unigine Heaven (Not superposition.. kinda bugged), and try if that works. If you have used gallium-nine until now, it might be some mesa bug with the graphics driver that will fubar wine perhaps?
Unigine Heaven is a very demanding benchmark. Not a good starting point! :cry:

The Windows Steam client is a much better test. It renders to an OpenGL canvas but isn't too demanding.

Bob
Steam Client is working normal, I used an existing prefix
Vralkhir
Level 1
Level 1
Posts: 6
Joined: Sun Feb 18, 2018 4:19 am

Re: Unhandled Pagefault Exception in every wine application

Post by Vralkhir »

Hey all,

turns out the problem is located somewhere else than wine. Just found out my *.desktop-files for wine applications are not working anymore. :oops:
Strangely enough they are working when beeing clicked in .local/share/applications via file-browser, but not in my openbox menu. Also the applications wont start when started via terminal.
Damn I feel stupid now.
Sorry for wasting Your time and thanks again for the help.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Unhandled Pagefault Exception in every wine application

Post by Bob Wya »

Vralkhir wrote:Hey all,

turns out the problem is located somewhere else than wine. Just found out my *.desktop-files for wine applications are not working anymore. :oops:
Strangely enough they are working when being clicked in .local/share/applications via file-browser, but not in my openbox menu. Also the applications wont start when started via terminal.
Damn I feel stupid now.
I never bother using the .desktop files - that Wine auto-generates... They are not very reliable.
The use of Windows binary .lnk files is a bit of a weakness.

Take a look at the AppDB Steam page - I linked to above. It's got a little section on creating a custom Steam .desktop launcher file.

You can decode the path a Windows .lnk file (associated with an auto-generated Wine Linux .desktop file) points to with strings, e.g.:

Code: Select all

strings "Deus Ex - Revision.lnk.desktop" | egrep 'C:\\'
C:\Program Files (x86)\Steam\steamapps\common\deus ex\System\Revision.exe
Then you can start the executable with:

Code: Select all

wine start 'C:\Program Files (x86)\Steam\steamapps\common\deus ex\System\Revision.exe'
in a .desktop file.

I generally just create .desktop files for common Wine/Windows applications I use.

Bob
Vralkhir
Level 1
Level 1
Posts: 6
Joined: Sun Feb 18, 2018 4:19 am

Re: Unhandled Pagefault Exception in every wine application

Post by Vralkhir »

Bob Wya wrote:
Vralkhir wrote:Hey all,

turns out the problem is located somewhere else than wine. Just found out my *.desktop-files for wine applications are not working anymore. :oops:
Strangely enough they are working when being clicked in .local/share/applications via file-browser, but not in my openbox menu. Also the applications wont start when started via terminal.
Damn I feel stupid now.
I never bother using the .desktop files - that Wine auto-generates... They are not very reliable.
The use of Windows binary .lnk files is a bit of a weakness.

Take a look at the AppDB Steam page - I linked to above. It's got a little section on creating a custom Steam .desktop launcher file.

You can decode the path a Windows .lnk file (associated with an auto-generated Wine Linux .desktop file) points to with strings, e.g.:

Code: Select all

strings "Deus Ex - Revision.lnk.desktop" | egrep 'C:\\'
C:\Program Files (x86)\Steam\steamapps\common\deus ex\System\Revision.exe
Then you can start the executable with:

Code: Select all

wine start 'C:\Program Files (x86)\Steam\steamapps\common\deus ex\System\Revision.exe'
in a .desktop file.

I generally just create .desktop files for common Wine/Windows applications I use.

Bob
Thx, I'll try that :)
I did those files myself actually^^
Anyways, the problem lies in the path the applications are using. One is getting so used to those shortcuts and if sth doesnt work to just invoke it via terminal to see errors and getting them fixed, that its easy to forget some details. Would I have changed directory to the games folder, everything would have worked fine. But how it happened, i was just totally puzzled :lol:
Locked