How to solve the problem with Kivy: Bad window (invalid Window parameter)?

I installed Kivy and Cython. I am using VirtualBox and Arch Linux with Gnome as the Display Manager. After creating the next application

from kivy.app import App from kivy.uix.button import Button class CalcApp(App): def build(self): return Button(text="Hello World") if __name__ == '__main__': CalcApp().run() 

I get the following error

 [INFO ] [Logger ] Record log in /home/kyle/.kivy/logs/kivy_17-10-19_40.txt [INFO ] [Kivy ] v1.10.0 [INFO ] [Python ] v3.6.2 (default, Jul 20 2017, 03:52:27) [GCC 7.1.1 20170630] [INFO ] [Factory ] 194 symbols loaded [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) [INFO ] [Text ] Provider: sdl2 [INFO ] [OSC ] using <multiprocessing> for socket [INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored) X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 4 (X_DestroyWindow) Resource id in failed request: 0x0 Serial number of failed request: 151 Current serial number in output stream: 152 

If I run the disset DISPLAY command, it will work as intended, but without the ability to minimize, maximize, and close the window that is normally available.

Is there a way to fix this error, so I won’t need to enter unset DISPLAY every time a new terminal window opens and does it look like a regular window?

+5
source share
2 answers

Take a look at this issue on Github, there seems to be the same issue: https://github.com/kivy/kivy/issues/5476

For posterity (and in the event of a disconnection), this is probably a problem with multiple sampling.

Try the following fixes:

  • Use a different desktop environment where multitasking is running
  • downgrade sdl2 to 2.0.5
  • sdl2 upgrade to 2.0.7
  • disable multisampling in kiwi (can be done by editing ~ / .kivy / config.ini and setting multisampling to 0
+1
source

My problem was resolved with updates. After about a month, I was able to use Kivy, as expected, without errors.

0
source

Source: https://habr.com/ru/post/1272759/


All Articles