Can't run Undertale

Questions about Wine on Linux
Post Reply
hsalf
Newbie
Newbie
Posts: 2
Joined: Thu Nov 29, 2018 4:16 pm

Can't run Undertale

Post by hsalf » Thu Nov 29, 2018 4:28 pm

I'm trying to run Undertale, but it crashes almost immediately. According to WineHQ, it should run flawlessly.

Here's the terminal output:

Code: Select all

RunnerLoadGame() - C:\GOG Games\Undertale\data.win
Checking if INIFile C:\GOG Games\Undertale/options.ini Exists
C:\GOG Games\Undertale/options.ini file contents: [Windows]

CreateTexturesOnDemand=0

AlternateSyncMethod=0

VertexBufferMethod=1

SleepMargin=1


Reading File C:\GOG Games\Undertale\data.win
Loaded File C:\GOG Games\Undertale\data.win(57056102)
IFF wad found
Get Resolution
Get Header Information
InitGMLFunctions
HighScore..SavePrePend = C:\users\syro\Local Settings\Application Data\UNDERTALE\
Game..Math..Graphic..Action..File..Resource..Interaction..3D..Particle..Misc..DS..Sound..Physics..Gamepad..GAMEPAD: 4 axis values (last) at 0xd33350
GAMEPAD: 4 axis values (last) at 0xd33688
GAMEPAD: 4 axis values (last) at 0xd339c0
GAMEPAD: 4 axis values (last) at 0xd35cb0
Buffers..Networking..Shaders..InitPushFunctions...YoYo..Fini
Code_Load()
VARI_Load()
got 160 global variables
got 3649 instance variables
got 1 local variables
ID_STRG
Create Window
AdjustWindowRectEx
RegisterClassEx
CreateWindowEx
Init Graphics
GR_D3D_Init()
Enable DwmEnableMMCSS
0009:fixme:dwmapi:DwmEnableMMCSS (1) stub
Create D3D9Ex interface
0009:fixme:win:EnumDisplayDevicesW ((null),0,0x32f088,0x00000000), stub!
Enumerate Adapters
Switching to manual clears
Selected Resolution: 640x453
Prepare to create device
Creating D3D device - ARGB=32bit, D24S8, SwapEffect=Copy, Hardware vertex processing
Creating screen render target
Get Device Caps
Graphics initialisation end...
Background_InitTextures()
Sprite_InitTextures()
Font_InitTextures()
IO Init
Process Messages
Splash!
002a:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
002a:err:d3d:wined3d_debug_callback 0xa50688: "GL_INVALID_OPERATION in glVertexAttribPointer(non-VBO array)".
002a:err:d3d:wined3d_debug_callback 0xa50688: "GL_INVALID_OPERATION in glVertexAttribPointer(non-VBO array)".
wine: Unhandled page fault on read access to 0x00000000 at address 0xf748d0bf (thread 002a), starting debugger...
And here's the backtrace.txt:

Code: Select all

Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0xf747e0bf).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:f747e0bf ESP:047cf718 EBP:7ab57000 EFLAGS:00010283(  R- --  I S - - -C)
 EAX:00000000 EBX:f7509000 ECX:00000040 EDX:7ab57000
 ESI:00000003 EDI:00000000
Stack dump:
0x047cf718:  7b3f4000 7b02e2ee 7ab57000 00000000
0x047cf728:  00000040 00000000 f7509000 00000010
0x047cf738:  00000040 00000004 7aa5b7b0 00000028
0x047cf748:  7b02e1db 7ab86910 7ab86850 7ab67020
0x047cf758:  00000000 7b02ebe8 00000003 7ab86910
0x047cf768:  00000010 f7509000 00000000 00000000
Backtrace:
=>0 0xf747e0bf in libc.so.6 (+0x1280bf) (0x7ab57000)
  1 0x7b02e2ee in i965_dri.so (+0x3a52ed) (0x7ab57000)
  2 0x7b02ebe8 in i965_dri.so (+0x3a5be7) (0x00000000)
  3 0x7b02f181 in i965_dri.so (+0x3a6180) (0x7ab67020)
  4 0x7b046a67 in i965_dri.so (+0x3bda66) (0x7ab67020)
  5 0x7b02d503 in i965_dri.so (+0x3a4502) (0x047cfb6c)
  6 0x7ae0b6f9 in i965_dri.so (+0x1826f8) (0x047cfb6c)
  7 0x7bf02aac in wined3d (+0x42aab) (0x047cfe38)
  8 0x7bf06cc5 in wined3d (+0x46cc4) (0x047cfe78)
  9 0x7bf07e05 in wined3d (+0x47e04) (0x047cfed8)
  10 0x7bc7f074 call_thread_func_wrapper+0xb() in ntdll (0x047cfeec)
  11 0x7bc82457 in ntdll (+0x72456) (0x047cffdc)
  12 0x7bc7f066 call_thread_exit_func+0x31() in ntdll (0x047cffec)
0xf747e0bf: repe movq	0x0(%eax),%mm0
Modules:
Module	Address			Debug info	Name (139 modules)
PE	  400000-  9ed000	Deferred        undertale
PE	10000000-101ff000	Deferred        d3dx9_43
ELF	7a800000-7a93f000	Deferred        opengl32<elf>
  \-PE	7a820000-7a93f000	\               opengl32
ELF	7ac89000-7b400000	Dwarf           i965_dri.so
ELF	7b400000-7b7ec000	Deferred        kernel32<elf>
  \-PE	7b420000-7b7ec000	\               kernel32
ELF	7bc00000-7bcfe000	Dwarf           ntdll<elf>
  \-PE	7bc10000-7bcfe000	\               ntdll
ELF	7bd14000-7bd20000	Deferred        libpciaccess.so.0
ELF	7be9a000-7bea8000	Deferred        libdrm_radeon.so.1
ELF	7bea8000-7beb2000	Deferred        libdrm_nouveau.so.2
ELF	7beb2000-7c000000	Dwarf           wined3d<elf>
  \-PE	7bec0000-7c000000	\               wined3d
ELF	7c000000-7c004000	Deferred        <wine-loader>
ELF	7c004000-7c02b000	Deferred        libdrm_intel.so.1
ELF	7c02b000-7c03d000	Deferred        libdrm.so.2
ELF	7c03d000-7c043000	Deferred        libxcb-dri2.so.0
ELF	7c043000-7c060000	Deferred        libxcb-glx.so.0
ELF	7c060000-7c07c000	Deferred        libglapi.so.0
ELF	7c07c000-7c0ed000	Deferred        libgl.so.1
ELF	7c147000-7c14a000	Deferred        libx11-xcb.so.1
ELF	7c14a000-7c14e000	Deferred        libxdamage.so.1
ELF	7c14e000-7c151000	Deferred        libxshmfence.so.1
ELF	7c178000-7c1b9000	Deferred        d3d9<elf>
  \-PE	7c180000-7c1b9000	\               d3d9
ELF	7c1b9000-7c1d1000	Deferred        dwmapi<elf>
  \-PE	7c1c0000-7c1d1000	\               dwmapi
ELF	7c217000-7c22e000	Deferred        libgpg-error.so.0
ELF	7c22e000-7c2a7000	Deferred        libpcre.so.3
ELF	7c2a7000-7c2c5000	Deferred        libgcc_s.so.1
ELF	7c2c5000-7c394000	Deferred        libgcrypt.so.20
ELF	7c394000-7c3a7000	Deferred        liblz4.so.1
ELF	7c3a7000-7c3d3000	Deferred        liblzma.so.5
ELF	7c3d3000-7c400000	Deferred        libselinux.so.1
ELF	7c405000-7c497000	Deferred        libsystemd.so.0
ELF	7c497000-7c4a0000	Deferred        libffi.so.6
ELF	7c4a0000-7c4fc000	Deferred        libdbus-1.so.3
ELF	7c4fc000-7c58a000	Deferred        libgmp.so.10
ELF	7c58a000-7c5c0000	Deferred        libhogweed.so.4
ELF	7c5c0000-7c5fd000	Deferred        libnettle.so.6
ELF	7c5fd000-7c612000	Deferred        libtasn1.so.6
ELF	7c612000-7c646000	Deferred        libidn.so.11
ELF	7c646000-7c6a8000	Deferred        libp11-kit.so.0
ELF	7c6a8000-7c6c0000	Deferred        libresolv.so.2
ELF	7c6c0000-7c6c5000	Deferred        libkeyutils.so.1
ELF	7c6c5000-7c6d2000	Deferred        libkrb5support.so.0
ELF	7c6d2000-7c6d7000	Deferred        libcom_err.so.2
ELF	7c6d7000-7c70d000	Deferred        libk5crypto.so.3
ELF	7c70d000-7c7e9000	Deferred        libkrb5.so.3
ELF	7c7e9000-7c9ae000	Deferred        libgnutls.so.30
ELF	7c9ae000-7ca00000	Deferred        libgssapi_krb5.so.2
ELF	7ca00000-7ca8d000	Deferred        libcups.so.2
ELF	7ca8d000-7ca95000	Deferred        libxcb-sync.so.1
ELF	7ca95000-7ca99000	Deferred        libxcb-present.so.0
ELF	7ca99000-7ca9d000	Deferred        libxcb-dri3.so.0
ELF	7ca9d000-7cab4000	Deferred        xinput1_3<elf>
  \-PE	7caa0000-7cab4000	\               xinput1_3
ELF	7cab4000-7caeb000	Deferred        uxtheme<elf>
  \-PE	7cac0000-7caeb000	\               uxtheme
ELF	7caeb000-7caf2000	Deferred        libxfixes.so.3
ELF	7caf2000-7cafe000	Deferred        libxcursor.so.1
ELF	7cafe000-7cb11000	Deferred        libxi.so.6
ELF	7cb11000-7cb15000	Deferred        libxcomposite.so.1
ELF	7cb15000-7cb22000	Deferred        libxrandr.so.2
ELF	7cb22000-7cb2e000	Deferred        libxrender.so.1
ELF	7cb2e000-7cb35000	Deferred        libxxf86vm.so.1
ELF	7cb35000-7cb39000	Deferred        libxinerama.so.1
ELF	7cb39000-7cb42000	Deferred        librt.so.1
ELF	7cb42000-7cb5e000	Deferred        libbsd.so.0
ELF	7cb5e000-7cb65000	Deferred        libxdmcp.so.6
ELF	7cb65000-7cb69000	Deferred        libxau.so.6
ELF	7cb69000-7cb95000	Deferred        libxcb.so.1
ELF	7cb95000-7cce3000	Deferred        libx11.so.6
ELF	7cce3000-7ccf8000	Deferred        libxext.so.6
ELF	7ccfa000-7cd0e000	Deferred        libavahi-client.so.3
ELF	7cd0e000-7cd1d000	Deferred        libavahi-common.so.3
ELF	7cd1f000-7cdae000	Deferred        winex11<elf>
  \-PE	7cd30000-7cdae000	\               winex11
ELF	7d4a4000-7d4ce000	Deferred        libexpat.so.1
ELF	7d4ce000-7d511000	Deferred        libfontconfig.so.1
ELF	7d511000-7d54b000	Deferred        libpng16.so.16
ELF	7d54b000-7d5ff000	Deferred        libfreetype.so.6
ELF	7d626000-7d74d000	Deferred        oleaut32<elf>
  \-PE	7d640000-7d74d000	\               oleaut32
ELF	7d74d000-7d78d000	Deferred        winspool<elf>
  \-PE	7d750000-7d78d000	\               winspool
ELF	7d78d000-7d87f000	Deferred        comdlg32<elf>
  \-PE	7d790000-7d87f000	\               comdlg32
ELF	7d87f000-7d8c5000	Deferred        usp10<elf>
  \-PE	7d890000-7d8c5000	\               usp10
ELF	7d8c5000-7da00000	Deferred        comctl32<elf>
  \-PE	7d8d0000-7da00000	\               comctl32
ELF	7da00000-7da91000	Deferred        gdiplus<elf>
  \-PE	7da10000-7da91000	\               gdiplus
ELF	7da91000-7dabc000	Deferred        msacm32<elf>
  \-PE	7daa0000-7dabc000	\               msacm32
ELF	7dabc000-7db41000	Deferred        rpcrt4<elf>
  \-PE	7dad0000-7db41000	\               rpcrt4
ELF	7db41000-7dc99000	Deferred        ole32<elf>
  \-PE	7db60000-7dc99000	\               ole32
ELF	7dc99000-7dd51000	Deferred        winmm<elf>
  \-PE	7dca0000-7dd51000	\               winmm
ELF	7dd74000-7dd98000	Deferred        imm32<elf>
  \-PE	7dd80000-7dd98000	\               imm32
ELF	7dd98000-7ddfe000	Deferred        dbghelp<elf>
  \-PE	7dda0000-7ddfe000	\               dbghelp
ELF	7ddfe000-7deb7000	Deferred        msvcrt<elf>
  \-PE	7de10000-7deb7000	\               msvcrt
ELF	7dedd000-7df14000	Deferred        ws2_32<elf>
  \-PE	7dee0000-7df14000	\               ws2_32
ELF	7df14000-7e8d1000	Deferred        shell32<elf>
  \-PE	7df20000-7e8d1000	\               shell32
ELF	7e8d1000-7e947000	Deferred        shlwapi<elf>
  \-PE	7e8e0000-7e947000	\               shlwapi
ELF	7e947000-7e9bf000	Deferred        advapi32<elf>
  \-PE	7e950000-7e9bf000	\               advapi32
ELF	7e9bf000-7eaec000	Deferred        gdi32<elf>
  \-PE	7e9d0000-7eaec000	\               gdi32
ELF	7eaec000-7ecf1000	Deferred        user32<elf>
  \-PE	7eb00000-7ecf1000	\               user32
ELF	7ecf1000-7ed19000	Deferred        mpr<elf>
  \-PE	7ed00000-7ed19000	\               mpr
ELF	7ed19000-7ed34000	Deferred        libz.so.1
ELF	7ed34000-7edaf000	Deferred        wininet<elf>
  \-PE	7ed40000-7edaf000	\               wininet
ELF	7ef4a000-7ef5d000	Deferred        libnss_files.so.2
ELF	7ef5d000-7ef6a000	Deferred        libnss_nis.so.2
ELF	7ef6a000-7ef84000	Deferred        libnsl.so.1
ELF	7ef84000-7efd9000	Deferred        libm.so.6
ELF	7efe6000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f7345000-f734f000	Deferred        libnss_compat.so.2
ELF	f7351000-f7356000	Deferred        libdl.so.2
ELF	f7356000-f750d000	Dwarf           libc.so.6
ELF	f750d000-f752a000	Deferred        libpthread.so.0
ELF	f7551000-f7708000	Dwarf           libwine.so.1
ELF	f770b000-f7730000	Deferred        ld-linux.so.2
ELF	f7732000-f7733000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\GOG Games\Undertale\UNDERTALE.exe
	0000002a    0 <==
	00000009    0
0000000e services.exe
	00000020    0
	0000001b    0
	00000013    0
	00000010    0
	0000000f    0
00000011 winedevice.exe
	00000018    0
	00000017    0
	00000016    0
	00000012    0
00000019 plugplay.exe
	0000001d    0
	0000001c    0
	0000001a    0
0000001e winedevice.exe
	00000025    0
	00000022    0
	00000021    0
	0000001f    0
00000023 explorer.exe
	00000029    0
	00000028    0
	00000027    0
	00000026    0
	00000024    0
System information:
    Wine build: wine-3.21
    Platform: i386 (WOW64)
    Version: Windows 7
    Host system: Linux
    Host version: 4.9.0-8-amd64
The game sometimes pops up a small window that reads "Failed to create Direct3D 9ex device" but most of the time it doesn't.


Any help would be appreciated. Thanks for your time.

jkfloris
Level 6
Level 6
Posts: 704
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't run Undertale

Post by jkfloris » Fri Nov 30, 2018 2:33 am

This could be bug 45279 (https://bugs.winehq.org/show_bug.cgi?id=45279)
Try to run the game in wine-stable

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Can't run Undertale

Post by DarkShadow44 » Fri Nov 30, 2018 4:17 pm

I can confirm that this is indeed the bug affecting Undertale. Using an older wine version helps.

hsalf
Newbie
Newbie
Posts: 2
Joined: Thu Nov 29, 2018 4:16 pm

Re: Can't run Undertale

Post by hsalf » Fri Nov 30, 2018 4:52 pm

DarkShadow44 wrote:I can confirm that this is indeed the bug affecting Undertale. Using an older wine version helps.
jkfloris wrote:This could be bug 45279 (https://bugs.winehq.org/show_bug.cgi?id=45279)
Try to run the game in wine-stable
Yes, with the package winehq-stable it runs flawlessly on my PC.

I installed it on my laptop running winehq-devel just to try it and funnily enough, it does run no problem. Both my desktop PC and laptop are running Debian 9 with Intel graphics, the only difference is that the PC has KDE and the laptop has XFCE, so its definetly a bug.


Many thanks! :D

Post Reply