简体   繁体   English

失败请求的 Python X 错误:BadValue(整数参数超出操作范围)

[英]Python X Error of failed request: BadValue (integer parameter out of range for operation)

I normally use Thonny as my go-to IDE for Python.我通常使用 Thonny 作为 Python 的首选 IDE。 Just until today, it worked fine.直到今天,它工作得很好。 But it just doesn't work anymore for some reason.但由于某种原因,它不再起作用了。 When I run my code, it does nothing except print this garbage in the terminal:当我运行我的代码时,它除了在终端中打印这些垃圾之外什么都不做:

pygame 2.0.3 (SDL 2.0.16, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (XFree86-VidModeExtension)
  Minor opcode of failed request:  1 (XF86VidModeGetModeLine)
  Value in failed request:  0x21
  Serial number of failed request:  63
  Current serial number in output stream:  63

Backend terminated or disconnected. Use 'Stop/Restart' to restart.

I have no idea why this is happening or what caused it.我不知道为什么会发生这种情况或是什么原因造成的。 I'm running this on a Lenovo Chromebook with an ARM64 processor, and I have Linux activated on it.我在带有 ARM64 处理器的联想 Chromebook 上运行它,并且我在上面激活了 Linux。 I'm using pygame 2.0.3, Python is version 3.9.2, and Thonny is version 3.3.13.我使用的是 pygame 2.0.3,Python 是 3.9.2 版,Thonny 是 3.3.13 版。 If I have to reinstall everything, so be it.如果我必须重新安装所有东西,那就这样吧。

I fixed it.我修好了它。 All I had to do was powerwash my Chromebook and install everything all over again.我所要做的就是对我的 Chromebook 进行 Powerwash 并重新安装所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM