Skip to content

Civ4 Beyond the Sword: Crash when launching gamestate #5400

@noahrama

Description

@noahrama

What Game
Civilisation IV GOG
https://www.gog.com/en/game/sid_meiers_civilization_iv_the_complete_edition

Describe the bug
I can lauch the game menu, but cannot enter the game state. Additionally, there is no sound.

To Reproduce
launch the game from within muvm.

Expected behavior
gamestate should not crash

System information:

  • OS: Linux alarm 6.18.15-1-1-ARCH
  • CPU/SoC: M2
  • Video driver version:
    mesa 25.3.6-4
    mesa-fex-emu-overlay-i386 25.3.6-4
    mesa-fex-emu-overlay-x86_64 25.3.6-4
    mesa-utils 9.0.0-7
  • RootFS used: fex-emu-rootfs-arch
  • FEX version: fex-emu-wine-git 2510.r13141.ga2ea767b7-1
  • Wine:
    fex-emu-wine-git 2510.r13141.ga2ea767b7-1
    wine-asahi-git 10.16-1
    winetricks 20260125-1

Additional context

  • Is this an x86 or x86-64 game: x86-64
  • Does this reproduce on AArch64 with Radeon/Intel/Nvidia: untested
  • Is this a Vulkan game: no

wine dump
Unhandled exception: page fault on read access to 0x00000000 in wow64 32-bit code (0x0095d6e6).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0053 GS:002b
EIP:0095d6e6 ESP:0012f950 EBP:00000000 EFLAGS:00000206( - -- I - -P- )
EAX:00000000 EBX:00000000 ECX:00000000 EDX:00ad2302
ESI:23c14860 EDI:23aae5a8
Stack dump:
0x0012f950: 23c14ba4 00000000 0093dde7 23c15410
0x0012f960: 00000000 00000000 3f800000 23aae5a8
0x0012f970: 23c11300 00000000 1e4ec4a0 0093f621
0x0012f980: 00000000 23aae5a8 1e4ec510 009383a6
0x0012f990: 00000000 00000000 3f800000 00000000
0x0012f9a0: 00000000 00000000 23c11300 00000002
Backtrace:
=>0 0x0095d6e6 in civ4beyondsword (+0x55d6e6) (0x00000000)
0x0095d6e6 civ4beyondsword+0x55d6e6: cmpl $0, (%ecx, %eax, 8)
Modules:
Module Address Debug info Name (58 modules)
PE 2a0000- 2b3000 Deferred zlib1
PE 2c0000- 2ce000 Deferred hapdbg
PE 400000- 100a000 --none-- civ4beyondsword
PE 2490000- 2951000 Deferred cvgamecoredll
PE 10000000-1002b000 Deferred boost_python-vc71-mt-1_32
PE 18000000-18038000 Deferred binkw32
PE 18500000-18520000 Deferred msseax.flt
PE 18550000-1855d000 Deferred msssrs.flt
PE 1c160000-1c3c7000 Deferred d3dx9_31
PE 1e000000-1e1ca000 Deferred python24
PE 21100000-2118c000 Deferred mss32
PE 22300000-2230c000 Deferred mssds3d.flt
PE 23000000-2300a000 Deferred mssdolby.flt
PE 24100000-2411e000 Deferred mssdsp.flt
PE 26400000-2643a000 Deferred mssvoice.asi
PE 26f00000-26f2e000 Deferred mssmp3.asi
PE 51080000-510e1000 Deferred dsound
PE-Wine 768f0000-76bd5000 Deferred opengl32
PE-Wine 76bf0000-77e86000 Deferred wined3d
PE-Wine 77ea0000-77fc9000 Deferred d3d9
PE-Wine 77fe0000-78209000 Deferred crypt32
PE-Wine 78220000-782e3000 Deferred rsaenh
PE-Wine 78300000-78308000 Deferred winealsa
PE-Wine 78320000-783bf000 Deferred mmdevapi
PE-Wine 783d0000-786de000 Deferred comctl32
PE-Wine 786f0000-7870d000 Deferred wtsapi32
PE 78720000-78853000 Deferred msxml3
PE-Wine 78870000-788d4000 Deferred gameux
PE-Wine 788f0000-7895c000 Deferred uxtheme
PE-Wine 78970000-7897d000 Deferred winex11
PE 78990000-78cff000 Deferred d3dx9_33
PE-Wine 78d10000-78d21000 Deferred version
PE-Wine 78d40000-78da1000 Deferred ws2_32
PE-Wine 78dc0000-78e06000 Deferred msacm32
PE-Wine 78e20000-78f44000 Deferred winmm
PE-Wine 78f60000-7916b000 Deferred msvcp71
PE-Wine 79180000-79365000 Deferred msvcr71
PE-Wine 79380000-79ec2000 Deferred shell32
PE-Wine 79f10000-79f3c000 Deferred shcore
PE-Wine 79f50000-79ffc000 Deferred shlwapi
PE-Wine 7a2e0000-7a329000 Deferred bcrypt
PE-Wine 7a3f0000-7a43c000 Deferred imm32
PE-Wine 7a450000-7a649000 Deferred oleaut32
PE-Wine 7a660000-7a6a1000 Deferred coml2
PE-Wine 7a6c0000-7a7b0000 Deferred combase
PE-Wine 7a7c0000-7a9f2000 Deferred ole32
PE-Wine 7aa70000-7aaa9000 Deferred win32u
PE-Wine 7aac0000-7ac3e000 Deferred gdi32
PE-Wine 7ac50000-7b019000 Deferred user32
PE-Wine 7b030000-7b223000 Deferred msvcrt
PE-Wine 7b240000-7b4ab000 Deferred ucrtbase
PE-Wine 7b4c0000-7b4d8000 Deferred cryptbase
PE-Wine 7b4f0000-7b668000 Deferred rpcrt4
PE-Wine 7b680000-7b6cf000 Deferred sechost
PE-Wine 7b6e0000-7b774000 Deferred advapi32
PE-Wine 7b860000-7bc78000 Deferred kernelbase
PE-Wine 7bc90000-7bda8000 Deferred kernel32
PE-Wine 7bdc0000-7bfe7000 Deferred ntdll
Threads:
process tid prio name (all IDs are in hex)
00000020 (D) C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Civ4BeyondSword.exe
["C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Civ4BeyondSword.exe"]
00000024 0 <==
000001c4 0 wine_mmdevapi_notification
000001c8 0
000001dc 0
00000038 services.exe
0000003c 0
00000040 0 wine_rpcrt4_server
0000004c 0 wine_rpcrt4_io
00000074 0 wine_rpcrt4_io
00000090 0 wine_rpcrt4_io
000000b4 0 wine_rpcrt4_io
000000b8 0 wine_rpcrt4_io
000000bc 0 wine_threadpool_worker
000000d8 0 wine_rpcrt4_io
000000f4 0 wine_rpcrt4_io
00000110 0 wine_threadpool_timerqueue
00000114 0
00000128 0 wine_rpcrt4_io
00000044 winedevice.exe
00000048 0
00000054 0
00000058 0 wine_sechost_service
0000005c 0
00000060 0
00000068 0
000000cc 0 wine_nsi_notification
0000006c svchost.exe
00000070 0
00000078 0
0000007c 0 wine_sechost_service
00000080 plugplay.exe
00000084 0
00000094 0
00000098 0 wine_sechost_service
0000009c 0 wine_rpcrt4_server
00000108 0 wine_rpcrt4_io
00000088 explorer.exe
0000008c 0
000000a8 0
000000ac 0 wine_explorer_display_settings_restorer
000000b0 0 wine_rpcrt4_server
000000a0 mscorsvw.exe
[C:\windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe]
000000a4 0
000000c0 0
000000c4 0 wine_sechost_service
000000c8 0
000000d0 winedevice.exe
000000d4 0
000000dc 0
000000e0 0 wine_sechost_service
000000e4 0
000000e8 0
000000ec 0
000000fc 0
00000100 0
00000104 0
00000118 rpcss.exe
0000011c 0
0000012c 0
00000130 0 wine_sechost_service
00000134 0 wine_rpcrt4_server
00000138 0 wine_rpcrt4_server
0000013c 0 wine_rpcrt4_io
000001f4 0 wine_rpcrt4_io
000001f8 0 wine_threadpool_worker
000001d4 conhost.exe
000001d8 0
000001e0 explorer.exe
000001e4 0
000001e8 0
000001ec 0 wine_explorer_display_settings_restorer
000001f0 0 wine_rpcrt4_server
System information:
Wine build: wine-10.16 (Staging)
Platform: arm64 (guest: i386 arm)
Version: Windows 7
Host system: Linux
Host version: 6.12.68

wine log
No IPv6 nameserver available for NDP/DHCPv6
Using default interface naming scheme 'v260'.
002c:fixme:winediag:loader_init wine-staging 10.16 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
00a4:err:environ:init_peb starting L"C:\windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe" in experimental wow64 mode
00a4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00a4:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
00a4:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
00c4:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
00dc:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\winebth": c00000e5
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"winebth" failed to start: 1359
0024:err:environ:init_peb starting L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Civ4BeyondSword.exe" in experimental wow64 mode
0024:fixme:winediag:loader_init wine-staging 10.16 is a testing version containing experimental patches.
0024:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0024:fixme:system:NtUserSystemParametersInfo Unimplemented action: 55 (SPI_SETMOUSEKEYS)
0024:fixme:system:NtUserSystemParametersInfo Unimplemented action: 59 (SPI_SETSTICKYKEYS)
0024:fixme:gameux:GameExplorerImpl_VerifyAccess (021F5DC8, L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Civ4BeyondSword.exe", 0012FBF8)
013c:err:menubuilder:Process_Link unable to load L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Logs.lnk"
013c:err:menubuilder:wWinMain failed to build menu item for L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Logs.lnk"
0144:err:menubuilder:Process_Link unable to load L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Saves.lnk"
0144:err:menubuilder:wWinMain failed to build menu item for L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\Saves.lnk"
0184:err:menubuilder:Process_Link unable to load L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\CivilizationIV.ini.lnk"
0184:err:menubuilder:wWinMain failed to build menu item for L"C:\GOG Games\Civilization IV Complete\Civ4\Beyond the Sword\CivilizationIV.ini.lnk"
00c4:fixme:service:QueryServiceConfig2W Level 6 not implemented
00c4:fixme:service:QueryServiceConfig2W Level 6 not implemented
00c4:fixme:service:QueryServiceConfig2W Level 6 not implemented
00c4:fixme:service:QueryServiceConfig2W Level 6 not implemented
00c4:fixme:service:QueryServiceConfig2W Level 6 not implemented
0024:fixme:wtsapi:WTSRegisterSessionNotification Stub 000100F2 0x00000000
ALSA lib confmisc.c:855:(parse_card) [error.core] cannot find card '0'
ALSA lib conf.c:5207:(_snd_config_evaluate) [error.core] function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) [error.core] error evaluating strings
ALSA lib conf.c:5207:(_snd_config_evaluate) [error.core] function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) [error.core] error evaluating name
ALSA lib conf.c:5207:(_snd_config_evaluate) [error.core] function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5730:(snd_config_expand) [error.core] Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM default
ALSA lib confmisc.c:855:(parse_card) [error.core] cannot find card '0'
ALSA lib conf.c:5207:(_snd_config_evaluate) [error.core] function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) [error.core] error evaluating strings
ALSA lib conf.c:5207:(_snd_config_evaluate) [error.core] function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) [error.core] error evaluating name
ALSA lib conf.c:5207:(_snd_config_evaluate) [error.core] function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5730:(snd_config_expand) [error.core] Evaluate error: No such file or directory
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) [error.pcm] Unknown PCM default
'import site' failed; use -v for traceback
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "Apple M2 (G14G B0)").
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:winediag:wined3d_dll_init Setting multithreaded command stream to 0.
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "Apple M2 (G14G B0)").
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:fixme:d3d:wined3d_guess_card No card selector available for card vendor 0000 (using GL_RENDERER "Apple M2 (G14G B0)").
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:err:d3d:wined3d_adapter_find_polyoffset_scale PolygonOffset scale factor detection failed, using fallback value 2^23.
0024:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
0024:fixme:opengl:wow64_map_buffer Doing a copy of a mapped buffer (expect performance issues)
0024:fixme:d3d:wined3d_device_apply_stateblock Last Pixel Drawing Disabled, not handled yet.
0024:fixme:wtsapi:WTSUnRegisterSessionNotification Stub 000100F2

civ iv logs
--- PythonDbg.log --- (last lines)
Initializing Python
....
load_module RandomScriptMap

load_module Tectonics

PY:Player 0's alive status set to: 1
PY:Player 1's alive status set to: 1
PY:Player 2's alive status set to: 1
PY:Player 3's alive status set to: 1
PY:Player 4's alive status set to: 1
PY:Player 5's alive status set to: 1
PY:Player 6's alive status set to: 1
PY:Player 18's alive status set to: 1
load_module CvGameInterface

load_module CvGameInterfaceFile

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions