BoomingTech / Piccolo

Piccolo (formerly Pilot) – mini game engine for games104
MIT License
5.93k stars 1.83k forks source link

Bug Report: 编译通过,窗体出现后,如果调整尺寸的话会报异常错误 #385

Open NoahFlower opened 2 years ago

NoahFlower commented 2 years ago

Describe the bug | Bug描述 编译通过,窗体出现后,如果调整尺寸的话会报异常错误; 错误出现的源文件:.\engine\source\runtime\function\render\interface\vulkan\vulkan_rhi.cpp 第407行 每次调整窗体大小必然出现

Steps to reproduce | 如何复现 Steps to reproduce the behavior:

  1. 编译,Debug
  2. 最大化窗体或将窗体调大

Screenshots/Logs | 截图/日志 msg stack

Desktop | 桌面环境

Additional context | 补充信息 有时候在初始大小下调宽一点点不会出现,但是调宽很多的话就会出现; 我的显示器分辨率是2736*1824,可能是和这个有关;

hanyangl5 commented 2 years ago

please provide the return value of vkQueueSubmit

NoahFlower commented 2 years ago

i dont know, but the value of 'res_queue_submit' is 0xCCCCCCCC img

ShenMian commented 2 years ago

未经处理的异常可能是上方代码抛出的吧, 我觉得可能位于以下位置:
https://github.com/BoomingTech/Piccolo/blob/0fef8ea8f8ae22f382308229ad1cc2c12154f0c3/engine/source/runtime/function/render/interface/vulkan/vulkan_rhi.cpp#L403 https://github.com/BoomingTech/Piccolo/blob/0fef8ea8f8ae22f382308229ad1cc2c12154f0c3/engine/source/runtime/core/log/log_system.h#L57