Skip to content

BG2 - Game crashes at launch (generates crash report)

BGMattBGMatt Member Posts: 30
edited January 2023 in Troubleshooting
The error says, "There was an error. A crash report was saved to: ..."

I had successfully played the game a couple of months ago, but it crashes this way every time now. BG1 had crashed earlier this week and threw an error related to the openal32.dll. Running the openal installer included with the game stopped that error but now I get the same type of error in both BG1 and BG2. I have BG1 on Steam and BG2 on GoG. The error happens regardless of whether I use those respective platforms to launch or if I run them directly from the .exe. I have verified the files in BG1 via steam/GoG, as well as reinstalled BG2, and the error persists.

BG2 Game Version = 2.6.6.0

System Information:
Operating System: Windows 10 Home (22H2)
CPU: i7-4770k
GPU: Nvidia 770 GTX 4GB
System RAM: 32 GB

Mod Information:
No mods used and EE keeper only used on BG1, and not in the time between when the game worked and stopped working.

I have attached a zipped version of the crash dump.

Thanks!

Pasted crash dump for those not interested in opening random zips from the internet:
Microsoft (R) Windows Debugger Version 10.0.25200.1003 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [E:\Users\Matt\Documents\Infinity Engine - Enhanced Edition\crash\dump.2.6.6.0.0020.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available


************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 19045 MP (8 procs) Free x64
Product: WinNt, suite: SingleUserTS Personal
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Debug session time: Wed Jan 18 14:38:34.000 2023 (UTC - 8:00)
System Uptime: not available
Process Uptime: not available
................................................................
.............
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(954.6988): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtWaitForSingleObject+0x14:
00007ffc`0372d144 c3              ret
0:000> !analyze -v
*******************************************************************************
*                                                                             *
*                        Exception Analysis                                   *
*                                                                             *
*******************************************************************************


KEY_VALUES_STRING: 1

    Key  : AV.Fault
    Value: Execute

    Key  : Analysis.CPU.mSec
    Value: 811

    Key  : Analysis.DebugAnalysisManager
    Value: Create

    Key  : Analysis.Elapsed.mSec
    Value: 819

    Key  : Analysis.IO.Other.Mb
    Value: 0

    Key  : Analysis.IO.Read.Mb
    Value: 0

    Key  : Analysis.IO.Write.Mb
    Value: 0

    Key  : Analysis.Init.CPU.mSec
    Value: 374

    Key  : Analysis.Init.Elapsed.mSec
    Value: 3569

    Key  : Analysis.Memory.CommitPeak.Mb
    Value: 99

    Key  : WER.OS.Branch
    Value: vb_release

    Key  : WER.OS.Timestamp
    Value: 2019-12-06T14:06:00Z

    Key  : WER.OS.Version
    Value: 10.0.19041.1

    Key  : WER.Process.Version
    Value: 2.6.6.0


FILE_IN_CAB:  dump.2.6.6.0.0020.dmp

APPLICATION_VERIFIER_FLAGS:  0

CONTEXT:  (.ecxr)
rax=0000000000000000 rbx=00000000034be2f0 rcx=000000000be61440
rdx=000000000bedd95c rsi=000000014073c610 rdi=0000000000000527
rip=0000000000000000 rsp=000000000014f9f8 rbp=00000001407365d0
 r8=0000000000000527  r9=0000000000000000 r10=000000000be2dbcc
r11=000000000bedd95c r12=000000000000033b r13=0000000000000001
r14=0000000000613620 r15=0000000000000364
iopl=0         nv up ei pl zr na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010246
00000000`00000000 ??              ???
Resetting default scope

EXCEPTION_RECORD:  (.exr -1)
ExceptionAddress: 0000000000000000
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 0000000000000008
   Parameter[1]: 0000000000000000
Attempt to execute non-executable address 0000000000000000

PROCESS_NAME:  Baldur.exe

EXECUTE_ADDRESS: 0

FAILED_INSTRUCTION_ADDRESS: 
+0
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR:  c0000005

EXCEPTION_PARAMETER1:  0000000000000008

EXCEPTION_PARAMETER2:  0000000000000000

STACK_TEXT:  
00000000`0014f9f8 00000001`404273f6     : 00000000`034be2f0 00000001`407365d0 00000001`4073c610 00000000`0415d6c4 : 0x0
00000000`0014fa00 00000001`40426ab2     : 00000000`04740a10 00000001`40754a84 00000000`00000000 00000000`00000000 : Baldur!SDL_malloc+0x4c696
00000000`0014fa90 00000001`404283b5     : 00000000`00000002 00000001`40754a84 00000000`00000000 00000000`00000002 : Baldur!SDL_malloc+0x4bd52
00000000`0014fca0 00000001`40415e69     : 00000000`000d0f7b 00000000`000d0f7b 00000000`0014fd99 00000000`00ac05b7 : Baldur!SDL_malloc+0x4d655
00000000`0014fd40 00000001`404191d5     : 00000000`0065c448 00000000`0065c3a0 00000000`00000001 00000000`00000001 : Baldur!SDL_malloc+0x3b109
00000000`0014fe00 00000001`4041beab     : 00000001`4065bb24 00000001`4065bb24 00000001`4065bb24 00000001`4065bb24 : Baldur!SDL_malloc+0x3e475
00000000`0014fe30 00000001`40136ff8     : 00000000`0014fed0 00000000`0014fed0 00000000`00000001 00000000`00000001 : Baldur!SDL_malloc+0x4114b
00000000`0014fe80 00000001`40566284     : 00000000`0014fed0 00000000`0014fee0 00000000`005b6020 00000000`00000001 : Baldur!SDL_GetNumRenderDrivers+0x83e68
00000000`0014feb0 00000001`404f7462     : 00000000`0000000a 00000000`00000000 00000000`00000000 00000000`00000000 : Baldur!SDL_SaveBMP_RW+0xadaf4
00000000`0014fef0 00007ffc`02337614     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Baldur!SDL_SaveBMP_RW+0x3ecd2
00000000`0014ff30 00007ffc`036e26a1     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
00000000`0014ff60 00000000`00000000     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21


STACK_COMMAND:  ~0s; .ecxr ; kb

SYMBOL_NAME:  baldur+4c696

MODULE_NAME: Baldur

IMAGE_NAME:  Baldur.exe

FAILURE_BUCKET_ID:  SOFTWARE_NX_FAULT_c0000005_Baldur.exe!Unknown

OS_VERSION:  10.0.19041.1

BUILDLAB_STR:  vb_release

OSPLATFORM_TYPE:  x64

OSNAME:  Windows 10

IMAGE_VERSION:  2.6.6.0

FAILURE_ID_HASH:  {edc92a0f-a677-40c3-40cc-cdb5d64cbe7f}

Followup:     MachineOwner
---------

Post edited by BGMatt on

Comments

  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,724
    Please try this solution (the B variant): https://steamcommunity.com/sharedfiles/filedetails/?id=2463928577

    (it works for games purchased from every store)

    Or check out this instruction: https://beamdog.atlassian.net/servicedesk/customer/article/2192637976
  • BubbBubb Member Posts: 1,000
    Based on the attached crash .dmp, it looks like your system is missing the required DirectX runtimes. You can download them directly from Microsoft here. Make sure to uncheck the Bing bloatware when stepping through the installer.

    You can also try setting the game to use the OpenGL renderer. Navigate to
    <Drive>:\Users\<username>\Documents\Baldur's Gate II - Enhanced Edition\Baldur.lua
    
    and change
    SetPrivateProfileString('Graphics','Backend','1')
    
    to
    SetPrivateProfileString('Graphics','Backend','0')
    
  • BGMattBGMatt Member Posts: 30
    Thanks! The thing that fixed it ended up being deleting the lua file. I'm not sure what was changed in there that caused the game not to work, it must have been something else that was no longer compatible with the settings in the lua because reverting to defaults suddenly made it work again.
Sign In or Register to comment.