bombomby / optick

C++ Profiler For Games
https://optick.dev
MIT License
2.92k stars 293 forks source link

Optick GUI crashes with many threads #138

Open jonas2602 opened 3 years ago

jonas2602 commented 3 years ago

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 :)