Jump to content

DCS MT crashes seemingly randomly


Go to solution Solved by Flappie,

Recommended Posts

Posted (edited)

Thank you. I see an error with your VR driver, but it does not seem to be the source of your crash:

2023-10-13 09:24:00.954 ERROR   VISUALIZER (Main): OpenXR exception: XrResult failure [XR_ERROR_FORM_FACTOR_UNAVAILABLE]
    Origin: xr
    Source: Projects\Visualizer\Source\OpenXR\openxr_program.cpp:447

I see a lot of errors caused by custom scripts. It looks like a conflict between Tacview and TheWay (your log is filled with this).

2023-10-13 09:27:03.557 ERROR   THEWAY (Main): Error in upstream LuaExportAfterNextFrame function[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/DCSDTC.lua"]:429: attempt to index a nil value
2023-10-13 09:27:03.557 ERROR   Lua::Config (Main): Call error LuaExportAfterNextFrame:[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TheWay.lua"]:126: attempt to index a nil value
stack traceback:
	[C]: ?
	[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TheWay.lua"]:126: in function 'PrevLuaExportAfterNextFrame'
	[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:65: in function <[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:58>.
2023-10-13 09:27:03.561 INFO    DXGUI_WIN_ADAPTER (Main): resize main window to [2560, 1440]
2023-10-13 09:27:03.771 ERROR   THEWAY (Main): Error in upstream LuaExportAfterNextFrame function[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/DCSDTC.lua"]:429: attempt to index a nil value
2023-10-13 09:27:03.771 ERROR   Lua::Config (Main): Call error LuaExportAfterNextFrame:[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TheWay.lua"]:126: attempt to index a nil value
stack traceback:
	[C]: ?
	[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TheWay.lua"]:126: in function 'PrevLuaExportAfterNextFrame'
	[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:65: in function <[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:58>.
2023-10-13 09:27:03.800 ERROR   THEWAY (Main): Error in upstream LuaExportAfterNextFrame function[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/DCSDTC.lua"]:429: attempt to index a nil value
2023-10-13 09:27:03.801 ERROR   Lua::Config (Main): Call error LuaExportAfterNextFrame:[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TheWay.lua"]:126: attempt to index a nil value
stack traceback:

These errors end up causing DCS demise (see, the lua.dll crashes):

2023-10-13 10:05:34.663 INFO    EDCORE (Main): # -------------- 20231013-100534 --------------
2023-10-13 10:05:34.663 INFO    EDCORE (Main): DCS/2.8.8.43704 (x86_64; MT; Windows NT 10.0.22621)
2023-10-13 10:05:34.664 INFO    EDCORE (Main): D:\DCS Open Beta\DCS World OpenBeta\bin-mt\lua.dll
2023-10-13 10:05:34.664 INFO    EDCORE (Main): # C0000005 ACCESS_VIOLATION at 00007fff1f2e9cae 00:00000000
2023-10-13 10:05:34.665 INFO    EDCORE (Main): SymInit: Symbol-SearchPath: 'D:\DCS Open Beta\DCS World OpenBeta\bin-mt;', symOptions: 532, UserName: 'lbuer'
2023-10-13 10:05:34.665 INFO    EDCORE (Main): OS-Version: 10.0.22621 () 0x300-0x1
2023-10-13 10:05:34.666 INFO    EDCORE (Main): 0x0000000000009cae (lua): luaF_newproto + 0x187E
2023-10-13 10:05:34.666 INFO    EDCORE (Main): 0x0000000000009669 (lua): luaF_newproto + 0x1239
2023-10-13 10:05:34.666 INFO    EDCORE (Main): 0x0000000000009080 (lua): luaF_newproto + 0xC50
2023-10-13 10:05:34.667 INFO    EDCORE (Main): 0x0000000000001eaf (lua): lua_pushstring + 0x5F
2023-10-13 10:05:34.667 INFO    EDCORE (Main): 0x000000000066ea6d (DCS): SW + 0x1D86BD
2023-10-13 10:05:34.667 INFO    EDCORE (Main): 0x000000000066bf14 (DCS): SW + 0x1D5B64
2023-10-13 10:05:34.667 INFO    EDCORE (Main): 0x000000000066b955 (DCS): SW + 0x1D55A5
2023-10-13 10:05:34.667 INFO    EDCORE (Main): 0x0000000000007195 (lua): luaD_growstack + 0x4B5
2023-10-13 10:05:34.667 INFO    EDCORE (Main): 0x0000000000006b4c (lua): lua_setlocal + 0x9FC
2023-10-13 10:05:34.667 INFO    EDCORE (Main): 0x000000000000737f (lua): luaD_growstack + 0x69F
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x0000000000006d4e (lua): luaD_growstack + 0x6E
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x0000000000001c00 (lua): lua_pcall + 0x60
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x00000000000188cb (tacview): (function-name not available) + 0x0
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x0000000000027abd (tacview): luaopen_tacview + 0x393D
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x0000000000033457 (tacview): luaopen_tacview + 0xF2D7
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x0000000000024176 (tacview): (function-name not available) + 0x0
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x0000000000007195 (lua): luaD_growstack + 0x4B5
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x00000000000133c9 (lua): luaS_newlstr + 0x3EE9
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x0000000000006b5b (lua): lua_setlocal + 0xA0B
2023-10-13 10:05:34.668 INFO    EDCORE (Main): 0x000000000000737f (lua): luaD_growstack + 0x69F
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x0000000000006d4e (lua): luaD_growstack + 0x6E
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x0000000000001c00 (lua): lua_pcall + 0x60
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x0000000000074b49 (edCore): ED_lua_pcall + 0x59
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x000000000007054b (edCore): Lua::Config::call_func + 0xEB
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x000000000098b169 (DCS): SW + 0x4F4DB9
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x0000000000877b05 (DCS): SW + 0x3E1755
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x000000000089946a (DCS): SW + 0x4030BA
2023-10-13 10:05:34.669 INFO    EDCORE (Main): 0x0000000000857f24 (DCS): SW + 0x3C1B74
2023-10-13 10:05:34.670 INFO    EDCORE (Main): 0x0000000000858e02 (DCS): SW + 0x3C2A52
2023-10-13 10:05:34.670 INFO    EDCORE (Main): 0x000000000270adb0 (DCS): AmdPowerXpressRequestHighPerformance + 0x135CDAC
2023-10-13 10:05:34.670 INFO    EDCORE (Main): 0x0000000000c5a782 (DCS): SW + 0x7C43D2
2023-10-13 10:05:34.670 INFO    EDCORE (Main): 0x000000000001257d (KERNEL32): BaseThreadInitThunk + 0x1D
2023-10-13 10:05:34.865 INFO    EDCORE (Main): Minidump created.
2023-10-13 10:05:34.866 INFO    Lua::Config (Main): stack traceback:
2023-10-13 10:05:34.866 WARNING LOG (13100): 2 duplicate message(s) skipped.
2023-10-13 10:05:34.866 INFO    Lua::Config (Main): stack traceback:
	[C]: ?
	[C]: in function 'ExportUpdate'
	[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:62: in function <[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:58>

 

If you want a quick way to stop these crashes, simply rename your "Saved Games/DCS.../Scritps/Export.lua" file to "Export.lua.bak". But it will break your custom scripts (no Tacvew, no The Way...).

Please attach your Export.lua file.

Edited by Flappie
  • Like 2

---

Posted

I've changed the order of the calls. Try it and see if you keep having these error messages in your log.

Export.lua

I've often seen issues when WinWing scripts are called first. I put them in last position. SRS and Tacview usually work fine when placed above the others.

If that does not work, you need to comment out each line (use "--" as a prefix) until you find the culprit(s).

  • Like 2

---

Posted

It looks like a very different issue. It points to sounds handling (ed_sound.dll):

2023-10-14 16:14:35.732 INFO    EDCORE (Main): try to write dump information
2023-10-14 16:14:35.782 INFO    EDCORE (Main): # -------------- 20231014-161436 --------------
2023-10-14 16:14:35.783 INFO    EDCORE (Main): DCS/2.8.8.43704 (x86_64; MT; Windows NT 10.0.22621)
2023-10-14 16:14:35.783 INFO    EDCORE (Main): D:\DCS Open Beta\DCS World OpenBeta\bin-mt\ed_sound.dll
2023-10-14 16:14:35.784 INFO    EDCORE (Main): # C0000005 ACCESS_VIOLATION at 00007ff953387561 00:00000000
2023-10-14 16:14:35.784 INFO    EDCORE (Main): SymInit: Symbol-SearchPath: 'D:\DCS Open Beta\DCS World OpenBeta\bin-mt;', symOptions: 532, UserName: 'lbuer'
2023-10-14 16:14:35.785 INFO    EDCORE (Main): OS-Version: 10.0.22621 () 0x300-0x1
2023-10-14 16:14:35.785 INFO    EDCORE (Main): 0x0000000000007561 (ed_sound): SND_host_update + 0x1DC1
2023-10-14 16:14:35.785 INFO    EDCORE (Main): 0x0000000000008ed2 (ed_sound): SND_source_play + 0x102
2023-10-14 16:14:35.786 INFO    EDCORE (Main): 0x000000000012bb13 (Sound): Sound::PlaneSounder::update + 0x3B3
2023-10-14 16:14:35.786 INFO    EDCORE (Main): 0x0000000000506f40 (DCS): SW + 0x70B90
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x00000000006b43c7 (DCS): SW + 0x21E017
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x0000000000672279 (DCS): SW + 0x1DBEC9
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x0000000000675f08 (DCS): SW + 0x1DFB58
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x0000000000003b53 (World): wSimTrace::CommandsTraceDiscreteIsOn + 0x4C3
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x000000000000405e (World): wSimCalendar::DoActionsUntil + 0x1FE
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x0000000000877dc8 (DCS): SW + 0x3E1A18
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x0000000000877a91 (DCS): SW + 0x3E16E1
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x000000000089946a (DCS): SW + 0x4030BA
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x0000000000857f24 (DCS): SW + 0x3C1B74
2023-10-14 16:14:35.787 INFO    EDCORE (Main): 0x0000000000858e02 (DCS): SW + 0x3C2A52
2023-10-14 16:14:35.788 INFO    EDCORE (Main): 0x000000000270adb0 (DCS): AmdPowerXpressRequestHighPerformance + 0x135CDAC
2023-10-14 16:14:35.788 INFO    EDCORE (Main): 0x0000000000c5a782 (DCS): SW + 0x7C43D2
2023-10-14 16:14:35.788 INFO    EDCORE (Main): 0x000000000001257d (KERNEL32): BaseThreadInitThunk + 0x1D
2023-10-14 16:14:36.036 INFO    EDCORE (Main): Minidump created.

I'm not sure what's happening here. I think it is caused by one of these mods, maybe a conflict between two different mods (that happens):

2023-10-14 15:15:26.928 INFO    SOUND (Main): Added sound path: C:\Users\lbuer\Saved Games\DCS.openbeta\Mods/tech/IDF Assets Pack/Sounds
2023-10-14 15:15:26.982 INFO    SOUNDER (Main): Loaded 6 sounders.
2023-10-14 15:15:27.004 INFO    SOUND (Main): Added sound path: C:\Users\lbuer\Saved Games\DCS.openbeta\Mods/aircraft/A-4E-C/Sounds
2023-10-14 15:15:28.099 INFO    SOUNDER (Main): Loaded 4 sounders.
2023-10-14 15:15:28.276 INFO    SOUND (Main): Added sound path: C:\Users\lbuer\Saved Games\DCS.openbeta\Mods/aircraft/Hercules ver 6.8.2/Sounds
2023-10-14 15:15:28.601 INFO    SOUNDER (Main): Loaded 1 sounders.
2023-10-14 15:15:28.618 INFO    SOUND (Main): Added sound path: C:\Users\lbuer\Saved Games\DCS.openbeta\Mods/aircraft/UH-60L/Sounds
2023-10-14 15:15:29.135 INFO    SOUNDER (Main): Loaded 6 sounders.
2023-10-14 15:15:29.164 INFO    SOUND (Main): Added sound path: C:\Users\lbuer\Saved Games\DCS.openbeta\Mods/aircraft/VNAO_T45/Sounds

 

It seems your previous crashes were caused by WinWing script beeing called first. See, the conflict is still present:

stack traceback:
	[C]: ?
	[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TheWay.lua"]:126: in function 'PrevLuaExportAfterNextFrame'
	[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:70: in function <[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TacviewGameExport.lua"]:63>.
2023-10-14 15:45:22.249 ERROR   THEWAY (Main): Error in upstream LuaExportAfterNextFrame function[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/DCSDTC.lua"]:429: attempt to index a nil value
2023-10-14 15:45:22.249 ERROR   Lua::Config (Main): Call error LuaExportAfterNextFrame:[string "C:\Users\lbuer\Saved Games\DCS.openbeta\Scripts/TheWay.lua"]:126: attempt to index a nil value

This conflict certainly has nothing to do with the sound-related crash above, but you should try to solve it as well.

---

Posted
2023-10-14 17:11:05.345 ERROR   DX11BACKEND (12668): Failed assert `false && "failed to create texture"` at Projects\render\dx11backend_win8\Source\DX11TextureManager.cpp:711
2023-10-14 17:11:05.346 WARNING LOG (1952): 5 duplicate message(s) skipped.
2023-10-14 17:11:05.346 INFO    EDCORE (12668): try to write dump information
2023-10-14 17:11:05.400 INFO    EDCORE (12668): # -------------- 20231014-171105 --------------
2023-10-14 17:11:05.401 INFO    EDCORE (12668): DCS/2.8.8.43704 (x86_64; MT; Windows NT 10.0.22621)
2023-10-14 17:11:05.401 INFO    EDCORE (12668): D:\DCS Open Beta\DCS World OpenBeta\bin-mt\GraphicsCore.dll
2023-10-14 17:11:05.402 INFO    EDCORE (12668): # C0000005 ACCESS_VIOLATION at 00007ff9d3d2e2c8 00:00000000
2023-10-14 17:11:05.402 INFO    EDCORE (12668): SymInit: Symbol-SearchPath: 'D:\DCS Open Beta\DCS World OpenBeta\bin-mt;', symOptions: 532, UserName: 'lbuer'
2023-10-14 17:11:05.403 INFO    EDCORE (12668): OS-Version: 10.0.22621 () 0x300-0x1
2023-10-14 17:11:05.404 INFO    EDCORE (12668): 0x000000000003e2c8 (GraphicsCore): render::RenderGraph::~RenderGraph + 0x2E48
2023-10-14 17:11:05.405 INFO    EDCORE (12668): 0x0000000000042133 (GraphicsCore): render::RenderGraph::computeOptimalBarriers + 0x403
2023-10-14 17:11:05.405 INFO    EDCORE (12668): 0x0000000000041c2e (GraphicsCore): render::RenderGraph::bakeGraph + 0x18FE
2023-10-14 17:11:05.405 INFO    EDCORE (12668): 0x000000000000e23f (SceneRenderer): DCSSceneRenderer::bakeRenderGraph + 0x3F
2023-10-14 17:11:05.405 INFO    EDCORE (12668): 0x0000000000106597 (Visualizer): smCamera_Implement::getClipRegion + 0x17737
2023-10-14 17:11:05.405 INFO    EDCORE (12668): 0x00000000000483fb (edCore): ed::this_thread::yield + 0x1531B
2023-10-14 17:11:05.405 INFO    EDCORE (12668): 0x00000000000476d2 (edCore): ed::this_thread::yield + 0x145F2
2023-10-14 17:11:05.406 INFO    EDCORE (12668): 0x0000000000048f73 (edCore): ed::this_thread::yield + 0x15E93
2023-10-14 17:11:05.406 INFO    EDCORE (12668): 0x00000000000326b1 (edCore): ed::thread::_get_current_thread_id + 0x71
2023-10-14 17:11:05.406 INFO    EDCORE (12668): 0x0000000000029363 (ucrtbase): _recalloc + 0xA3
2023-10-14 17:11:05.406 INFO    EDCORE (12668): 0x000000000001257d (KERNEL32): BaseThreadInitThunk + 0x1D

 

Is the GeForce Experience in-game overlay on? If so, try and disable it (this is why I ask about it).

---

Posted

I’ve got an AMD card for which I’ve got the overlay disabled.
I’m happy to assist in any way to try to resolve this for me and possibly others

Posted

OK, sorry, I should have seen it in the log.

Maybe we should get back to the very first issue in your log. This one:

2023-10-14 16:42:12.563 ERROR   VISUALIZER (Main): OpenXR exception: XrResult failure [XR_ERROR_FORM_FACTOR_UNAVAILABLE]
    Origin: xr
    Source: Projects\Visualizer\Source\OpenXR\openxr_program.cpp:447

According to OpenXR doc, it means "The specified form factor is supported, but the device is currently not available, e.g. not plugged in or powered off". Does it mean you turn your VR gear on after DCS startup? If so, turn it on before DCS starts and see if that changes anything.

 

---

  • Solution
Posted
34 minutes ago, foltrever said:

I don’t use be anymore

You mean you don't use VR anymore?

Then you should try to force VR deactivation:

1/ Browse to "D:\DCS Open Beta\DCS World OpenBeta\bin-mt\".

2/ Press LAlt then drag your DCS.exe file elsewhere in the folder. A shortcut will be created.

3/ Now, edit the new shortcut and have the Target field looks exactly like this:

"D:\DCS Open Beta\DCS World OpenBeta\bin-mt\DCS.exe" --force_disable_VR

4/ Apply.

5/ Run DCS using this new shortcut, and see if the crashes keep going.

---

Posted

Well, it seems like I was just stupid. I’ve accidentally set my XMP for my ram to 3200mhz instead of 3600. I’ll keep an eve on it but the short test yesterday seems to have worked. I’ve also fixed the other issues you’ve pointed out.
Thank you so much!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...