hoffstadt / hoffstadt/DearPyGui

DPG crashes when swapping animated GIF data into a dynamic texture that initially held static PNG data

Open
#1,210 1 comment 0 reactions 0 assignees View on GitHub
category: textures state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui

Version: 0.8.57
Operating System: Windows 10

## My Issue/Question

If you load a static PNG into a dynamic texture and then swap the data out for an animated GIF, it crashes the app instantly down in the ImGui bowels.

## To Reproduce

Steps to reproduce the behavior:
1. Run the attached project
2. Click the 'Load Animated PNG' button
3. Click the 'Load Static PNG' button

## Expected behavior
Texture swaps out, image updates

## Screenshots/Video

https://user-images.githubusercontent.com/14815901/131237969-c62b818d-3698-4875-9506-dedbd9d67961.mp4

## Standalone, minimal, complete and verifiable example

Attached

[temp.repro.zip](https://github.com/hoffstadt/DearPyGui/files/7071884/temp.repro.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.