在泊坞窗容器“(pygame的降落伞)段错误”

在泊坞窗容器“(pygame的降落伞)段错误”

问题描述:

我特林在泊坞窗容器使用pygame的(我希望得到从容器中显示),当出现以下错误:在泊坞窗容器“(pygame的降落伞)段错误”

Fatal Python error: (pygame parachute) Segmentation Fault 

重现:

  1. 泊坞安装
  2. 搬运工运行 - 它-e DISPLAY -w/pygame_hello_world buxx/pygame_hello_world /usr/bin/python3.4 hello_world.py
012 (对我来说)

结果是:

Fatal Python error: (pygame parachute) Segmentation Fault 

Current thread 0x00007f465f894740 (most recent call first): 
    File "hello_world.py", line 7 in <module> 

码头工人形象here可以查看hello_world.py内容here

如果你运行docker run -it -w /pygame_hello_world buxx/pygame_hello_world /usr/bin/python3.4 hello_world.py命令(没有-e DISPLAY选项),你可以看到pygame工作显示caca

会发生什么?如何解决它?

+0

你并不孤单,我也得到'致命的Python错误:(pygame的降落伞)分段错误 当前线程0x00007f47c673c740(最近一次调用第一)您的图像,我的码头版本1.9.0-rc2 – user2915097

与合作:

docker run -w /pygame_hello_world -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/snd:/dev/snd --privileged -e DISPLAY buxx/pygame_hello_world python3.4 hello_world.py 

必须让泊坞窗用户与xhost +local:docker与X会话交流。

灵感来自this。建成后 文件“hello_world.py”,7号线在 `:

+0

我在编译C扩展名为PHP时遇到了此分段错误问题。有任何想法吗? – MrMesees