RobertBeckebans / RBDOOM-3-BFG

Doom 3 BFG Edition source port with updated DX12 / Vulkan renderer and modern game engine features
https://www.moddb.com/mods/rbdoom-3-bfg
GNU General Public License v3.0
1.48k stars 253 forks source link

Runtime crash if compiled with Release or RelWithDebInfo build type on Fedora 40 ppc64le arch #914

Open runlevel5 opened 4 months ago

runlevel5 commented 4 months ago
$ uname -ar
Linux shrimp-paste 6.10.0-64.fc40.ppc64le #1 SMP Wed Jul 17 00:01:28 AEST 2024 ppc64le GNU/Linux

$ sudo dnf info vulkan-headers
[sudo] password for tle: 
gitlab.com_paulcarroty_vscodium_repo                                                                                                                                                                                                            563  B/s | 833  B     00:01    
Installed Packages
Name         : vulkan-headers
Version      : 1.3.283.0
Release      : 1.fc40
Architecture : noarch
Size         : 26 M
Source       : vulkan-headers-1.3.283.0-1.fc40.src.rpm
Repository   : @System
From repo    : updates
Summary      : Vulkan Header files and API registry
URL          : https://github.com/KhronosGroup/Vulkan-Headers
License      : Apache-2.0
Description  : Vulkan Header files and API registry

$ mkdir build && cd build
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENAL=ON -DUSE_PRECOMPILED_HEADERS=OFF -DUSE_SYSTEM_ZLIB=ON -DUSE_SYSTEM_RAPIDJSON=ON -DONATIVE=ON -DFFMPEG=ON -DBINKDEC=OFF ../neo
$ make -j32

$ gdb ./RBDoom3BFG

Starting program: /home/tle/Games/RBDOOM3-BFG/RBDoom3BFG 
Downloading separate debug info for /lib64/libavcodec.so.60                                                                                                                                                                                                                     
Downloading separate debug info for /lib64/libavformat.so.60                                                                                                                                                                                                                    
Downloading separate debug info for /lib64/libavutil.so.58                                                                                                                                                                                                                      
Downloading separate debug info for /lib64/libswscale.so.7                                                                                                                                                                                                                      
Downloading separate debug info for /lib64/libswresample.so.4                                                                                                                                                                                                                   
[Thread debugging using libthread_db enabled]                                                                                                                                                                                                                                   
Using host libthread_db library "/lib64/libthread_db.so.1".
Downloading separate debug info for /lib64/libx264.so.164                                                                                                                                                                                                                       
Downloading separate debug info for /lib64/libx265.so.209                                                                                                                                                                                                                       
QA Timing INIT: 000171ms                                                                                                                                                                                                                                                        
RBDOOM 3 BFG 1.6.0 preview.1403 linux-ppc64 Jul 20 2024 12:41:56
found interface lo - loopback
found interface enP4p1s0f2 - 192.168.10.100/255.255.255.0
found interface virbr0 - 192.168.124.1/255.255.255.0
------ Initializing File System ------
Loaded resource file _common.resources
Loaded resource file _ordered.resources
Loaded resource file _sound_pc.resources
Loaded resource file _sound_pc_en.resources
Loaded resource file maps/admin.resources
Loaded resource file maps/alphalabs1.resources
Loaded resource file maps/alphalabs2.resources
Loaded resource file maps/alphalabs3.resources
Loaded resource file maps/alphalabs4.resources
Loaded resource file maps/caverns1.resources
Loaded resource file maps/caverns2.resources
Loaded resource file maps/comm1.resources
Loaded resource file maps/commoutside.resources
Loaded resource file maps/cpu.resources
Loaded resource file maps/cpuboss.resources
Loaded resource file maps/d3ctf1.resources
Loaded resource file maps/d3ctf2.resources
Loaded resource file maps/d3ctf3.resources
Loaded resource file maps/d3ctf4.resources
Loaded resource file maps/d3dm1.resources
Loaded resource file maps/d3dm2.resources
Loaded resource file maps/d3dm3.resources
Loaded resource file maps/d3dm4.resources
Loaded resource file maps/d3dm5.resources
Loaded resource file maps/d3xpdm1.resources
Loaded resource file maps/d3xpdm2.resources
Loaded resource file maps/d3xpdm3.resources
Loaded resource file maps/d3xpdm4.resources
Loaded resource file maps/delta1.resources
Loaded resource file maps/delta2a.resources
Loaded resource file maps/delta2b.resources
Loaded resource file maps/delta3.resources
Loaded resource file maps/delta4.resources
Loaded resource file maps/delta5.resources
Loaded resource file maps/deltax.resources
Loaded resource file maps/enpro.resources
Loaded resource file maps/erebus1.resources
Loaded resource file maps/erebus2.resources
Loaded resource file maps/erebus3.resources
Loaded resource file maps/erebus4.resources
Loaded resource file maps/erebus5.resources
Loaded resource file maps/erebus6.resources
Loaded resource file maps/hell.resources
Loaded resource file maps/hell1.resources
Loaded resource file maps/hellhole.resources
Loaded resource file maps/le_enpro1.resources
Loaded resource file maps/le_enpro2.resources
Loaded resource file maps/le_exis1.resources
Loaded resource file maps/le_exis2.resources
Loaded resource file maps/le_hell.resources
Loaded resource file maps/le_hell_post.resources
Loaded resource file maps/le_underground.resources
Loaded resource file maps/le_underground2.resources
Loaded resource file maps/mars_city1.resources
Loaded resource file maps/mars_city2.resources
Loaded resource file maps/mc_underground.resources
Loaded resource file maps/monorail.resources
Loaded resource file maps/phobos1.resources
Loaded resource file maps/phobos2.resources
Loaded resource file maps/phobos3.resources
Loaded resource file maps/phobos4.resources
Loaded resource file maps/recycling1.resources
Loaded resource file maps/recycling2.resources
Loaded resource file maps/site3.resources
Current search path:
/home/tle/.local/share/rbdoom3bfg/base
/home/tle/Games/RBDOOM3-BFG/base
/home/tle/Games/RBDOOM3-BFG/base/maps/site3.resources (1725 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/recycling2.resources (1528 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/recycling1.resources (1657 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/phobos4.resources (2168 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/phobos3.resources (2551 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/phobos2.resources (2792 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/phobos1.resources (2750 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/monorail.resources (2190 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/mc_underground.resources (2365 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/mars_city2.resources (2639 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/mars_city1.resources (2721 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_underground2.resources (2325 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_underground.resources (1918 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_hell_post.resources (1170 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_hell.resources (1057 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_exis2.resources (2674 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_exis1.resources (2579 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_enpro2.resources (1980 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/le_enpro1.resources (2280 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/hellhole.resources (1312 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/hell1.resources (1200 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/hell.resources (1125 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/erebus6.resources (1818 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/erebus5.resources (1986 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/erebus4.resources (2659 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/erebus3.resources (2891 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/erebus2.resources (2115 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/erebus1.resources (1704 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/enpro.resources (2124 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/deltax.resources (2491 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/delta5.resources (2148 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/delta4.resources (1076 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/delta3.resources (2326 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/delta2b.resources (2333 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/delta2a.resources (2432 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/delta1.resources (2299 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3xpdm4.resources (303 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3xpdm3.resources (290 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3xpdm2.resources (339 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3xpdm1.resources (476 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3dm5.resources (957 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3dm4.resources (1152 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3dm3.resources (987 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3dm2.resources (961 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3dm1.resources (1215 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3ctf4.resources (1027 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3ctf3.resources (1079 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3ctf2.resources (1099 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/d3ctf1.resources (690 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/cpuboss.resources (1773 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/cpu.resources (1862 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/commoutside.resources (2205 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/comm1.resources (2493 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/caverns2.resources (1077 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/caverns1.resources (1595 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/alphalabs4.resources (2157 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/alphalabs3.resources (1701 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/alphalabs2.resources (2327 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/alphalabs1.resources (2334 files)
/home/tle/Games/RBDOOM3-BFG/base/maps/admin.resources (2148 files)
/home/tle/Games/RBDOOM3-BFG/base/_sound_pc_en.resources (840 files)
/home/tle/Games/RBDOOM3-BFG/base/_sound_pc.resources (4759 files)
/home/tle/Games/RBDOOM3-BFG/base/_ordered.resources (1336 files)
/home/tle/Games/RBDOOM3-BFG/base/_common.resources (2262 files)
file system initialized.
--------------------------------------
WARNING: Unable to open resource file maps/_startup.resources
WARNING: Unable to open resource file maps/_startup.resources
----- Initializing Decls -----
------------------------------
Couldn't open journal files
[New Thread 0x7fffe4e0e660 (LWP 840983)]
[New Thread 0x7fffe440e660 (LWP 840984)]
[New Thread 0x7fffe3a0e660 (LWP 840985)]
[New Thread 0x7fffe300e660 (LWP 840986)]
[New Thread 0x7fffe260e660 (LWP 840987)]
[New Thread 0x7fffe1c0e660 (LWP 840988)]
[New Thread 0x7fffe120e660 (LWP 840989)]
[New Thread 0x7fffe080e660 (LWP 840990)]
[New Thread 0x7fffdfe0e660 (LWP 840991)]
[New Thread 0x7fffdf40e660 (LWP 840992)]
[New Thread 0x7fffdea0e660 (LWP 840993)]
[New Thread 0x7fffde00e660 (LWP 840994)]
[New Thread 0x7fffdd60e660 (LWP 840995)]
[New Thread 0x7fffdcc0e660 (LWP 840996)]
[New Thread 0x7fffdc20e660 (LWP 840997)]
[New Thread 0x7fffdb80e660 (LWP 840998)]
[New Thread 0x7fffdae0e660 (LWP 840999)]
[New Thread 0x7fffda40e660 (LWP 841000)]
[New Thread 0x7fffd9a0e660 (LWP 841001)]
[New Thread 0x7fffd900e660 (LWP 841002)]
[New Thread 0x7fffd860e660 (LWP 841003)]
[New Thread 0x7fffd7c0e660 (LWP 841004)]
[New Thread 0x7fffd720e660 (LWP 841005)]
[New Thread 0x7fffd680e660 (LWP 841006)]
[New Thread 0x7fffd5e0e660 (LWP 841007)]
[New Thread 0x7fffd540e660 (LWP 841008)]
[New Thread 0x7fffd4a0e660 (LWP 841009)]
[New Thread 0x7fffd400e660 (LWP 841010)]
[New Thread 0x7fffd360e660 (LWP 841011)]
[New Thread 0x7fffd2c0e660 (LWP 841012)]
[New Thread 0x7fffd220e660 (LWP 841013)]
[New Thread 0x7fffd180e660 (LWP 841014)]
failed parsing /proc/cpuinfo
alternative method used
/proc/cpuinfo CPU processors: 32
/proc/cpuinfo CPU logical cores: 32
execing default.cfg
execing D3BFGConfig.cfg
couldn't exec autoexec.cfg
----- R_InitOpenGL -----
[New Thread 0x7fffd040e660 (LWP 841018)]                                                                                                                                                                                                                                        
[New Thread 0x7fffcfa0e660 (LWP 841019)]
[New Thread 0x7fffcf00e660 (LWP 841020)]
[New Thread 0x7fffce60e660 (LWP 841021)]
[New Thread 0x7fffcdc0e660 (LWP 841022)]                                                                                                                                                                                                                                        
Initializing Vulkan subsystem                                                                                                                                                                                                                                                   
[New Thread 0x7fffc600e660 (LWP 841030)]                                                                                                                                                                                                                                        
Enabled Vulkan instance extensions:                                                                                                                                                                                                                                             
    VK_EXT_debug_report
    VK_KHR_wayland_surface
    VK_KHR_surface
    VK_KHR_get_physical_device_properties2
Enabled Vulkan layers:
[New Thread 0x7fffc560e660 (LWP 841032)]                                                                                                                                                                                                                                        
Enabled Vulkan device extensions:
    VK_EXT_memory_budget
    VK_KHR_fragment_shading_rate
    VK_KHR_format_feature_flags2
    VK_KHR_buffer_device_address
    VK_EXT_descriptor_indexing
    VK_KHR_maintenance1
    VK_KHR_synchronization2
    VK_KHR_swapchain
Created Vulkan device: AMD Radeon RX 6600 XT (RADV NAVI23)
RBDoom3BFG: /usr/include/vulkan/vulkan_funcs.hpp:1710: vk::ResultValueType<vk::Semaphore>::type vk::Device::createSemaphore(const vk::SemaphoreCreateInfo&, vk::Optional<const vk::AllocationCallbacks>, const Dispatch&) const [with Dispatch = vk::DispatchLoaderDynamic; vk::ResultValueType<vk::Semaphore>::type = vk::Semaphore]: Assertion `d.getVkHeaderVersion() == VK_HEADER_VERSION' failed.

Thread 1 "RBDoom3BFG" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;                                                                                                                                                                                         
Missing separate debuginfos, use: dnf debuginfo-install ffmpeg-libs-6.1.1-11.fc40.ppc64le x264-libs-0.164-13.20231001git31e19f92.fc40.ppc64le x265-libs-3.6-2.fc40.ppc64le
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff48b8cac in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  0x00007ffff48503ac in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff483075c in __GI_abort () at abort.c:79
#4  0x00007ffff4844400 in __assert_fail_base
    (fmt=0x7ffff4a07510 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x117a3aa0 "d.getVkHeaderVersion() == VK_HEADER_VERSION", file=file@entry=0x117a3a78 "/usr/include/vulkan/vulkan_funcs.hpp", line=line@entry=1710, function=function@entry=0x117a3ad0 "vk::ResultValueType<vk::Semaphore>::type vk::Device::createSemaphore(const vk::SemaphoreCreateInfo&, vk::Optional<const vk::AllocationCallbacks>, const Dispatch&) const [with Dispatch = vk::DispatchLo"...) at assert.c:94
#5  0x00007ffff4844484 in __assert_fail
    (assertion=0x117a3aa0 "d.getVkHeaderVersion() == VK_HEADER_VERSION", file=0x117a3a78 "/usr/include/vulkan/vulkan_funcs.hpp", line=1710, function=0x117a3ad0 "vk::ResultValueType<vk::Semaphore>::type vk::Device::createSemaphore(const vk::SemaphoreCreateInfo&, vk::Optional<const vk::AllocationCallbacks>, const Dispatch&) const [with Dispatch = vk::DispatchLo"...) at assert.c:103
#6  0x000000001107ceb4 in nvrhi::vulkan::Queue::Queue(nvrhi::vulkan::VulkanContext const&, nvrhi::CommandQueue, vk::Queue, unsigned int) ()
#7  0x000000001105d6e8 in std::__detail::_MakeUniq<nvrhi::vulkan::Queue>::__single_object std::make_unique<nvrhi::vulkan::Queue, nvrhi::vulkan::VulkanContext&, nvrhi::CommandQueue, VkQueue_T* const&, int const&>(nvrhi::vulkan::VulkanContext&, nvrhi::CommandQueue&&, VkQueue_T* const&, int const&) ()
#8  0x00000000110567d0 in nvrhi::vulkan::Device::Device(nvrhi::vulkan::DeviceDesc const&) ()
#9  0x00000000110565a8 in nvrhi::vulkan::createDevice(nvrhi::vulkan::DeviceDesc const&) ()
#10 0x0000000010e4d4c0 in DeviceManager_VK::CreateDeviceAndSwapChain() ()
#11 0x0000000010efee70 in DeviceManager::CreateWindowDeviceAndSwapChain(glimpParms_t const&, char const*) ()
#12 0x0000000010eff674 in VKimp_Init(glimpParms_t) ()
#13 0x00000000106dd1e4 in R_SetNewMode(bool) ()
#14 0x0000000010f196b0 in idRenderBackend::Init() ()
#15 0x00000000106e5edc in idRenderSystemLocal::InitBackend() ()
#16 0x000000001049e6a4 in idCommonLocal::Init(int, char const* const*, char const*) ()
#17 0x0000000010ef5e60 in main ()

I think this issue only impacts ppc64le architecture. Please note the game runs fine with Debug build type.

And with RelWithDebInfo build, the game could proceed further into the main menu, however when I choose any Campaign, I got segfault:

Thread 1 "RBDoom3BFG" received signal SIGSEGV, Segmentation fault.
idAnimator::PushAnims (this=this@entry=0x2a90a74c, channelNum=channelNum@entry=0, currentTime=currentTime@entry=0, blendTime=blendTime@entry=0) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/anim/Anim_Blend.cpp:4247
4247        if( !channel[ 0 ].GetWeight( currentTime ) || ( channel[ 0 ].starttime == currentTime ) )
Missing separate debuginfos, use: dnf debuginfo-install ffmpeg-libs-6.1.1-11.fc40.ppc64le x264-libs-0.164-13.20231001git31e19f92.fc40.ppc64le x265-libs-3.6-2.fc40.ppc64le
(gdb) bt
#0  idAnimator::PushAnims (this=this@entry=0x2a90a74c, channelNum=channelNum@entry=0, currentTime=currentTime@entry=0, blendTime=blendTime@entry=0) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/anim/Anim_Blend.cpp:4247
#1  0x000000001097d8c8 in idAnimator::PlayAnim (this=this@entry=0x2a90a74c, channelNum=channelNum@entry=0, animNum=1, currentTime=0, blendTime=0) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/anim/Anim_Blend.cpp:4575
#2  0x00000000109190f4 in idWeapon::Event_PlayAnim (this=0x2a90a1e4, channel=0, animname=0x2abeef04 "raise") at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Weapon.cpp:3674
#3  0x000000001099cc88 in idClass::ProcessEventArgPtr (this=0x2a90a1e4, ev=ev@entry=0x133c8d88 <AI_PlayAnim>, data=data@entry=0x7fffffff1880) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/gamesys/Callbacks.cpp:27
#4  0x0000000010b0e714 in idInterpreter::CallEvent (this=this@entry=0x2abee8cc, func=0x13501d58 <gameLocal+1262600>, argsize=144) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/script/Script_Interpreter.cpp:963
#5  0x0000000010b10ab8 in idInterpreter::Execute (this=this@entry=0x2abee8cc) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/script/Script_Interpreter.cpp:1205
#6  0x0000000010b26af4 in idThread::Execute (this=0x2abee8b4) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/script/Script_Thread.cpp:741
#7  0x0000000010919d58 in idWeapon::UpdateScript (this=this@entry=0x2a90a1e4) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Weapon.cpp:2424
#8  0x00000000109277d0 in idWeapon::UpdateScript (this=0x2a90a1e4) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Weapon.cpp:2412
#9  idWeapon::PresentWeapon (this=0x2a90a1e4, showViewModel=true) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Weapon.cpp:2665
#10 0x00000000108d59c8 in idPlayer::UpdateWeapon (this=0x2a905084) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Player.cpp:5958
#11 idPlayer::UpdateWeapon (this=0x2a905084) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Player.cpp:5885
#12 0x00000000108df488 in idPlayer::Think (this=0x2a905084) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Player.cpp:9173
#13 0x00000000108db34c in idPlayer::SpawnToPoint (this=this@entry=0x2a905084, spawn_origin=..., spawn_angles=...) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Player.cpp:3217
#14 0x00000000108dce28 in idPlayer::SpawnFromSpawnSpot (this=0x2a905084) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Player.cpp:3096
#15 idPlayer::Spawn (this=0x2a905084) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Player.cpp:2122
#16 0x0000000010990d78 in idClass::CallSpawnFunc (this=0x2a905084, cls=0x139d9c30 <idPlayer::Type>) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/gamesys/Class.cpp:302
#17 idClass::CallSpawn (this=this@entry=0x2a905084) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/gamesys/Class.cpp:279
#18 0x000000001083c084 in idGameLocal::SpawnEntityDef (this=this@entry=0x133cd950 <gameLocal>, args=..., ent=ent@entry=0x7fffffff22e0, setDefaults=setDefaults@entry=true) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Game_local.cpp:3918
#19 0x000000001083caf4 in idGameLocal::SpawnPlayer (this=this@entry=0x133cd950 <gameLocal>, clientNum=clientNum@entry=0) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Game_local.cpp:2189
#20 0x00000000108475a8 in idGameLocal::SyncPlayersWithLobbyUsers (this=this@entry=0x133cd950 <gameLocal>, initial=initial@entry=true) at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Game_network.cpp:230
#21 0x0000000010842ec0 in idGameLocal::InitFromNewMap
    (this=this@entry=0x133cd950 <gameLocal>, mapName=mapName@entry=0x7fffffffd998 "maps/game/alphalabs4.map", renderWorld=renderWorld@entry=0x16132d80, soundWorld=soundWorld@entry=0x15f24800, gameMode=gameMode@entry=-2, randseed=13341)
    at /home/tle/Work/RBDOOM-3-BFG/neo/d3xp/Game_local.cpp:1372
#22 0x000000001029ca30 in idCommonLocal::ExecuteMapChange (this=this@entry=0x12866500 <commonLocal>) at /home/tle/Work/RBDOOM-3-BFG/neo/idlib/../idlib/Str.h:664
#23 0x000000001035a400 in idCommonLocal::Frame (this=0x12866500 <commonLocal>) at /home/tle/Work/RBDOOM-3-BFG/neo/framework/common_frame.cpp:770
#24 0x00000000101dc004 in main (argc=<optimized out>, argv=0x7fffffffe538) at /home/tle/Work/RBDOOM-3-BFG/neo/sys/posix/platform_linux.cpp:555
(gdb) c
Continuing.
[Thread 0x7fffcf00e660 (LWP 854382) exited]
signal caught: Segmentation fault
si_code 3
Trying to exit gracefully..
session->GetSaveGameManager().CancelToTerminate();
soundSystem->StopAllSounds();
Stop();
--------- Game Map Shutdown ----------
WARNING: idSessionLocal::Pump was not called for 24 seconds
--------------------------------------
CleanupShell();
delete loadGUI;
runlevel5 commented 4 months ago

I think it is pretty much the same as the https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/729

SRSaunders commented 4 months ago

It looks to me like there is a Vulkan header version mismatch which can cause lots of problems:

Assertion 'd.getVkHeaderVersion() == VK_HEADER_VERSION' failed.

Can you try compiling and running with pre compiled headers set to off? cmake option -DUSE_PRECOMPILED_HEADERS=OFF

The other thing to check is that your sub project dependencies are all recursively up to date, ie nvrhi and shadermake, and their copies of Vulkan Headers.

Lastly, make sure you don’t have multiple Vulkan versions installed, where you build against one (eg an SDK) and run against another (eg a Linux system level installation package).