天天看点

Linux ubuntu Unreal 4 运行闪退

按照Airsim 的document里的方法,装好了UE4和airsim,在./UE4Editor 的时候,提示我没有OpenGL 4.3,让我加-opengl3来运行unreal。

我加了这个指令之后,能弹出加载框从0%加载到100%之后,就闪退自动关闭,看terminal里的记录信息,没有找到什么error,偶尔几个warning感觉都不是关键,最后的输出是这个。

Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.

Segmentation fault (core dumped)

找了一些网上的资源和相似情况:

https://github.com/carla-simulator/carla/issues/757

https://github.com/carla-simulator/carla/issues/73

基本都是指向显卡驱动版本不合适。但是我的显卡驱动是418.7x,总之很新,我尝试更新OpenGL:

apt-add-repository ppa:oibaf/graphics-drivers && apt-get update && apt-get dist-upgrade (要加sudo)
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev

总之怎么都升级不了。

后来想到,我在我自己另一个安装Nvidia显卡驱动的帖子里(https://blog.csdn.net/fanyue1997/article/details/91359464),写了我装驱动的时候,加了一个-no-opengl…………

我重新运行了一次驱动安装文件(.run),sudo ./xxx.run -no-x-check -no-nouveau-check(不加 -no-opengl-files)

然后./UE4Editor, 就一切正常了。看来用OpenGL3来运行unreal是不大行的。

继续阅读