《 Hello World》中仿生的奇异果分割错误

时间:2018-08-06 18:54:15

标签: python ubuntu kivy ubuntu-18.04

新的Kivy用户在这里...

我在仿生Ubuntu中运行Kivy时遇到问题。简单的Hello World应用程序会引发分段错误。窗口以部分绘制的方式在设备屏幕上弹出:框架和标题栏,但没有背景,并且在kivy控制台输出中出现分段错误后立即消失。

我的安装是:

  • Python:2.7
  • 操作系统:Ubuntu-Linux bionic-xfce 4.9.88-5-boundary-14b
  • 基维:1.10.1
  • Kivy安装方法:sudo apt-get从ppa:kivy-team / kivy安装python-kivy
  • 平台:边界的Nitrogen6x Quad-2Gb

Python:

import os
print(os.path)
from kivy.app import App

class MyApp(App):
    pass

if __name__ == '__main__':
    MyApp().run()

最初,我遇到“无法找到任何有价值的Window提供程序”的问题。我必须添加一些未加载的必需软件包(主要与 libsdl 相关),然后运行glxinfo并使用最后一个ID(0x16a)更新环境: < / p>

export SDL_VIDEO_X11_VISUALID=0x16a

这使我摆脱了“没有有价值的窗口”错误,但仍然没有喜悦。现在它可以断层了。

我的 Kivy日志显示:

<module 'posixpath' from '/usr/lib/python2.7/posixpath.pyc'>
[INFO   ] [Logger      ] Record log in /home/ubuntu/.kivy/logs/kivy_18-08-06_12.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0]
[INFO   ] [Factory     ] 194 symbols loaded
[DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[DEBUG  ] [App         ] Loading kv <./my.kv>
[INFO   ] [Text        ] Provider: sdl2
[DEBUG  ] [Window      ] Ignored <egl_rpi> (import error)
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[DEBUG  ] [GL          ] glShaderBinary is not available
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <2.1 V6.2.2.93313>
[INFO   ] [GL          ] OpenGL vendor <Vivante Corporation>
[INFO   ] [GL          ] OpenGL renderer <Vivante GC2000>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <2.1.0 >
[INFO   ] [GL          ] Texture max size <8192>
[INFO   ] [GL          ] Texture max units <8>
[DEBUG  ] [Shader      ] Fragment compiled successfully
[DEBUG  ] [Shader      ] Vertex compiled successfully
[DEBUG  ] [ImageSDL2   ] Load </usr/lib/python2.7/dist-packages/kivy/data/glsl/default.png>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[DEBUG  ] [Resource    ] add </usr/share/fonts> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/truetype> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/truetype/ubuntu> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/truetype/dejavu> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/truetype/freefont> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/truetype/noto> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/cMap> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/X11> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/X11/misc> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/X11/util> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/X11/encodings> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/X11/encodings/large> in path list
[DEBUG  ] [Resource    ] add </usr/share/fonts/cmap> in path list
[DEBUG  ] [Resource    ] add </usr/local/share/fonts> in path list
[DEBUG  ] [Resource    ] add </usr/lib/python2.7/dist-packages/kivy/data/fonts> in path list
[DEBUG  ] [Base        ] Create provider from mouse
[DEBUG  ] [Base        ] Create provider from probesysfs
[DEBUG  ] [ProbeSysfs  ] using probesysfs!
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[DEBUG  ] [Atlas       ] Load </usr/lib/python2.7/dist-packages/kivy/data/images/defaulttheme.atlas>
[DEBUG  ] [Atlas       ] Need to load 1 images
[DEBUG  ] [Atlas       ] Load </usr/lib/python2.7/dist-packages/kivy/data/images/defaulttheme-0.png>
[DEBUG  ] [ImageSDL2   ] Load </usr/lib/python2.7/dist-packages/kivy/data/images/defaulttheme-0.png>
Segmentation fault

问:接下来我应该寻找什么?我是否可以提供其他信息,以帮助某人指出正确的方向?似乎我真的很接近,但是认为这是GL或sdl问题,因为我不得不加载似乎不在发行版中的软件包?

谢谢。

0 个答案:

没有答案