You are not logged in.

#1 2014-10-15 05:15:53

Torignit
Member
Registered: 2012-06-19
Posts: 14

[Solved] was getting errors with wine, but found patched linux version

Installed wine for the first time, following the wiki and reading most of the things linked there (such as the winehq faq for disabling winemenubuilder), made separate WINEPREFIXs for 32 and 64 bit, then unzipped a program (Meritous) into the 32 bit prefix's "Program Files" and--

[solitudesands@TheEntireBracadaDesert Meritousness]$ WINEPREFIX=~/w32 wine Meritous.exe
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
fixme:keyboard:X11DRV_LoadKeyboardLayout L"00000409", 0080: stub!
fixme:keyboard:X11DRV_LoadKeyboardLayout L"00000409", 0001: stub!
wine: Unhandled page fault on read access to 0x00000034 at address 0x7bc3c8a1 (thread 0009), starting debugger...

At which point the bug reporting wine function pops up offering this:

Unhandled exception: page fault on read access to 0x00000034 in 32-bit code (0x7bc3c8a1).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7bc3c8a1 ESP:005533c0 EBP:005533d8 EFLAGS:00010206(  R- --  I   - -P- )
 EAX:7e64c301 EBX:7bcc7000 ECX:005533f0 EDX:7e6d7280
 ESI:00000020 EDI:00000000
Stack dump:
0x005533c0:  00682af8 7bc3c896 005533f0 7e6cf000
0x005533d0:  0067fb40 00000000 00553408 7e65e39c
0x005533e0:  00553438 7e663856 7e64c301 7e65e39c
0x005533f0:  00000020 00553410 00553448 7e65e374
0x00553400:  00553420 7e6cf000 00553468 7e663e7f
0x00553410:  00682af8 00682af8 00000040 7e663e7f
000c: sel=0067 base=00000000 limit=00000000 16-bit r-x
Backtrace:
=>0 0x7bc3c8a1 RtlEnterCriticalSection+0x21() in ntdll (0x005533d8)
  1 0x7e65e39c MSVCRT__lock_file+0x3b() in msvcrt (0x00553408)
  2 0x7e663e7f MSVCRT_fread+0x5e() in msvcrt (0x00553468)
  3 0x00401b28 in meritous (+0x1b27) (0x0067fbd8)
  4 0x004213f6 in meritous (+0x213f5) (0x0067fc08)
  5 0x004215b7 in meritous (+0x215b6) (0x0067fd88)
  6 0x00420f0b in meritous (+0x20f0a) (0x0067fe00)
  7 0x0040122d in meritous (+0x122c) (0x0067fe20)
  8 0x00401258 in meritous (+0x1257) (0x0067fe30)
  9 0x7b85c48c call_process_entry+0xb() in kernel32 (0x0067fe48)
  10 0x7b85d54a in kernel32 (+0x4d549) (0x0067fe78)
  11 0x7bc7c610 call_thread_func_wrapper+0xb() in ntdll (0x0067fe98)
  12 0x7bc7f50f call_thread_func+0xde() in ntdll (0x0067ff88)
  13 0x7bc7c5ee RtlRaiseException+0x21() in ntdll (0x0067ffb8)
  14 0x7bc51441 call_dll_entry_point+0x440() in ntdll (0x0067ffd8)
  15 0xf7553a8d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  16 0xf7553c0a wine_switch_to_stack+0x29() in libwine.so.1 (0xff90b0a8)
  17 0x7bc56bd5 LdrInitializeThunk+0x1f4() in ntdll (0xff90b0f8)
  18 0x7b8634f2 __wine_kernel_init+0x871() in kernel32 (0xff90c268)
  19 0x7bc57a33 __wine_process_init+0x162() in ntdll (0xff90c2d8)
  20 0xf7551643 wine_init+0x2f2() in libwine.so.1 (0xff90c348)
  21 0x7bf00db2 main+0x81() in <wine-loader> (0xff90c7a8)
  22 0xf738de5e __libc_start_main+0xdd() in libc.so.6 (0x00000000)
0x7bc3c8a1 RtlEnterCriticalSection+0x21 in ntdll: movl	0x14(%esi),%eax
Modules:
Module	Address			Debug info	Name (68 modules)
PE	  230000-  24a000	Deferred        sdl_image
PE	  400000-  473000	Export          meritous
PE	10000000-10046000	Deferred        sdl
PE	60400000-60475000	Deferred        sdl_mixer
ELF	7b800000-7ba5a000	Dwarf           kernel32<elf>
  \-PE	7b810000-7ba5a000	\               kernel32
ELF	7bc00000-7bce4000	Dwarf           ntdll<elf>
  \-PE	7bc10000-7bce4000	\               ntdll
ELF	7bf00000-7bf04000	Dwarf           <wine-loader>
ELF	7dcbc000-7dce0000	Deferred        imm32<elf>
  \-PE	7dcc0000-7dce0000	\               imm32
ELF	7dd02000-7dd08000	Deferred        libxfixes.so.3
ELF	7dd08000-7dd13000	Deferred        libxcursor.so.1
ELF	7dd13000-7dd26000	Deferred        libxi.so.6
ELF	7dd26000-7dd2a000	Deferred        libxcomposite.so.1
ELF	7dd2a000-7dd35000	Deferred        libxrandr.so.2
ELF	7dd35000-7dd40000	Deferred        libxrender.so.1
ELF	7dd40000-7dd46000	Deferred        libxxf86vm.so.1
ELF	7dd46000-7dd4a000	Deferred        libxinerama.so.1
ELF	7dd4a000-7dd70000	Deferred        libxcb.so.1
ELF	7dd70000-7dea7000	Deferred        libx11.so.6
ELF	7dea7000-7debc000	Deferred        libxext.so.6
ELF	7dee0000-7df72000	Deferred        winex11<elf>
  \-PE	7def0000-7df72000	\               winex11
ELF	7df72000-7e090000	Deferred        opengl32<elf>
  \-PE	7df90000-7e090000	\               opengl32
ELF	7e090000-7e1cc000	Deferred        wined3d<elf>
  \-PE	7e0a0000-7e1cc000	\               wined3d
ELF	7e1cc000-7e240000	Deferred        ddraw<elf>
  \-PE	7e1d0000-7e240000	\               ddraw
ELF	7e253000-7e27c000	Deferred        libexpat.so.1
ELF	7e27c000-7e2b8000	Deferred        libfontconfig.so.1
ELF	7e2b8000-7e32b000	Deferred        libpcre.so.1
ELF	7e32b000-7e436000	Deferred        libglib-2.0.so.0
ELF	7e436000-7e492000	Deferred        libharfbuzz.so.0
ELF	7e492000-7e4d0000	Deferred        libpng16.so.16
ELF	7e4d0000-7e4e1000	Deferred        libbz2.so.1.0
ELF	7e4e1000-7e4f8000	Deferred        libz.so.1
ELF	7e4f8000-7e59c000	Deferred        libfreetype.so.6
ELF	7e59c000-7e601000	Deferred        libncursesw.so.5
ELF	7e625000-7e6d9000	Dwarf           msvcrt<elf>
  \-PE	7e640000-7e6d9000	\               msvcrt
ELF	7e6d9000-7e704000	Deferred        msacm32<elf>
  \-PE	7e6e0000-7e704000	\               msacm32
ELF	7e704000-7e786000	Deferred        rpcrt4<elf>
  \-PE	7e710000-7e786000	\               rpcrt4
ELF	7e786000-7e8bf000	Deferred        ole32<elf>
  \-PE	7e7a0000-7e8bf000	\               ole32
ELF	7e8bf000-7e930000	Deferred        advapi32<elf>
  \-PE	7e8d0000-7e930000	\               advapi32
ELF	7e930000-7ea51000	Deferred        gdi32<elf>
  \-PE	7e940000-7ea51000	\               gdi32
ELF	7ea51000-7eba7000	Deferred        user32<elf>
  \-PE	7ea60000-7eba7000	\               user32
ELF	7eba7000-7ec5e000	Deferred        winmm<elf>
  \-PE	7ebb0000-7ec5e000	\               winmm
ELF	7ef8f000-7efdc000	Deferred        libm.so.6
ELF	7efdf000-7efe6000	Deferred        libxdmcp.so.6
ELF	7efe6000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f734d000-f7352000	Deferred        libdl.so.2
ELF	f7352000-f7360000	Deferred        libnss_files.so.2
ELF	f7372000-f7376000	Deferred        libxau.so.6
ELF	f7376000-f752e000	Dwarf           libc.so.6
ELF	f752e000-f754a000	Deferred        libpthread.so.0
ELF	f754a000-f7703000	Dwarf           libwine.so.1
ELF	f7704000-f7728000	Deferred        ld-linux.so.2
ELF	f7728000-f7729000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Meritousness\Meritous.exe
	00000009    0 <==
0000000e services.exe
	0000001d    0
	0000001c    0
	00000016    0
	00000014    0
	00000010    0
	0000000f    0
00000012 winedevice.exe
	0000001b    0
	00000018    0
	00000017    0
	00000013    0
00000019 plugplay.exe
	0000001f    0
	0000001e    0
	0000001a    0
00000020 explorer.exe
	00000021    0
System information:
    Wine build: wine-1.7.28
    Platform: i386
    Host system: Linux
    Host version: 3.16.3-1-ARCH

However, unlike the few dozen other threads also including "Unhandled page fault on read access", I don't have any other errors to work with, and my backtrace is 23 lines instead of the usual 2-3. I've tried 'pacman -Ss'  for various libraries and drivers like in the other threads, but there doesn't appear to be anything I'm missing. Also, the game isn't in the appdb, so I can't look there for help.

I'm figuratively flying blind, from newbiness and from lack of understandable, so any more experience with random failures like this would be appreciated.
...
Help?


Edit: Oh, and if you're wondering why I don't just compile from source, it's because that version always crashes halfway through the game; I'll be copying my saves from that version to this one if I get it running.

Last edited by Torignit (2014-10-15 11:04:00)

Offline

#2 2014-10-15 09:33:15

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [Solved] was getting errors with wine, but found patched linux version

You have an AUR package: https://aur.archlinux.org/packages/meritous which doesn't need wine.
Why don't you use it?

Offline

#3 2014-10-15 11:02:54

Torignit
Member
Registered: 2012-06-19
Posts: 14

Re: [Solved] was getting errors with wine, but found patched linux version

At first I didn't realize it existed; then because I'd already compiled from site's source, and a few seconds ago because I hadn't seen the patch. It's frustrating to have no idea why Wine isn't working, but that patch solves the motivating problem; thank you.

Changing topic appropriately.

Last edited by Torignit (2014-10-15 11:03:12)

Offline

#4 2014-10-15 14:44:33

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [Solved] was getting errors with wine, but found patched linux version

It is not clear what patch you are talking about: can you give precisions please?

Offline

#5 2014-10-16 08:21:04

Torignit
Member
Registered: 2012-06-19
Posts: 14

Re: [Solved] was getting errors with wine, but found patched linux version

Oh; it's the one linked on the AUR package's page in its comments, and the one implemented with sed in the PKGBUILD. I found it by looking at the link you posted! =D
I was actually able to just enter the two salient sed commands (that is, "sed -i 's/for (i = 9/for (i = 8/' src/boss.c" and "sed -i 's/((final_boss_dlg == 0) && (current_boss == 3))/(final_boss_dlg == 0)/' src/boss.c ") in the directory of the version I'd already compiled, and recompile it.
Meritous is one of those games worth all this trouble.

Offline

#6 2014-10-16 09:51:57

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [Solved] was getting errors with wine, but found patched linux version

You'd better choose to build it from the AUR with makepkg and install it with pacman:
https://wiki.archlinux.org/index.php/AU … Guidelines
But nice that you could now play with it.
Concerning Wine: I didn't see this game in the WineHQ - Wine Application Database
Maybe it doesn't work with Wine.

Last edited by berbae (2014-10-16 09:52:19)

Offline

Board footer

Powered by FluxBB