运行程序时,使用Pangolin显示,pangolin界面黑屏,电脑卡住,之后程序崩溃。
解决办法:
执行下面命令后,再执行程序。
export LIBGL_ALWAYS_SOFTWARE=1
如果还不好用:可以按照下面这个方式配置:
1. sudo vim /etc/default/grub
2. find GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
3. Then add "nomodeset" at the end, save, and exit.
for example, GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
5. sudo update-grub
6. reboot
After these operations, all programs can be executed well on my PC.
You can check it on your PC. If it works well, maybe you can add
this tip to the document, which could be helpful.
当运行程序遇到Pangolin界面黑屏并导致电脑卡住或程序崩溃时,可以尝试设置环境变量LIBGL_ALWAYS_SOFTWARE=1。如果问题依然存在,可以通过编辑GRUB配置,在GRUB_CMDLINE_LINUX_DEFAULT中添加nomodeset,更新GRUB并重启电脑,这通常能解决显示问题。
4916

被折叠的 条评论
为什么被折叠?



