OpenXRay / xray-16

Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
https://discord.gg/sjRMQwv
Other
2.91k stars 455 forks source link

assertion failed on FreeBSD #1224

Open Martinfx opened 1 year ago

Martinfx commented 1 year ago

Describe the bug

FATAL ERROR

[error] Expression : K [error] Function : RegisterModel [error] File : /code/xray-16/src/xrGame/GamePersistent.cpp [error] Line : 196 [error] Description : assertion failed

To Reproduce Compile with clang on FreeBSD 13.1 run ./bin/x64/Debug/xr_3da


**BugTrap error report**
* thread #1, name = 'Primary thread', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
    frame #0: 0x000000080cb9379b xrGame.so`CGamePersistent::RegisterModel(this=<unavailable>, V=0x000000082119d4c0) at GamePersistent.cpp:197:28
   194          R_ASSERT2(GMLib.GetMaterialByIdx(def_idx)->Flags.is(SGameMtl::flDynamic), "'default_object' - must be dynamic");
   195          IKinematics* K = smart_cast<IKinematics*>(V);
   196          VERIFY(K);
-> 197          const u16 cnt = K->LL_BoneCount();
   198          for (u16 k = 0; k < cnt; k++)
   199          {
   200              CBoneData& bd = K->LL_GetData(k);
(lldb) 
error: No auto repeat.
(lldb) bt
* thread #1, name = 'Primary thread', stop reason = signal SIGSEGV: invalid address (fault address: 0x0)
  * frame #0: 0x000000080cb9379b xrGame.so`CGamePersistent::RegisterModel(this=<unavailable>, V=0x000000082119d4c0) at GamePersistent.cpp:197:28
    frame #1: 0x00000008075c2a0e xrRender_GL.so`CModelPool::Instance_Load(this=0x000000081661cb80, N=<unavailable>, allow_register=1) at ModelPool.cpp:120:24
    frame #2: 0x00000008075c337d xrRender_GL.so`CModelPool::Create(this=0x000000081661cb80, name=<unavailable>, data=0x0000000000000000) at ModelPool.cpp:247:24
    frame #3: 0x0000000807660320 xrRender_GL.so`CRender::model_Create(this=<unavailable>, name=<unavailable>, data=<unavailable>) at r2.cpp:751:83
    frame #4: 0x000000080cdb692c xrGame.so`player_hud::load(this=<unavailable>, player_hud_sect=0x00007fffffffb4c0) at player_hud.cpp:456:61
    frame #5: 0x000000080c93a805 xrGame.so`player_hud::load_default(this=0x0000000806ded840) at player_hud.h:124:27
    frame #6: 0x000000080cc8087a xrGame.so`CLevel::CLevel(this=0x000000082528e2c0) at Level.cpp:109:19
    frame #7: 0x000000080d405762 xrGame.so`CObjectItemSingle<CLevel, true>::client_object() const [inlined] CLevel* xr_new<CLevel>() at xrMemory.h:121:22
    frame #8: 0x000000080d405744 xrGame.so`CObjectItemSingle<CLevel, true>::client_object(this=<unavailable>) const at object_item_single_inline.h:44:13
    frame #9: 0x000000080d0c9c27 xrGame.so`::xrFactory_Create(CLASS_ID) [inlined] CObjectFactory::client_object(this=0x000000081e28d030) const at object_factory_inline.h:128:25
    frame #10: 0x000000080d0c9b55 xrGame.so`::xrFactory_Create(clsid=5142913160164232224) at xrGame.cpp:26:51
    frame #11: 0x000000080033c054 xrEngine.so`CApplication::OnEvent(this=0x0000000802607000, E=<unavailable>, P1=34383500672, P2=34883078592) at x_ray.cpp:125:51
    frame #12: 0x00000008002e4ca2 xrEngine.so`CEventAPI::OnFrame() at EventAPI.cpp:39:26
    frame #13: 0x00000008002e4c7a xrEngine.so`CEventAPI::OnFrame() [inlined] CEventAPI::Signal(this=0x000000080036e620, E=0x0000000802616bf0, P1=34383500672, P2=34883078592) at EventAPI.cpp:114:8
    frame #14: 0x00000008002e4c72 xrEngine.so`CEventAPI::OnFrame(this=<unavailable>) at EventAPI.cpp:175:9
    frame #15: 0x000000080033c784 xrEngine.so`CApplication::OnFrame(this=<unavailable>) at x_ray.cpp:287:18
    frame #16: 0x000000080034845f xrEngine.so`MessageRegistry<pureFrame>::Process() [inlined] pureFrame::OnPure(self=<unavailable>) at pure.h:18:1
    frame #17: 0x000000080034845a xrEngine.so`MessageRegistry<pureFrame>::Process(this=0x000000080037af98) at pure.h:101:21
    frame #18: 0x0000000800347197 xrEngine.so`CRenderDevice::FrameMove(this=0x000000080037abb0) at device.cpp:479:14
    frame #19: 0x0000000800346eba xrEngine.so`CRenderDevice::ProcessFrame(this=0x000000080037abb0) at device.cpp:261:5
    frame #20: 0x00000008003472d9 xrEngine.so`CRenderDevice::message_loop(this=0x000000080037abb0) at device.cpp:392:9
    frame #21: 0x000000080034765e xrEngine.so`CRenderDevice::Run(this=0x000000080037abb0) at device.cpp:425:5
    frame #22: 0x000000080033a643 xrEngine.so`Startup() at main.cpp:310:12
    frame #23: 0x000000080033adb5 xrEngine.so`RunApplication() at main.cpp:366:5
    frame #24: 0x0000000000202640 xr_3da`entry_point(commandLine="") at entry_point.cpp:96:25
    frame #25: 0x000000000020271b xr_3da`main(argc=<unavailable>, argv=<unavailable>) at entry_point.cpp:155:18
    frame #26: 0x0000000000202310 xr_3da`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1_c.c:75:7

Desktop (please complete the following information): FreeBSD 13.1 AMD64 ! Couldn't create surface from image: Parameter 'src' is invalid OpenXRay Mixed build 8741, Jan 12 2023 (BSD 64-bit, shared) Custom build from commit[6c499cadce2f3fa5c4d8fdc41ba8f00e9237ec9a] branch[dev]

! Couldn't create surface from image: Parameter 'src' is invalid
OpenXRay Mixed build 8741, Jan 12 2023 (BSD 64-bit, shared)
Custom build from commit[6c499cadce2f3fa5c4d8fdc41ba8f00e9237ec9a] branch[dev]

command line 

* CPU features: RDTSC, MMX, SSE, AVX
* CPU threads: 12

Initializing File System...
$fs_root$ = /home/maxfx/.local/share/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat/
using fs-ltx fsgame.ltx
FS: 28552 files cached 29 archives, 7Kb memory used.
Init FileSystem 0.256517 sec
-----loading \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\system.ltx
-----loading \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\system.ltx
! Failed to determine on which monitor the game is launched.
! SDL: Invalid window
Starting INPUT device...
Loading module: xrRender_GL
Available render modes[1]:
renderer_rgl
Executing config-script "user.ltx"...
! Cannot open script file [user.ltx]
Selected renderer: renderer_rgl
Loading module: xrGame
StringTable: loaded 35 files
Initializing Engine...
SOUND: OpenAL: enumerate devices...
SOUND: OpenAL: EnumerationExtension Present
SOUND: OpenAL: system default sound device name is OpenAL Soft
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
SOUND: OpenAL: All available devices:
1. OpenAL Soft, Spec Version 1.1 (default) eax[0] efx[yes] xram[no]
Executing config-script "\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\default_controls.ltx"...
! Can't find a key name for kF19
! Can't find a key name for kF20
! Can't find a key name for kINTERNATIONAL1
! Can't find a key name for kINTERNATIONAL2
! Can't find a key name for kYEN
! Can't find a key name for kINTERNATIONAL4
! Can't find a key name for kINTERNATIONAL5
! Can't find a key name for kINTERNATIONAL6
! Can't find a key name for kINTERNATIONAL7
! Can't find a key name for kINTERNATIONAL8
! Can't find a key name for kINTERNATIONAL9
! Can't find a key name for kHANGUL
! Can't find a key name for kHANJA
! Can't find a key name for kKATAKANA
! Can't find a key name for kHIRAGANA
! Can't find a key name for kZENHANKAKU
! Can't find a key name for kLANG6
! Can't find a key name for kLANG7
! Can't find a key name for kLANG8
! Can't find a key name for kLANG9
! Can't find a key name for mouse1
! Can't find a key name for mouse2
! Can't find a key name for mouse3
! Can't find a key name for mouse4
! Can't find a key name for mouse5
! Can't find a key name for gpA
! Can't find a key name for gpB
! Can't find a key name for gpX
! Can't find a key name for gpY
! Can't find a key name for gpBACK
! Can't find a key name for gpGUIDE
! Can't find a key name for gpSTART
! Can't find a key name for gpLEFT_STICK
! Can't find a key name for gpRIGHT_STICK
! Can't find a key name for gpLEFT_SHOULDER
! Can't find a key name for gpRIGHT_SHOULDER
! Can't find a key name for gpDPAD_UP
! Can't find a key name for gpDPAD_DOWN
! Can't find a key name for gpDPAD_LEFT
! Can't find a key name for gpDPAD_RIGHT
! Can't find a key name for gpMISC1
! Can't find a key name for gpPADDLE_P1
! Can't find a key name for gpPADDLE_P2
! Can't find a key name for gpPADDLE_P3
! Can't find a key name for gpPADDLE_P4
! Can't find a key name for gpTOUCHPAD
! Can't find a key name for gpAXIS_LEFT
! Can't find a key name for gpAXIS_RIGHT
! Can't find a key name for gpAXIS_TRIGGER_LEFT
! Can't find a key name for gpAXIS_TRIGGER_RIGHT
[\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\default_controls.ltx] successfully loaded.
Executing config-script "user.ltx"...
! Cannot open script file [user.ltx]
SOUND: Selected device is OpenAL Soft
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
* SOUND: EFX extension: present
* sound : cache: 65537 kb, 4856 lines, 13820 bpl
Starting RENDER device...
* GPU vendor: [NVIDIA Corporation] device: [NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2]
* GPU OpenGL version: 4.1.0 NVIDIA 510.60.02
* GPU OpenGL shading language version: 4.10 NVIDIA via Cg compiler
* GPU OpenGL VTF units: [32] CTI units: [192]
* DVB created: 4096K
* DIB created: 512K
! Renderer doesn't support blender 'effects\shadow_world'
Processing 2744 .thm files in [$game_textures$]
Load, texture descriptions loaded for 23 ms
* HWDST/PCF supported and used
MSAA samples = 1
gbuffer_opt = on
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\dumb.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\dumb.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform_t.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_mask.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_sun_mask_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\copy_p_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_volume.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\copy_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_sun_near_nomsaa_nominmax.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_sun.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_sun_far_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_sun_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform_aa_aa.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_sun_near_nomsaa_minmax.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_volumetric_sun_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\rain_layer.ps\256111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform_2uv.vs\256111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\rain_patch_normal_nomsaa.ps\256111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\rain_apply_normal_nomsaa.ps\256111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\rain_apply_gloss_nomsaa.ps\256111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_omni_unshadowed_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_omni_normal_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_omni_transluent_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_spot_unshadowed_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_spot_normal_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_spot_fullsize_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_volumetric.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_volumetric.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\accum_indirect_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_default.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\bloom_build.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform_build.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\bloom_filter.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform_filter.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\bloom_filter_f.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\bloom_luminance_1.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\bloom_luminance_2.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\bloom_luminance_3.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\combine_1_nomsaa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\combine_1.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\combine_2_aa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\combine_2_naa.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\combine_2_aa_d.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\combine_2_naa_d.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\combine_volumetric.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\postprocess.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform_postpr.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\postprocess_cm.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\distort.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_notransform_t_menu.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\particle_distort.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\particle.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\particle.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\particle_s-blend.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\particle-clip.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\particle_s-add.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\particle_s-aadd.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_particle.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_particle.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\portal.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\portal.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\simple_color.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\editor.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\hud_font.ps\2048111100110000000000001000001311112311110000000000
* Loading script: _G.script
* Loading script: class_registrator.script
* Loading script: ui_main_menu.script
* Loading script: smart_terrain.script
* Loading script: se_level_changer.script
* Loading script: se_actor.script
* Loading script: se_stalker.script
* Loading script: se_heli.script
* Loading script: se_zones.script
* Loading script: se_item.script
* Loading script: se_smart_cover.script
* Loading script: se_artefact.script
* Loading script: se_monster.script
* Loading script: sim_squad_scripted.script
* Loading script: game_registrator.script
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\sky2.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\sky2.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\clouds.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\clouds.vs\2048111100110000000000001000001311112311110000000000
Starting engine...
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_default_ma.ps\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\effects_wallmark.vs\2048111100110000000000001000001311112311110000000000
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\stub_default.vs\2048111100110000000000001000001311112311110000000000
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\ambient\rain.ogg]
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\ambient\background\night_bkg_1.ogg]
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\effects_sun.vs\2048111100110000000000001000001311112311110000000000
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\ambient\background\wind_bkg_1.ogg]
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\ambient\background\underground_bkg_1.ogg]
GEnv.Sound->pause_emitters underflow
* Loading shader: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\yuv2rgb.ps\2048111100110000000000001000001311112311110000000000
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\video\intro_gsc.ogg]
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\video\intro_gsc_wp.ogg]
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\video\ati_radeon_1920x1080.ogg]
! Missing ogg-comment, file:  \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\video\ati_radeon_1920x1080.ogg
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\video\amd_fusion_final_720.ogg]
! Missing ogg-comment, file:  \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\video\amd_fusion_final_720.ogg
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\intro\intro_back.dds[136]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_font_hud_01.dds[65664]b
stereo sound source [\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\sounds\music\menu.ogg]
* Loading script: xr_s.script
* [ FreeBSD ]: free[0 K], reserved[0 K], committed[0 K]
* [ Render ]: textures[4330 K]
* [ x-ray  ]: process heap[188 K]
* [ x-ray  ]: economy: strings[7909 K], smem[0 K]
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_actor_main_menu.dds[1048704]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_actor_widescreen_sidepanels.dds[1048704]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_font_graff_22_1600.dds[131200]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_font_graff_19_1600.dds[131200]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_magnifier2.dds[32896]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_01.dds[4224]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_02.dds[4224]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_03.dds[4224]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_04.dds[4224]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_05.dds[4224]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_06.dds[4224]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_07.dds[4224]b
* Loaded: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\textures\ui\ui_ani_cursor_08.dds[4224]b
*  0.0 : [   5] $null
*  0.0 : [   3] $user$accum
*  0.0 : [   1] $user$accum_temp
*  0.0 : [   7] $user$albedo
*  0.0 : [   1] $user$base_0
*  0.0 : [   1] $user$base_depth
*  0.0 : [   6] $user$bloom1
*  0.0 : [   2] $user$bloom2
*  0.0 : [   2] $user$cmap0
*  0.0 : [   2] $user$cmap1
*  0.0 : [   2] $user$env_s0
*  0.0 : [   2] $user$env_s1
*  0.0 : [   1] $user$generic
*  0.0 : [   6] $user$generic0
*  0.0 : [   5] $user$generic1
*  0.0 : [   2] $user$generic2
*  0.0 : [   4] $user$jitter_0
*  0.0 : [   2] $user$jitter_1
*  0.0 : [   1] $user$jitter_2
*  0.0 : [   1] $user$jitter_3
*  0.0 : [   1] $user$jitter_4
*  0.0 : [   1] $user$jitter_mipped
*  0.0 : [   2] $user$lum_t64
*  0.0 : [   3] $user$lum_t8
*  0.0 : [   1] $user$luminance_0
*  0.0 : [   1] $user$luminance_1
*  0.0 : [   1] $user$luminance_2
*  0.0 : [   1] $user$luminance_3
*  0.0 : [   9] $user$material
*  0.0 : [ 111] $user$position
*  0.0 : [   1] $user$sky0
*  0.0 : [   1] $user$sky1
*  0.0 : [   7] $user$smap_depth
*  0.0 : [   3] $user$smap_rain
*  0.0 : [   3] $user$smap_surf
*  0.0 : [   7] $user$tonemap
*  0.0 : [   2] $user$tonemap_src
*  0.0 : [   2] act\act_controller_hit1
*  0.0 : [   2] fx\fx_flare1
*  0.0 : [   1] fx\fx_flare2
*  0.0 : [   1] fx\fx_flare3
*  0.0 : [   2] fx\fx_gradient
*  0.0 : [   2] fx\fx_gradient1
*  0.0 : [   1] fx\fx_lightning
*  0.0 : [   1] fx\fx_noise
*  0.0 : [   2] fx\fx_noise2
*  0.0 : [   1] fx\fx_rain
*  0.0 : [   1] fx\fx_rainsplash1
*  0.0 : [   2] fx\fx_sun
*  0.0 : [   1] fx\fx_sun_rise
*  0.0 : [   1] fx\fx_thunderbolts_gradient
*  0.0 : [   1] fx\fx_thunderbolts_gradient_surge
*  0.0 : [   2] fx\fx_volumefog1
*  0.0 : [   2] glow\glow_04
*  0.0 : [   2] glow\glow_fire1
*  0.0 : [   2] glow\glow_orange
*  0.0 : [   2] glow\glow_orange2
*  0.0 : [   2] glow\glow_orange_bright
*  0.0 : [   2] glow\glow_white
*  0.0 : [   4] lights\lights_spot01
*  0.0 : [   2] pfx\pfx_ani-explosion-02
*  0.0 : [   2] pfx\pfx_ani-explosion-02-b-a
*  0.0 : [   2] pfx\pfx_ani-explosion-02a
*  0.0 : [   2] pfx\pfx_ani-fire01
*  0.0 : [   2] pfx\pfx_ani-smoke-01
*  0.0 : [   2] pfx\pfx_anomaly_1
*  0.0 : [   2] pfx\pfx_anomaly_16
*  0.0 : [   2] pfx\pfx_anomaly_18
*  0.0 : [   2] pfx\pfx_anomaly_19
*  0.0 : [   2] pfx\pfx_anomaly_2
*  0.0 : [   2] pfx\pfx_anomaly_21
*  0.0 : [   2] pfx\pfx_anomaly_23
*  0.0 : [   2] pfx\pfx_anomaly_2_green
*  0.0 : [   2] pfx\pfx_anomaly_3
*  0.0 : [   2] pfx\pfx_anomaly_4
*  0.0 : [   2] pfx\pfx_anomaly_5
*  0.0 : [   2] pfx\pfx_anomaly_6
*  0.0 : [   2] pfx\pfx_anomaly_7
*  0.0 : [   2] pfx\pfx_anomaly_8
*  0.0 : [   2] pfx\pfx_anomaly_88
*  0.0 : [   2] pfx\pfx_anomaly_9
*  0.0 : [   2] pfx\pfx_bloodsplash1
*  0.0 : [   2] pfx\pfx_bloodsplash2
*  0.0 : [   2] pfx\pfx_blurry_cloud
*  0.0 : [   2] pfx\pfx_brick
*  0.0 : [   2] pfx\pfx_bubble
*  0.0 : [   2] pfx\pfx_bubble_1
*  0.0 : [   1] pfx\pfx_bubble_water
*  0.0 : [   2] pfx\pfx_concretedebris_01
*  0.0 : [   2] pfx\pfx_concretepuffs_01
*  0.0 : [   1] pfx\pfx_dist2
*  0.0 : [   1] pfx\pfx_dist2inv
*  0.0 : [   1] pfx\pfx_dist3
*  0.0 : [   1] pfx\pfx_dist4
*  0.0 : [   1] pfx\pfx_dist7
*  0.0 : [   1] pfx\pfx_dist8
*  0.0 : [   1] pfx\pfx_dist9
*  0.0 : [   1] pfx\pfx_dist_teleport
*  0.0 : [   1] pfx\pfx_distort_anomaly
*  0.0 : [   2] pfx\pfx_distortion
*  0.0 : [   2] pfx\pfx_explotions_2
*  0.0 : [   2] pfx\pfx_explotions_3
*  0.0 : [   2] pfx\pfx_explotions_4
*  0.0 : [   2] pfx\pfx_explotions_smoke
*  0.0 : [   2] pfx\pfx_flame
*  0.0 : [   2] pfx\pfx_flame_01
*  0.0 : [   2] pfx\pfx_flamefx_01
*  0.0 : [   2] pfx\pfx_flash_01
*  0.0 : [   2] pfx\pfx_flash_05
*  0.0 : [   2] pfx\pfx_flash_07
*  0.0 : [   2] pfx\pfx_gologramma
*  0.0 : [   2] pfx\pfx_gradient
*  0.0 : [   2] pfx\pfx_gradient1
*  0.0 : [   2] pfx\pfx_leaves_01
*  0.0 : [   2] pfx\pfx_leaves_02
*  0.0 : [   2] pfx\pfx_light1
*  0.0 : [   2] pfx\pfx_light3
*  0.0 : [   2] pfx\pfx_light4
*  0.0 : [   1] pfx\pfx_lighting_stancia_01
*  0.0 : [   1] pfx\pfx_lighting_stancia_02
*  0.0 : [   2] pfx\pfx_lightning_01
*  0.0 : [   2] pfx\pfx_lightning_02
*  0.0 : [   2] pfx\pfx_ligth_6
*  0.0 : [   2] pfx\pfx_plasma
*  0.0 : [   2] pfx\pfx_shells1
*  0.0 : [   2] pfx\pfx_shells2
*  0.0 : [   2] pfx\pfx_skinsplash1
*  0.0 : [   2] pfx\pfx_smoke_a
*  0.0 : [   2] pfx\pfx_smoke_b
*  0.0 : [   2] pfx\pfx_smokepuffs1
*  0.0 : [   2] pfx\pfx_smokepuffs2
*  0.0 : [   2] pfx\pfx_spark_01
*  0.0 : [   2] pfx\pfx_sparks
*  0.0 : [   2] pfx\pfx_specks
*  0.0 : [   2] pfx\pfx_specks_poison
*  0.0 : [   2] pfx\pfx_spikey_star
*  0.0 : [   2] pfx\pfx_splash3
*  0.0 : [   2] pfx\pfx_splash_01
*  0.0 : [   2] pfx\pfx_splash_02
*  0.0 : [   2] pfx\pfx_step_blood
*  0.0 : [   2] pfx\pfx_stonedebris1
*  0.0 : [   3] pfx\pfx_stonedebris2
*  0.0 : [   2] pfx\pfx_synus
*  0.0 : [   2] pfx\pfx_teleport
*  0.0 : [   2] pfx\pfx_test_textures
*  0.0 : [   2] pfx\pfx_vehglassdebris_01
*  0.0 : [   2] pfx\pfx_vehmetaldebris_01
*  0.0 : [   2] pfx\pfx_water_wave
*  0.0 : [   2] pfx\pfx_woodchips1
*  0.0 : [   2] pfx\pfx_woodchips3
*  0.0 : [   2] prop\prop_fake_bed_fireplace
*  0.0 : [   2] prop\prop_provod_02
*  0.0 : [   5] sky\sky_12_vibros_cube
*  0.0 : [   5] sky\sky_12_vibros_cube#small
*  0.0 : [  26] sky\sky_13_cube
*  0.0 : [  26] sky\sky_13_cube#small
*  0.0 : [  16] sky\sky_13_cube_night
*  0.0 : [  16] sky\sky_13_cube_night#small
*  0.0 : [  12] sky\sky_13_vibros_cube
*  0.0 : [  12] sky\sky_13_vibros_cube#small
*  0.0 : [  10] sky\sky_14_cube
*  0.0 : [  10] sky\sky_14_cube#small
*  0.0 : [   4] sky\sky_17_clouds_cube
*  0.0 : [   4] sky\sky_17_clouds_cube#small
*  0.0 : [   4] sky\sky_17_cube
*  0.0 : [   4] sky\sky_17_cube#small
*  0.0 : [   8] sky\sky_18_cube
*  0.0 : [   8] sky\sky_18_cube#small
*  0.0 : [  11] sky\sky_19_cube
*  0.0 : [  11] sky\sky_19_cube#small
*  0.0 : [   4] sky\sky_1_clouds_cube
*  0.0 : [   4] sky\sky_1_clouds_cube#small
*  0.0 : [   4] sky\sky_20_clouds_cube
*  0.0 : [   4] sky\sky_20_clouds_cube#small
*  0.0 : [   4] sky\sky_20_cube
*  0.0 : [   4] sky\sky_20_cube#small
*  0.0 : [   4] sky\sky_2_clouds_cube
*  0.0 : [   4] sky\sky_2_clouds_cube#small
*  0.0 : [   4] sky\sky_2_cube
*  0.0 : [   4] sky\sky_2_cube#small
*  0.0 : [  12] sky\sky_3_cube
*  0.0 : [  12] sky\sky_3_cube#small
*  0.0 : [   3] sky\sky_4_cube
*  0.0 : [   3] sky\sky_4_cube#small
*  0.0 : [  30] sky\sky_5_cube
*  0.0 : [  30] sky\sky_5_cube#small
*  0.0 : [   7] sky\sky_6_cube
*  0.0 : [   7] sky\sky_6_cube#small
*  0.0 : [  11] sky\sky_7_cube
*  0.0 : [  11] sky\sky_7_cube#small
*  0.0 : [   8] sky\sky_8_cube
*  0.0 : [   8] sky\sky_8_cube#small
*  0.0 : [  51] sky\sky_9_cube
*  0.0 : [  51] sky\sky_9_cube#small
*  0.0 : [ 238] sky\sky_oblaka
*  0.0 : [   1] ui\ui_actor_loadgame_screen
*  0.0 : [   1] ui\ui_common
*  0.0 : [   1] ui\ui_font_arial_14_1600
*  0.0 : [   1] ui\ui_font_console_02
*  0.0 : [   1] ui\ui_font_graff_32_1600
*  0.0 : [   1] ui\ui_font_graff_50_1600
*  0.0 : [   1] ui\ui_font_hud_02
*  0.0 : [   1] ui\ui_font_letter_16_1600
*  0.0 : [   1] ui\ui_font_letter_18_1600
*  0.0 : [   1] ui\ui_font_letter_25_1600
*  0.0 : [   1] water\water_SBumpVolume
*  0.0 : [   1] water\water_flowing_nmap
*  0.0 : [   1] water\water_normal
*  0.0 : [   1] wm\wm_blood_1
*  0.0 : [   1] wm\wm_blood_1_1
*  0.0 : [   1] wm\wm_blood_1_2
*  0.0 : [   1] wm\wm_blood_1_3
*  0.0 : [   1] wm\wm_blood_drop_4
*  0.0 : [   1] wm\wm_bullet_asfalt_1
*  0.0 : [   1] wm\wm_bullet_asfalt_2
*  0.0 : [   1] wm\wm_bullet_asfalt_3
*  0.0 : [   1] wm\wm_bullet_brick_1
*  0.0 : [   1] wm\wm_bullet_brick_2
*  0.0 : [   1] wm\wm_bullet_concrete
*  0.0 : [   1] wm\wm_bullet_concrete_1
*  0.0 : [   1] wm\wm_bullet_concrete_2
*  0.0 : [   1] wm\wm_bullet_concrete_4
*  0.0 : [   1] wm\wm_bullet_concrete_5
*  0.0 : [   1] wm\wm_bullet_concrete_6
*  0.0 : [   1] wm\wm_bullet_concrete_7
*  0.0 : [   1] wm\wm_bullet_glass01
*  0.0 : [   1] wm\wm_bullet_glass02
*  0.0 : [   1] wm\wm_bullet_glass03
*  0.0 : [   1] wm\wm_bullet_glass04
*  0.0 : [   1] wm\wm_bullet_ground
*  0.0 : [   1] wm\wm_bullet_ground_1
*  0.0 : [   1] wm\wm_bullet_ground_2
*  0.0 : [   1] wm\wm_bullet_metall_thik
*  0.0 : [   1] wm\wm_bullet_metall_thik_1
*  0.0 : [   1] wm\wm_bullet_metall_thik_2
*  0.0 : [   1] wm\wm_bullet_metall_thik_3
*  0.0 : [   1] wm\wm_bullet_metall_thin
*  0.0 : [   1] wm\wm_bullet_metall_thin_1
*  0.0 : [   1] wm\wm_bullet_metall_thin_2
*  0.0 : [   1] wm\wm_bullet_metall_thin_3
*  0.0 : [   1] wm\wm_bullet_metall_thin_4
*  0.0 : [   1] wm\wm_bullet_wood
*  0.0 : [   1] wm\wm_bullet_wood_1
*  0.0 : [   1] wm\wm_bullet_wood_2
*  0.0 : [   1] wm\wm_bullet_wood_3
*  0.0 : [   1] wm\wm_bullet_wood_4
*  0.0 : [   1] wm\wm_bullet_wood_5
*  0.0 : [   1] wm\wm_bullet_wood_6
*  0.0 : [   1] wm\wm_bullet_wood_7
*  0.0 : [   1] wm\wm_bullet_wood_8
*  0.0 : [   1] wm\wm_bullet_wood_9
*  0.0 : [   1] wm\wm_knife_dead
*  0.0 : [   1] wm\wm_knife_horiz
*  0.0 : [   1] wm\wm_knife_horiz_blood
*  0.0 : [   1] wm\wm_knife_horiz_blood1
*  0.0 : [   1] wm\wm_knife_horiz_metal
*  0.0 : [   1] wm\wm_knife_horiz_ston
*  0.0 : [   1] wm\wm_knife_wood
*  0.0 : [   1] wm\wm_knife_wood1
*  0.0 : [   1] wm\wm_knife_wood2
*  0.1 : [   1] intro\intro_back
* 32.1 : [   1] ui\ui_magnifier2
* 33.0 : [   1] ui\ui_ani_cursor
* 64.1 : [   1] ui\ui_font_hud_01
* 128.1 : [   1] ui\ui_font_graff_19_1600
* 128.1 : [   1] ui\ui_font_graff_22_1600
* 270.0 : [   1] ui\video_voroni_crop
* 936.0 : [   1] ui\video_water_crop
* 1008.0 : [   1] intro\amd_fusion_final_720
* 1008.0 : [   1] intro\ati_radeon_1920x1080
* 1024.1 : [   1] ui\ui_actor_main_menu
* 1024.1 : [   1] ui\ui_actor_widescreen_sidepanels
* 1125.0 : [   1] intro\intro_gsc
* 1125.0 : [   1] intro\intro_gsc-wp
- Uncached model loading: \home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\meshes\dynamics\weapons\wpn_hand\wpn_hand_05.ogf
- Compile shader: gl\deffer_base_bump-hq.ps\2048111100110000000000000000101311112311110000000000
- Compile shader: gl\deffer_model_bump-hq_3.vs\2048111100110000000000000000101311112311110000000000
- Compile shader: gl\deffer_base_bump.ps\2048111100110000000000000000101311112311110000000000
- Compile shader: gl\deffer_model_bump_3.vs\2048111100110000000000000000101311112311110000000000
- Compile shader: gl\shadow_direct_model_3.vs\2048111100110000000000000000101311112311110000000000

FATAL ERROR

[error] Expression    : K
[error] Function      : RegisterModel
[error] File          : /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/src/xrGame/GamePersistent.cpp
[error] Line          : 196
[error] Description   : assertion failed
Xottab-DUTY commented 1 year ago

Ahh, the same error that @dasehak encountered :(

GermanAizek commented 1 year ago

@Xottab-DUTY, The same problem on latest builds on Ubuntu 22.04, something is damaged in game archives. I've already spent several backup copies.


Thread 1 "Primary thread" received signal SIGSEGV, Segmentation fault.
CGamePersistent::RegisterModel (this=<optimized out>, V=0x555559e8b070) at /home/ubuntu/GIT/xray-162/src/xrGame/GamePersistent.cpp:125
125         const u16 cnt = K->LL_BoneCount();
* 128.1 : [   1] ui\ui_font_graff_19_1600
* 128.1 : [   1] ui\ui_font_graff_22_1600
* 270.0 : [   1] ui\video_voroni_crop
* 936.0 : [   1] ui\video_water_crop
* 1024.1 : [   1] ui\ui_actor_main_menu
* 1024.1 : [   1] ui\ui_actor_widescreen_sidepanels
- Uncached model loading: \home\ubuntu\GIT\xray-162\bin\x64\gamedata\meshes\dynamics\weapons\wpn_hand\wpn_hand_05.ogf
* Loading shader: \home\ubuntu\GIT\xray-162\bin\x64\_appdata_\shaders_cache_oxr\gl\deffer_base_bump-hq.ps\2048111100110000000000000000101311112311110000000000
* Loading shader: \home\ubuntu\GIT\xray-162\bin\x64\_appdata_\shaders_cache_oxr\gl\deffer_model_bump-hq_3.vs\2048111100110000000000000000101311112311110000000000
* Loading shader: \home\ubuntu\GIT\xray-162\bin\x64\_appdata_\shaders_cache_oxr\gl\deffer_base_bump.ps\2048111100110000000000000000101311112311110000000000
* Loading shader: \home\ubuntu\GIT\xray-162\bin\x64\_appdata_\shaders_cache_oxr\gl\deffer_model_bump_3.vs\2048111100110000000000000000101311112311110000000000
* Loading shader: \home\ubuntu\GIT\xray-162\bin\x64\_appdata_\shaders_cache_oxr\gl\shadow_direct_model_3.vs\2048111100110000000000000000101311112311110000000000

FATAL ERROR

[error] Expression    : K
[error] Function      : RegisterModel
[error] File          : /home/ubuntu/GIT/xray-162/src/xrGame/GamePersistent.cpp
[error] Line          : 124
[error] Description   : assertion failed

stack trace:

xrDebug::GatherInfo(char*, unsigned long, ErrorLocation const&, char const*, char const*, char const*, char const*)
xrDebug::Fail(bool&, ErrorLocation const&, char const*, char const*, char const*, char const*)
CGamePersistent::RegisterModel(IRenderVisual*)
CModelPool::Instance_Load(char const*, int)
CModelPool::Create(char const*, IReader*)
CRender::model_Create(char const*, IReader*)
player_hud::load(shared_str const&)
player_hud::load_default()
CLevel::CLevel()
CObjectItemSingle<CLevel, true>::client_object() const
/home/ubuntu/GIT/xray-162/bin/x64/Debug/xrGame.so(xrFactory_Create+0x5e) [0x7fffaf4ff6ae]
CApplication::OnEvent(CEvent*, unsigned long, unsigned long)
CEventAPI::OnFrame()
CApplication::OnFrame()
MessageRegistry<pureFrame>::Process()
CRenderDevice::FrameMove()
CRenderDevice::ProcessFrame()
CRenderDevice::message_loop()
CRenderDevice::Run()
Startup()
Signal: SIGSEGV (Segmentation fault)
nsherbina1999 commented 1 year ago

Hello guys. One possible cause of this error could be that the "smart_cast<IKinematics>(V)" call is returning a null pointer. Meaning that the "IRenderVisual V" object passed to the "RegisterModel" function is not of a type that can be cast to "IKinematics*". But it's only my suggestion, I'm not a professional and not very common with C langs.

Xottab-DUTY commented 1 year ago

Hello guys. One possible cause of this error could be that the "smart_cast<IKinematics>(V)" call is returning a null pointer. Meaning that the "IRenderVisual V" object passed to the "RegisterModel" function is not of a type that can be cast to "IKinematics*". But it's only my suggestion, I'm not a professional and not very common with C langs.

This is correct! smart_cast return nullptr because V is nullptr, and it's null because engine's filesystem (let's call it FS) can't load the model from the disk.

@GermanAizek suspects that game archives gets damaged somehow and, because of that, FS can't load the model file...

dasehak commented 1 year ago

I'll try to run the game again with the pre-working archives. If it doesn't start, maybe it's a problem with FS?

GermanAizek commented 1 year ago

The bug was confirmed only when building using Clang >= 14, all other compilers are working properly.

OPNA2608 commented 12 months ago

I experience this bug on x86_64 macOS with Clang 11. Building with GCC 12 instead makes the game work for me. Switching back to Clang triggers this assertion again.

Xottab-DUTY commented 5 months ago

This is correct! smart_cast return nullptr because V is nullptr, and it's null because engine's filesystem (let's call it FS) can't load the model from the disk.

I was wrong. V is non-null, but due to Clang specifics, it couldn't cast it to IKinematics* for some reason.

This might have been fixed with 9cf5c0910db841df1b77c0a28e3782a251a18f59.

@Martinfx, @GermanAizek, @OPNA2608, please test it with the newest commits.

Martinfx commented 5 months ago

I pulled last commit and maybe is wrong in Makefile


maxfx@hades /m/S/c/xray-16 (dev) [1]> cmake .
-- CMAKE_VERSION: 3.28.1
-- CMAKE_PROJECT_VERSION: 
-- CMAKE_VERBOSE_MAKEFILE: FALSE
-- git commit: 3b6821c044a7d073341f8cc575d8e057da90d5a7
-- git branch: dev
-- CMAKE_SYSTEM_PROCESSOR: amd64
-- CMAKE_BUILD_TYPE: Release
-- MASTER_GOLD: ON
-- STATIC_BUILD: ON
-- CMAKE_UNITY_BUILD: OFF
-- USE_ADDRESS_SANITIZER: OFF
-- USE_LTO: ON
-- Could NOT find mimalloc (missing: mimalloc_DIR)
Using standard memory allocator
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 159: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 161: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 163: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 166: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 167: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 170: Invalid line type
Xottab-DUTY commented 5 months ago

I pulled last commit and maybe is wrong in Makefile


maxfx@hades /m/S/c/xray-16 (dev) [1]> cmake .
-- CMAKE_VERSION: 3.28.1
-- CMAKE_PROJECT_VERSION: 
-- CMAKE_VERBOSE_MAKEFILE: FALSE
-- git commit: 3b6821c044a7d073341f8cc575d8e057da90d5a7
-- git branch: dev
-- CMAKE_SYSTEM_PROCESSOR: amd64
-- CMAKE_BUILD_TYPE: Release
-- MASTER_GOLD: ON
-- STATIC_BUILD: ON
-- CMAKE_UNITY_BUILD: OFF
-- USE_ADDRESS_SANITIZER: OFF
-- USE_LTO: ON
-- Could NOT find mimalloc (missing: mimalloc_DIR)
Using standard memory allocator
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 159: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 161: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 163: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 166: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 167: Invalid line type
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 170: Invalid line type

Does CMake still finish configuring and generating? According to our CI, this is not critical and we still can compile the project.

Martinfx commented 5 months ago

no i can not git submodule update --recursive --force --remote

make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 686: warning: duplicate script for target "%.o" ignored
make: "Makefile" line 683: warning: using previous script for "%.o" defined here
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 687: warning: duplicate script for target "%.o" ignored
make: "Makefile" line 683: warning: using previous script for "%.o" defined here
make: "/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src/Makefile" line 688: warning: duplicate script for target "%.o" ignored
make: "Makefile" line 683: warning: using previous script for "%.o" defined here
make: Fatal errors encountered -- cannot continue
make: stopped in /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16/Externals/LuaJIT/src
-- Configuring done (1.0s)
CMake Error at Externals/xrLuaFix/CMakeLists.txt:3 (target_sources):
  Cannot find source file:

    lfs/src/lfs.c

CMake Error at Externals/xrLuaFix/CMakeLists.txt:1 (add_library):
  No SOURCES given to target: xrLuaFix
Xottab-DUTY commented 5 months ago

@Martinfx try git submodule update --init --recursive

Martinfx commented 5 months ago

Thank you very much. I compiled and run with bugs.

onfig-file [\usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R.ltx] saved successfully
Config-file [\usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\user.ltx] saved successfully
Config-file [\usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R.ltx] saved successfully
Config-file [\usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\user.ltx] saved successfully

FATAL ERROR

[error] Expression    : <no expression>
[error] Function      : handler_base
[error] File          : /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrCore/xrDebug.cpp
[error] Line          : 870
[error] Description   : segmentation fault

stack trace:

xrDebug::GatherInfo(char*, unsigned long, ErrorLocation const&, char const*, char const*, char const*, char const*)
xrDebug::Fail(bool&, ErrorLocation const&, char const*, char const*, char const*, char const*)
xrDebug::OnThreadSpawn()
operator->
operator->
0x7fffffffe8a3 <__gxx_personality_v0+0x7fffffdfc4b3> at ???
player_hud::load_ancors()
player_hud::load(shared_str const&)
CLevel::CLevel()
CObjectFactory::register_classes()
long long
IGame_Persistent::OnEvent(CEvent*, unsigned long, unsigned long)
CEventAPI::OnFrame()
CRenderDevice::ProcessParallelSequence(Task&, void*)
CRenderDevice::FrameMove()
CRenderDevice::ProcessFrame()
CApplication::Run()
fish: Job 3, './xr_3da  -fsltx ./fsgame.ltx' has stopped
Xottab-DUTY commented 5 months ago

Could you compile it with debug symbols and run it with GDB and show the output?

Martinfx commented 5 months ago
Thread 1 "Primary thread" received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0x000000080eae4564 in player_hud::load_ancors (this=this@entry=0x822f9d380) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:571
571             m_ancors.emplace_back(m_model->dcast_PKinematics()->LL_BoneID(bone));
(gdb) bt
#0  0x000000080eae4564 in player_hud::load_ancors (this=this@entry=0x822f9d380) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:571
#1  0x000000080eae4403 in player_hud::load (this=0x822f9d380, player_hud_sect=...) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:545
#2  0x000000080e664895 in player_hud::load_default (this=0x822f9d380) at player_hud.h:133
#3  0x000000080e9adc92 in CLevel::CLevel (this=0x826fb9040) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/Level.cpp:110
#4  0x000000080f1188c2 in xr_new<CLevel> () at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrCommon/../xrCore/xrMemory.h:138
#5  CObjectItemSingle<CLevel, true>::client_object (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrServerEntities/object_item_single_inline.h:42
#6  0x000000080edf34b6 in CObjectFactory::client_object (this=<optimized out>, clsid=@0x7fffffffcd38: 5142913160164232224) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrServerEntities/object_factory_inline.h:126
#7  xrFactory_Create (clsid=5142913160164232224) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/xrGame.cpp:27
#8  0x00000008003790c6 in IGame_Persistent::OnEvent (this=0x807a1e200, E=<optimized out>, P1=34502911904, P2=34924800304) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/IGame_Persistent.cpp:269
#9  0x000000080e8c374f in CGamePersistent::OnEvent (this=0x807a1e200, E=0x80e20404c, P1=34502911904, P2=34924800304) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/GamePersistent.cpp:678
#10 0x0000000800329972 in CEvent::Signal (this=0x8196f3480, P1=34502911904, P2=34924800304) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:39
#11 CEventAPI::Signal (this=0x8004849e8 <Engine+120>, E=0x8196f3480, P1=34502911904, P2=34924800304) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:114
#12 CEventAPI::OnFrame (this=0x8004849e8 <Engine+120>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:175
#13 0x00000008003271ed in CEngine::OnFrame (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/Engine.cpp:109
#14 0x00000008003938bf in pureFrame::OnPure (self=0x0) at pure.h:18
#15 MessageRegistry<pureFrame>::Process (this=this@entry=0x8004934e8 <Device+432>) at pure.h:101
#16 0x00000008003927ad in CRenderDevice::FrameMove (this=this@entry=0x800493338 <Device>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/device.cpp:454
#17 0x00000008003924a4 in CRenderDevice::ProcessFrame (this=0x800493338 <Device>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/device.cpp:271
#18 0x0000000800387e9c in CApplication::Run (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/x_ray.cpp:484
#19 0x0000000000202288 in entry_point (commandLine=0x80181a080 "-fsltx ./fsgame.ltx ") at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xr_3da/entry_point.cpp:29
#20 main (argc=3, argv=0x7fffffffd890) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xr_3da/entry_point.cpp:79
Martinfx commented 5 months ago
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\hud_crosshair.vs\2048111100110000000000001000001311112311110000000000
- Uncached model loading: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\meshes\dynamics\weapons\wpn_hand\wpn_hand_05.ogf
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_base_bump-hq.ps\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_model_bump-hq_3.vs\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_base_bump.ps\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_model_bump_3.vs\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\shadow_direct_model_3.vs\2048111100110000000000000000101311112311110000000000

Thread 1 "Primary thread" received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0x000000088b8e36d4 in player_hud::load_ancors (this=this@entry=0x82b1a3fe0) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:571
571             m_ancors.emplace_back(m_model->dcast_PKinematics()->LL_BoneID(bone));
(gdb) bt
#0  0x000000088b8e36d4 in player_hud::load_ancors (this=this@entry=0x82b1a3fe0) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:571
#1  0x000000088b8e3573 in player_hud::load (this=0x82b1a3fe0, player_hud_sect=...) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:545
#2  0x000000088b4650d5 in player_hud::load_default (this=0x82b1a3fe0) at player_hud.h:133
#3  0x000000088b7ae6b2 in CLevel::CLevel (this=0x833cb0000) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/Level.cpp:110
#4  0x000000088bf181e2 in xr_new<CLevel> () at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrCommon/../xrCore/xrMemory.h:138
#5  CObjectItemSingle<CLevel, true>::client_object (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrServerEntities/object_item_single_inline.h:42
#6  0x000000088bbf2bd6 in CObjectFactory::client_object (this=<optimized out>, clsid=@0x7fffffffcd38: 5142913160164232224) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrServerEntities/object_factory_inline.h:126
#7  xrFactory_Create (clsid=5142913160164232224) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/xrGame.cpp:27
#8  0x00000008003790d6 in IGame_Persistent::OnEvent (this=0x82db72a00, E=<optimized out>, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/IGame_Persistent.cpp:269
#9  0x000000088b6c416f in CGamePersistent::OnEvent (this=0x82db72a00, E=0x88b00472c, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/GamePersistent.cpp:678
#10 0x0000000800329982 in CEvent::Signal (this=0x829d0a980, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:39
#11 CEventAPI::Signal (this=0x800484a68 <Engine+120>, E=0x829d0a980, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:114
#12 CEventAPI::OnFrame (this=0x800484a68 <Engine+120>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:175
#13 0x00000008003271fd in CEngine::OnFrame (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/Engine.cpp:109
#14 0x000000080039393f in pureFrame::OnPure (self=0x0) at pure.h:18
#15 MessageRegistry<pureFrame>::Process (this=this@entry=0x800493568 <Device+432>) at pure.h:101
#16 0x0000000800392813 in CRenderDevice::FrameMove (this=this@entry=0x8004933b8 <Device>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/device.cpp:454
#17 0x00000008003924b4 in CRenderDevice::ProcessFrame (this=0x8004933b8 <Device>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/device.cpp:271
#18 0x0000000800387eac in CApplication::Run (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/x_ray.cpp:484
#19 0x0000000000202288 in entry_point (commandLine=0x8020301c0 "-fsltx ./fsgame.ltx ") at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xr_3da/entry_point.cpp:29
#20 main (argc=3, argv=0x7fffffffd888) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xr_3da/entry_point.cpp:79
(gdb) exit
A debugging session is active.

    Inferior 1 [process 10898] will be killed.
Xottab-DUTY commented 5 months ago
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\hud_crosshair.vs\2048111100110000000000001000001311112311110000000000
- Uncached model loading: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\meshes\dynamics\weapons\wpn_hand\wpn_hand_05.ogf
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_base_bump-hq.ps\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_model_bump-hq_3.vs\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_base_bump.ps\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\deffer_model_bump_3.vs\2048111100110000000000000000101311112311110000000000
* Loading shader: \usr\home\maxfx\.local\share\GSC Game World\S.T.A.L.K.E.R. - Call of Pripyat\_appdata_\shaders_cache_oxr\gl\shadow_direct_model_3.vs\2048111100110000000000000000101311112311110000000000

Thread 1 "Primary thread" received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0x000000088b8e36d4 in player_hud::load_ancors (this=this@entry=0x82b1a3fe0) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:571
571               m_ancors.emplace_back(m_model->dcast_PKinematics()->LL_BoneID(bone));
(gdb) bt
#0  0x000000088b8e36d4 in player_hud::load_ancors (this=this@entry=0x82b1a3fe0) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:571
#1  0x000000088b8e3573 in player_hud::load (this=0x82b1a3fe0, player_hud_sect=...) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/player_hud.cpp:545
#2  0x000000088b4650d5 in player_hud::load_default (this=0x82b1a3fe0) at player_hud.h:133
#3  0x000000088b7ae6b2 in CLevel::CLevel (this=0x833cb0000) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/Level.cpp:110
#4  0x000000088bf181e2 in xr_new<CLevel> () at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrCommon/../xrCore/xrMemory.h:138
#5  CObjectItemSingle<CLevel, true>::client_object (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrServerEntities/object_item_single_inline.h:42
#6  0x000000088bbf2bd6 in CObjectFactory::client_object (this=<optimized out>, clsid=@0x7fffffffcd38: 5142913160164232224) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrServerEntities/object_factory_inline.h:126
#7  xrFactory_Create (clsid=5142913160164232224) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/xrGame.cpp:27
#8  0x00000008003790d6 in IGame_Persistent::OnEvent (this=0x82db72a00, E=<optimized out>, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/IGame_Persistent.cpp:269
#9  0x000000088b6c416f in CGamePersistent::OnEvent (this=0x82db72a00, E=0x88b00472c, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrGame/GamePersistent.cpp:678
#10 0x0000000800329982 in CEvent::Signal (this=0x829d0a980, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:39
#11 CEventAPI::Signal (this=0x800484a68 <Engine+120>, E=0x829d0a980, P1=35215118368, P2=35061319744) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:114
#12 CEventAPI::OnFrame (this=0x800484a68 <Engine+120>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/EventAPI.cpp:175
#13 0x00000008003271fd in CEngine::OnFrame (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/Engine.cpp:109
#14 0x000000080039393f in pureFrame::OnPure (self=0x0) at pure.h:18
#15 MessageRegistry<pureFrame>::Process (this=this@entry=0x800493568 <Device+432>) at pure.h:101
#16 0x0000000800392813 in CRenderDevice::FrameMove (this=this@entry=0x8004933b8 <Device>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/device.cpp:454
#17 0x00000008003924b4 in CRenderDevice::ProcessFrame (this=0x8004933b8 <Device>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/device.cpp:271
#18 0x0000000800387eac in CApplication::Run (this=<optimized out>) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xrEngine/x_ray.cpp:484
#19 0x0000000000202288 in entry_point (commandLine=0x8020301c0 "-fsltx ./fsgame.ltx ") at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xr_3da/entry_point.cpp:29
#20 main (argc=3, argv=0x7fffffffd888) at /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/xray-16____/src/xr_3da/entry_point.cpp:79
(gdb) exit
A debugging session is active.

  Inferior 1 [process 10898] will be killed.

I think I know what's the problem here. IKinematics and IKinematicsAnimated are organized in a way that depends on compiler behaviour. It works ok on MSVC, but it's unreliable on GCC and Clang/LLVM – it works sometimes, sometimes doesn't.

I will work on code reorganization and simplification, and hopefully this will eliminate the root of the problem.