aidlearning / AidLearning-FrameWork

🔥🔥🔥AidLearning is a powerful AIOT development platform, AidLearning builds a linux env supporting GUI, deep learning and visual IDE on Android...Now Aid supports CPU+GPU+NPU for inference with high performance acceleration...Linux on Android or HarmonyOS
https://docs.aidlux.com
Other
5.55k stars 704 forks source link

运行pygame导致python崩溃 #162

Closed Young-Lord closed 3 years ago

Young-Lord commented 3 years ago

版本:0.87F2

报错完整代码:

root@localhost:/home# python
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
pygame 1.9.4.post1
Hello from the pygame community. https://www.pygame.org/contribute.html
>>> pygame.init()
Fatal Python error: (pygame parachute) Segmentation Fault

Current thread 0x00000070463ca010 (most recent call first):
  File "<stdin>", line 1 in <module>
已放弃
root@localhost:/home#
Young-Lord commented 3 years ago

清除数据并重装最新版本(0.87F3)后,bug不再存在 怀疑此bug是因为自行安装pypi中的pygame造成

Young-Lord commented 3 years ago

但问题是,为什么pygame会显示在命令行里而不是独立窗口?命令行里的观感极差

图:绘制一个纯红长方体

img