hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en
MIT License
13.03k stars 678 forks source link

fix: segfault with multichannel custom series #2307 #2345

Open jschmer opened 3 months ago

jschmer commented 3 months ago

name: Pull Request about: Create a pull request to help us improve title: fix: segfault with multichannel custom series #2307 assignees: ''


Closes #2307

Description: Fix for custom_series with multiple y channels. outConfig._transformedValues needs to be sized correctly for the plotter function to use it. It didn't match this expectation so the plotter function crashed/segfaulted with out of bounds memory access. The fix is to prepare correspondingly sized vectors in outConfig._transformedValues so that the plotter function can use it.