BoomingTech / Piccolo

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

GameMode状态,Memu->Reload Current Level,粒子系统索引访问异常崩溃 #436

Open Nrtyck opened 1 year ago

Nrtyck commented 1 year ago

Describe the bug | Bug描述 A clear and concise description of what the bug is. GameMode状态,Memu->Reload Current Level,粒子系统索引访问异常崩溃

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

  1. GameMode状态 按下Alt切换鼠标显示
  2. Memu->Reload Current Level
  3. ParticlePass::simulate m_descriptor_infos成员索引访问异常崩溃

Expected behavior | 预期行为 A clear and concise description of what you expected to happen.

Actual behavior | 实际行为 A clear and concise description of what actually happened.

Screenshots/Logs | 截图/日志 If applicable, add screenshots and/or a video to help explain your problem.

Desktop | 桌面环境

Additional context | 补充信息 Add any other context about the problem here.

heyx1997 commented 1 year ago

你好,首先非常感谢你的反馈。

经查,当前问题是由两个问题导致:

  1. 未使用的 Buffer 指针在销毁时导致的崩溃
  2. 关卡重新加载时粒子的索引分配器未将索引置空。

当前已修复了该问题,更改在此处

heyx1997 commented 1 year ago

当前已经合并到 main 分支