CDK crashes when loading certain maps

I am trying to experiment with the CDK, by loading up the Fulda gap map, and it simply doesn’t let me load the map, crashing with the following error, while printing WaterService: shader 'water3d_compatibility' not found to console. But some quick testing indicated that this isn’t the issue, as it comes up even when loading some other map succesfully…

What can I do about this?

1 Like

After looking through the crashlog, it seems that the exception occured when trying to load the shader for “rendinst_simple_painted”

 11.51 GRSS loadGameResPack(D:/SteamLibrary/steamapps/common/War Thunder/content/base/res/poland_buildings.grp) start
 11.51 [D]  . prog\engine\gameRes\gameResSystem.cpp,800: loading GRP D:/SteamLibrary/steamapps/common/War Thunder/content/base/res/poland_buildings.grp
 11.52 [W]  rendinst_simple_glass: skip unused mtex[0]=160563201 (glass_cracked_tex_d*?u01), texMask=0000
 11.52 [W]  rendinst_simple_glass: skip unused mtex[2]=160567297 (glass_cracked_tex_n*?q0-1-1u03), texMask=0000
 11.52 [E]  Shader 'rendinst_simple_painted' not found in bin dump
 11.52 [F]  Exception occured. Game will be closed!

And the full dump is:

Full Dump
  attempt to read memory at 00000000
Exception record: .exr 000000653BCFB3F0 (for full dump)

  RIP:    7FF7A892B5E2 RSP:      653BCFB620 RBP:    7FEAA115CAA0
  RAX:    7FEAA115CC0C RBX:    7FEAA1089798 RCX:               0
  RDX:              12 RSI:    7FEAA115CAA0 RDI:    7FEAA1089888
  EFLAGS:00010246

 11.73 [F]  Call stack (48 frames, BP: 00007FF7A87A0000):
  7FF7A892B5E2 daEditor3x-dev! ShaderMesh::patchData  +450/588
    prog\engine\shaders\shaderMesh.cpp(409)  +0
  7FF7A897A595 daEditor3x-dev! InstShaderMeshResource::loadResource  +181/203
    prog\engine\shaders\instShaderMeshRes.cpp(25)  +0
  7FF7A892E5BC daEditor3x-dev! RenderableInstanceLodsResource::patchAndLoadData  +460/1424
    prog\engine\shaders\rendInstRes.cpp(454)  +107
  7FF7A892E2C1 daEditor3x-dev! RenderableInstanceLodsResource::loadResource  +1009/1301
    prog\engine\shaders\rendInstRes.cpp(218)  +0
  7FF7A89A5B55 daEditor3x-dev! RendInstGameResFactory::loadGameResourceData  +309/694
    prog\engine\gameRes\rendInstGameRes.cpp(161)  +79
  7FF7A89B33D3 daEditor3x-dev! GameResPackInfo::loadPack  +2995/4182
    prog\engine\gameRes\gameResSystem.cpp(938)  +0
  7FF7A89B27C2 daEditor3x-dev! loadGameResPack  +434/515
    prog\engine\gameRes\gameResSystem.cpp(1004)  +0
  7FF7A89B3D03 daEditor3x-dev! load_game_resource_pack  +1155/1300
    prog\engine\gameRes\gameResSystem.cpp(1169)  +0
  7FF7A89A5922 daEditor3x-dev! RendInstGameResFactory::getGameResource  +82/203
    prog\engine\gameRes\rendInstGameRes.cpp(75)  +0
  7FF7A89B17B6 daEditor3x-dev! get_game_resource_ex  +246/287
    prog\engine\gameRes\gameResSystem.cpp(1478)  +20
  7FF7A8CB32BA daEditor3x-dev! RendInstGenData::prepareRtData  +1498/13808
    prog\gameLibs\rendInst\rendInstGen.cpp(412)  +15
  7FF7A8CB25A9 daEditor3x-dev! rendinst::prepareRIGen  +1049/2881
    prog\gameLibs\rendInst\rendInstGen.cpp(2560)  +152
  7FF7A8B1BA8B daEditor3x-dev! AcesScene::bdlCustomLoad  +795/1810
    prog\tools\sceneTools\daEditorX\binSceneView\strmLevel.cpp(685)  +0
  7FF7A9547513 daEditor3x-dev! load_binary_dump  +4947/6483
    prog\engine\scene\loadLevel.cpp(315)  +70
  7FF7A9545D46 daEditor3x-dev! load_binary_dump  +1462/2600
    prog\engine\scene\loadLevel.cpp(381)  +154
  7FF7A8B1D39F daEditor3x-dev! AcesScene::loadLevel  +2639/7674
    prog\tools\sceneTools\daEditorX\binSceneView\strmLevel.cpp(377)  +17
  7FF7A8B187A9 daEditor3x-dev! BinSceneViewPlugin::loadScene  +441/513
    prog\tools\sceneTools\daEditorX\binSceneView\plugin_scn.cpp(400)  +62
  7FF7A8B19664 daEditor3x-dev! BinSceneViewPlugin::setVisible  +68/333
    prog\tools\sceneTools\daEditorX\binSceneView\plugin_scn.cpp(124)  +0
  7FF7A8B17CD7 daEditor3x-dev! BinSceneViewPlugin::changeLevelBinary  +247/268
    prog\tools\sceneTools\daEditorX\binSceneView\plugin_scn.cpp(415)  +16
  7FF7A8B191E7 daEditor3x-dev! BinSceneViewPlugin::onPluginMenuClick  +2071/2109
    prog\tools\sceneTools\daEditorX\binSceneView\plugin_scn.cpp(541)  +0
  7FF7A8B17BC7 daEditor3x-dev! BinSceneViewPlugin::catchEvent  +375/393
    prog\tools\sceneTools\daEditorX\binSceneView\plugin_scn.cpp(349)  +0
  7FF7A88C147B daEditor3x-dev! DagorEdAppWindow::spawnEvent  +91/137
    prog\tools\sceneTools\daEditorX\de_engine.cpp(874)  +27
  7FF7A88B2F0C daEditor3x-dev! DagorEdAppWindow::startWithWorkspace  +1932/2149
    prog\tools\sceneTools\daEditorX\de_appwnd.cpp(1668)  +0
  7FF7A88D1D17 daEditor3x-dev! AppManager::onInit  +999/1018
    prog\tools\sceneTools\daEditorX\dagored_main.cpp(154)  +19
  7FF7A8A7BD42 daEditor3x-dev! EditorMainWindow::run  +386/417
    prog\tools\libTools\EditorCore\ec_mainWindow.cpp(502)  +0
  7FF7A88D14A5 daEditor3x-dev! dagor_program_exec  +1253/1421
    prog\dagorInclude\startup\dag_winMain.inc.cpp(173)  +157
  7FF7A88D230E daEditor3x-dev! WinMain  +878/963
    prog\dagorInclude\startup\dag_winMain.inc.cpp(85)  +16
  7FF7A9458446 daEditor3x-dev! __scrt_common_main_seh  +262/369
    D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288)  +33
  7FF9FB7C7374 kernel32! BaseThreadInitThunk  +20/2768
  7FF9FD71CC91 ntdll! RtlUserThreadStart  +33/80
  9106F103A2048302 ?
  D3084E04E7058302 ?
  FF05F10362048302 ?
  CA0619041A058302 ?
  6006F103A2048302 ?
  A0084E04AE058302 ?
  3906F10362048302 ?
  9D07190420058302 ?
  A106F103A2048302 ?
  F5084E04E7058302 ?
  FF05F10362048302 ?
  A50619041A058302 ?
  4006F103A2048302 ?
  64084E04AE058302 ?
  1306F10362048302 ?
  F906190420058302 ?
  9106F103A2048302 ?
  CB084E04E7058302 ?

Been a bug for 1+ years now. Before loading press f11 and disable entity visual geom. If that doesnt work then you’re out of luck until they fix it. Most ground (avg) maps dont work at all.

1 Like

Currently, CDK is a HUGE mess. Half the maps crash either as soon as you load them, or when you try to move around. Plus, many assets will crash it when you have the viewer on. It’s great fun to try to setup an airfield blind.

It’s been a year and a half since the last update, it’s about time they release a new one.

1 Like

One trick is making it so assets don’t load, before loading a map, press f8 (i think) and it will make it so most map assets that are crashing the cdk on older maps don’t. But it only works on some maps. Like I got it to work on the sun city map, but normally if you get too close when the buildings are rendered, it crashes.