Changes between Version 1 and Version 5 of Ticket #6864


Ignore:
Timestamp:
Sep 17, 2023, 3:01:50 PM (8 months ago)
Author:
abian
Comment:

Yes, there is!

ERROR: Failed to create VkImage: -2 (VK_ERROR_OUT_OF_DEVICE_MEMORY)
Assertion failed: "depthStencilAttachment->texture"
Location: Framebuffer.cpp:46 (Create)

Sometimes I get that, and sometimes I get -4 (VK_ERROR_DEVICE_LOST) instead...

ERROR: vkWaitForFences(device, 1, &fence.value, VK_TRUE, std::numeric_limits<uint64_t>::max()) returned -4 (VK_ERROR_DEVICE_LOST) instead of VK_SUCCESS
Assertion failed: "false && "vkWaitForFences(device, 1, &fence.value, VK_TRUE, std::numeric_limits<uint64_t>::max())""
Location: SubmitScheduler.cpp:145 (WaitUntilFree)

... but bt ends up displaying the same stack trace.

OpenGL works fine in these scenarios.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6864 – Description

    v1 v5  
    1 Running version r27815 with {{{./binaries/system/pyrogenesis -mod=mod -mod=public -mod=0ad-spirv -conf:rendererbackend:vulkan}}}
     1Using Vulkan backend with {{{./binaries/system/pyrogenesis -mod=mod -mod=public -mod=0ad-spirv -conf:rendererbackend:vulkan}}} I get...
    22
    33{{{
    4 ERROR: Failed to create VkImage: -2
    5 Segmentation fault (core dumped)
     4ERROR: Failed to create VkImage: -2 (VK_ERROR_OUT_OF_DEVICE_MEMORY)
     5Assertion failed: "depthStencilAttachment->texture"
     6Location: Framebuffer.cpp:46 (Create)
     7}}}
     8
     9... or...
     10
     11{{{
     12ERROR: vkWaitForFences(device, 1, &fence.value, VK_TRUE, std::numeric_limits<uint64_t>::max()) returned -4 (VK_ERROR_DEVICE_LOST) instead of VK_SUCCESS
     13Assertion failed: "false && "vkWaitForFences(device, 1, &fence.value, VK_TRUE, std::numeric_limits<uint64_t>::max())""
     14Location: SubmitScheduler.cpp:145 (WaitUntilFree)
    615}}}
    716
    817Steps to reproduce:
    9181. Using windowed mode, very high quality shadows, and Vulkan as the renderer backend, create new single player game, Acropolis Bay (2). Wait for the game to start.
    10 2. Maximize and restore the window until the segmentation fault occurs.
     192. Resize the window.
     20
     21Stack trace:
     22
     23{{{
     24ERROR: Failed to create VkImage: -2
     25
     26Thread 1 "main" received signal SIGSEGV, Segmentation fault.
     27Renderer::Backend::Vulkan::CFramebuffer::Create (device=0x555557379dd0, name=0x555555cf6fdd "ShadowMapFramebuffer", colorAttachment=0x0, depthStencilAttachment=0x7fffffffd020) at ../../../source/renderer/backend/vulkan/Texture.h:47
     2847              uint32_t GetUsage() const override { return m_Usage; }
     29(gdb) bt
     30#0  Renderer::Backend::Vulkan::CFramebuffer::Create (device=0x555557379dd0, name=0x555555cf6fdd "ShadowMapFramebuffer", colorAttachment=0x0, depthStencilAttachment=0x7fffffffd020)
     31    at ../../../source/renderer/backend/vulkan/Texture.h:47
     32#1  0x00005555559fabb9 in Renderer::Backend::Vulkan::CDevice::CreateFramebuffer (this=<optimised out>, name=<optimised out>, colorAttachment=<optimised out>, depthStencilAttachment=<optimised out>)
     33    at ../../../source/renderer/backend/vulkan/Device.cpp:740
     34#2  0x00005555559b3997 in ShadowMapInternals::CreateTexture (this=0x555557c23000) at ../../../source/renderer/ShadowMap.cpp:590
     35#3  0x00005555559b46f5 in ShadowMap::SetupFrame (this=0x555557c21590, camera=..., lightdir=...) at ../../../source/renderer/ShadowMap.cpp:236
     36#4  0x00005555559a676e in CSceneRenderer::SetSceneCamera (this=<optimised out>, viewCamera=..., cullCamera=...) at ../../../source/renderer/SceneRenderer.cpp:958
     37#5  0x000055555592388d in CGameView::BeginFrame (this=0x5555588caca0) at ../../../source/graphics/GameView.cpp:231
     38#6  0x0000555555999979 in CRenderer::RenderFrameImpl (this=0x555557bcf270, renderGUI=<optimised out>, renderLogger=<optimised out>) at ../../../source/ps/Game.h:167
     39#7  0x000055555599ca30 in CRenderer::RenderFrame (this=0x555557bcf270, needsPresent=needsPresent@entry=true) at ../../../source/renderer/Renderer.cpp:461
     40#8  0x0000555555612fbf in Frame () at ../../../source/ps/Singleton.h:51
     41#9  RunGameOrAtlas (argv=...) at ../../../source/main.cpp:694
     42#10 0x00005555555fd72c in main (argc=5, argv=0x7fffffffdee8) at ../../../source/main.cpp:752
     43}}}
     44