bombomby / optick

C++ Profiler For Games

Home Page:https://optick.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optick GUI crashes with many threads

jonas2602 opened this issue · comments

Hey,
I have a problem when I profile my application with many threads and deep callstacks.

When I open a capture with the setting 'Thread Expand Mode' set to 'Collapse All' the GUI works just fine but as soon as enough of the entries in the Threads Panel are expanded the application crashes.
From what I know so far, the crash happens in DirectXCanvas.OnResize() when SwapChain.ResizeBuffers() is called. With each Thread entry that I expand RenderCanvas.ClientSize.Height grows and as soon as the height exceeds a certain limit (somewhere around 16k) the resize fails with an invalid argument exception and the application crashes.

Would be nice if someone could point me in a direction on how to fix that
Thanks :)