PopcornFX / O3DEPopcornFXPlugin

PopcornFX plugin for O3DE
https://www.popcornfx.com/
Other
13 stars 12 forks source link

Mapped buffers error spam in the log #29

Closed SelfishOlex closed 1 year ago

SelfishOlex commented 2 years ago

Occasionally I see an error spam in the Editor log with development branch of O3DE:

[Error] (BufferPool) - There are currently buffers mapped on buffer pool 'PopcornFXParticlesBufferPool'. All buffers must be unmapped when the frame is processing.
[Error] (BufferPool) - There are currently buffers mapped on buffer pool 'PopcornFXParticlesBufferPool'. All buffers must be unmapped when the frame is processing.
[Error] (BufferPool) - There are currently buffers mapped on buffer pool 'PopcornFXParticlesBufferPool'. All buffers must be unmapped when the frame is processing.
[Error] (BufferPool) - There are currently buffers mapped on buffer pool 'PopcornFXParticlesBufferPool'. All buffers must be unmapped when the frame is processing.
[Error] (BufferPool) - There are currently buffers mapped on buffer pool 'PopcornFXParticlesBufferPool'. All buffers must be unmapped when the frame is processing.
[Error] (BufferPool) - There are currently buffers mapped on buffer pool 'PopcornFXParticlesBufferPool'. All buffers must be unmapped when the frame is processing.
[Error] (BufferPool) - There are currently buffers mapped on buffer pool 'PopcornFXParticlesBufferPool'. All buffers must be unmapped when the frame is processing.

The repro isn't 100% but happens often with https://github.com/o3de/o3de-multiplayersample

ValPKFX commented 2 years ago

Hi, did you have mesh renderers when you encountered had this error log? I've pushed a fix on the development branch which resolve this mapped buffer issue with when the mesh was loaded asynchronously. Could you confirm this resolve the issue on your side?