kivy-garden / graph

Displays plots on a graph.
MIT License
50 stars 18 forks source link

Rendering glitches in Kivy Garden graph #16

Open gljivaer opened 5 years ago

gljivaer commented 5 years ago

Bug description: I'm using Kivy Garden graph widget to draw various graphs how population sizes change over time. Specifically I'm using the SmoothLinePlot module.

The program and graph drawing itself works fine, expect some minor glitches for which I still haven't managed to find out the reason.

After certain time point the plots become distorted with graphical artifacts showing below them and parts of the plots suddenly turn invisible. I must emphasize that even then the program doesn't crash or raise any exception but instead finishes its work. Furthermore when I write the coordinates of the plots to the text file, everything seems normal.

Check the pictures below for more clarity.

Normal behaviour:

scenario_screenshot_2019-8-4_13-3-48

Buggy behaviour:

scenario_screenshot_2019-8-4_12-47-21

To Reproduce: On request I can provide the program itself.

Logs/output: I don't see anything particularly useful in the logs.

[INFO   ] Logger: Record log in C:\Users\X\.kivy\logs\kivy_19-08-04_10.txt
[INFO   ] deps: Successfully imported "kivy_deps.glew" 0.1.12
[INFO   ] deps: Successfully imported "kivy_deps.sdl2" 0.1.22
[INFO   ] Kivy: v1.11.1
[INFO   ] Kivy: Installed at "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\site-packages\kivy\__init__.py"
[INFO   ] Python: v3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
[INFO   ] Python: Interpreter at "C:\Users\X\AppData\Local\Programs\Python\Python37\pythonw.exe"
[INFO   ] Factory: 184 symbols loaded
[INFO   ] Image: Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] Window: Provider: sdl2
[INFO   ] GL: Using the "OpenGL" graphics system
[INFO   ] GL: GLEW initialization succeeded
[INFO   ] GL: Backend used <glew>
[INFO   ] GL: OpenGL version <b'4.4.0 - Build 20.19.15.4549'>
[INFO   ] GL: OpenGL vendor <b'Intel'>
[INFO   ] GL: OpenGL renderer <b'Intel(R) HD Graphics 5500'>
[INFO   ] GL: OpenGL parsed version: 4, 4
[INFO   ] GL: Shading version <b'4.40 - Build 20.19.15.4549'>
[INFO   ] GL: Texture max size <16384>
[INFO   ] GL: Texture max units <32>
[INFO   ] Window: auto add sdl2 input provider
[INFO   ] Window: virtual keyboard not allowed, single mode, not docked
[INFO   ] Text: Provider: sdl2
[INFO   ] GL: NPOT texture support is available
[WARNING] Lang: bin/ui/dynamic_classes.kv has already been included!
[WARNING] Lang: bin/ui/dynamic_classes.kv has already been included!
[WARNING] Lang: bin/ui/dynamic_classes.kv has already been included!
[INFO   ] Base: Start application main loop
[INFO   ] WindowSDL: exiting mainloop and closing.
[INFO   ] Base: Leaving application in progress...

Platform (please complete the following information):

black-cat-science commented 4 years ago

Did anyone ever find out the cause of this issue or a solution? I am having a similar problem.

AMongardi commented 11 months ago

Hi everybody, the issue is still present, unfortunately... Can anyone give help? @gljivaer did you find a solution?

hideyourbugs commented 10 months ago

Had a similar issue. Some lines and points were randomly appearing and disapperaing. The list with the coordinates also seemed okay when printed to a log file. I made a workaround to display less data: after a certain time the first elements of the list are popped out and new points are appended.

Tested with: Kivy==1.11.1 Kivy-Garden==0.1.4