mkouhia / dearpygui-map

Map widget for Dear PyGui
https://pypi.org/project/dearpygui-map/
MIT License
13 stars 2 forks source link

Error downloading first tile #15

Closed mkouhia closed 2 years ago

mkouhia commented 2 years ago

Sometiimes, first tile is not displayed (top left corner) and following error message is displayed:

ERROR:root:<built-in function pop_container_stack> returned a result with an exception set
Exception: Error: [1009] Message:   No container to pop.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/mikko/Documents/softaprojektit/dearpygui_map/dearpygui_map/io.py", line 55, in run
    self.callback(result)
  File "/home/mikko/Documents/softaprojektit/dearpygui_map/dearpygui_map/widget.py", line 198, in draw_tile
    tile.draw_image(parent=self.tile_draw_node_id)
  File "/home/mikko/Documents/softaprojektit/dearpygui_map/dearpygui_map/widget.py", line 249, in draw_image
    with dpg.texture_registry():
  File "/home/mikko/.pyenv/versions/3.10.2/lib/python3.10/contextlib.py", line 142, in __exit__
    next(self.gen)
  File "/home/mikko/.cache/pypoetry/virtualenvs/dearpygui-map-AAtoTuFr-py3.10/lib/python3.10/site-packages/dearpygui/dearpygui.py", line 2523, in texture_registry
    internal_dpg.pop_container_stack()
SystemError: <built-in function pop_container_stack> returned a result with an exception set
mkouhia commented 2 years ago

Cannot see the behaviour now. Closing, will reopen if necessary.