我在Debian Jessie上安装了Kivy the instructions on their website.一切安装顺利。但每当我尝试运行任何Kivy示例,甚至我自己的Kivy代码时,我都会得到以下输出:
[INFO ] Kivy v1.8.0
[INFO ] [Logger ] Record log in /home/tom/.kivy/logs/kivy_14-12-10_3.txt
[INFO ] [Factory ] 157 symbols loaded
[DEBUG ] [Cache ] register <kv.lang> with limit=None, timeout=Nones
[DEBUG ] [Cache ] register <kv.image> with limit=None, timeout=60s
[DEBUG ] [Cache ] register <kv.atlas> with limit=None, timeout=Nones
[INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img_pil, img_gif
[DEBUG ] [Cache ] register <kv.texture> with limit=1000, timeout=60s
[DEBUG ] [Cache ] register <kv.shader> with limit=1000, timeout=3600s
[DEBUG ] [Window ] Ignored <egl_rpi> (import error)
[INFO ] [Window ] Provider: pygame(['window_egl_rpi'] ignored)
nvc0_screen_create:660 - Error creating SW object: -22
*** Error in `python': double free or corruption (fasttop): 0x0000000002414c90 ***
Aborted
如果你熟悉Kivy,你会知道所有输出都很好,除了这部分:
nvc0_screen_create:660 - Error creating SW object: -22
*** Error in `python': double free or corruption (fasttop): 0x0000000002414c90 ***
Aborted
我做了一些谷歌搜索,发现这与内存泄漏有关,或者在你不应该的地方调用free()
。但是,这显然与Python代码无关。一些结果发现了与NumPy和SciPy类似的问题,但两者似乎都已完全更新。
如果您想了解有关我的操作系统或硬件的更多信息,我很乐意发布。请问。
如何摆脱这个错误并运行Kivy?