kivy: Kivy app not responding well or too slow to respond

Versions

  • Python: v3.7.4
  • OS: Windows 10
  • Kivy: v1.11.1
  • Kivy installation method: pip install

Description

I’m trying to run a simple kivy app (from ping pong tutorial), but after it open a window it seems to not respond to any event or more like it’s too slow to respond. It takes more than 10s for it to even get the minimize button get hovered. Sometimes, it can’t even move the window at all.

GVkYGas9np

At first I thought it’s because I open many applications that it become slow, but it seems that’s not the case, it’s normal for other application.

Code and Logs

from kivy.app import App
from kivy.uix.widget import Widget


class PongGame(Widget):
    pass


class PongApp(App):
    def build(self):
        return PongGame()


if __name__ == '__main__':
    PongApp().run()
[WARNING] [Config      ] Older configuration version detected (0 instead of 21)
[WARNING] [Config      ] Upgrading configuration in progress.
[INFO   ] [Logger      ] Record log in C:\Users\Amatarazatas\.kivy\logs\kivy_19-12-04_0.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\Amatarazatas\AppData\Local\pypoetry\Cache\virtualenvs\kivy-test-project-py3.7\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\Amatarazatas\AppData\Local\pypoetry\Cache\virtualenvs\kivy-test-project-py3.7\Scripts\python.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.0.0 - Build 10.18.10.4358'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel'>
[INFO   ] [GL          ] OpenGL renderer <b'Intel(R) HD Graphics'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 0
[INFO   ] [GL          ] Shading version <b'4.00 - Build 10.18.10.4358'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Base        ] Start application main loop

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 1
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Hi @AnonymousX86

I’m using Kivy 1.11.1 and Python 3.7.7. Could anybody help me?

Read my post above and try to create a new virtualenv with current kivy_deps.sdl2 and kivy_deps.glew:

python -m venv venv
.\venv\Scripts\activate
python -m pip install --upgrade pip virtualenv
python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2 kivy_deps.glew
python -m pip install kivy

As an alternative try Kivy2.0.0rc, but I believe with just the updated kivy_deps it will work fine.

Another test made here with good results.

I followed the instructions to install the stable version but avoided using the pinned versions of the libraries and It worked very well.

python -m venv venv
.\venv\Scripts\activate
python -m pip install --upgrade pip virtualenv
python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2 kivy_deps.glew
python -m pip install kivy

The problem must be in kivy_deps.sdl2==0.1.* or kivy_deps.glew==0.1.*. The current versions of both is 0.2.0. My laptop have two graphics cards and maybe it’s related too.

This doc should be corrected https://kivy.org/doc/stable/installation/installation-windows.html#installing-the-kivy-stable-release I looked for the source of the page but could not find it.