ApolloAuto/apollo

Error when using cyber_visualizer

lucywang-NI opened this issue · 6 comments

Got below error information when trying to launch cyber_visualizer following the instructions.

root@in-dev-docker:/apollo# source cyber/setup.bash
root@in-dev-docker:/apollo# cyber_visualizer
No protocol specified
qt.qpa.xcb: could not connect to display :10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

System information

  • **OS Platform and Distribution **: Linux Ubuntu 20.04.2
  • Apollo installed from (source or binary): source
  • Apollo version (3.5, 5.0, 5.5, 6.0): master branch
  • Output of apollo.sh config if on master branch:
    -[INFO] Apollo Environment Settings:
    [INFO] APOLLO_ROOT_DIR: /apollo
    [INFO] APOLLO_CACHE_DIR: /apollo/.cache
    [INFO] APOLLO_IN_DOCKER: true
    [INFO] APOLLO_VERSION: master-2021-06-11-ec30ae63c8
    [INFO] DOCKER_IMG: dev-x86_64-18.04-20210517_1712
    [INFO] APOLLO_ENV: STAGE=dev USE_ESD_CAN=false
    [INFO] USE_GPU: USE_GPU_HOST=1 USE_GPU_TARGET=1
    [INFO] Usage: /apollo/scripts/apollo_config.sh [Options]
    [INFO] Options:
    [INFO] -i|--interactive Run in interactive mode
    [INFO] -n|--noninteractive Run in non-interactive mode
    [INFO] -h|--help Show this message and exit

It's probably that your docker is running in root mode.

尝试按照说明启动cyber_visualizer 时收到以下错误信息。

root@in-dev- docker:/apollo# source Cyber /setup.bash root@in-dev-docker:/apollo#cyber_visualizer 没有指定协议 qt.qpa.xcb:无法连接到显示器:10.0 qt.qpa.plugin : 无法在“”中加载 Qt 平台插件“xcb”,即使它已找到。 此应用程序无法启动,因为无法初始化 Qt 平台插件。重新安装应用程序可能会解决此问题。

可用的平台插件有:eglfs、linuxfb、minimum、minimalegl、offscreen、vnc、wayland-egl、wayland、wayland-xcomposite-egl、wayland-xcomposite-glx、xcb。

中止(核心转储)

系统信息

  • 操作系统平台和发行版:Linux Ubuntu 20.04.2
  • 从(源代码或二进制文件)安装的 Apollo:源代码
  • Apollo 版本 (3.5, 5.0, 5.5, 6.0) : master 分支
  • apollo.sh configif on masterbranch 的输出
    -[INFO] Apollo Environment Settings:
    [INFO] APOLLO_ROOT_DIR:/apollo
    [INFO] APOLLO_CACHE_DIR:/apollo/.cache
    [INFO] APOLLO_IN_DOCKER:true
    [INFO]APOLLO_VERSION:master-2021-06-11- ec30ae6
    [INFO] DOCKER_IMG: dev-x86_64-18.04-20210517_1712
    [INFO] APOLLO_ENV: STAGE=dev USE_ESD_CAN=false
    [INFO] [INFO] USE_GPU: USE_GPU_HOST=1 USE_GPU_HOST=1
    USE_1GPU_TARlosscript ]
    [INFO] 选项:
    [INFO] -i|--interactive 在交互模式下运行
    [INFO] -n|--noninteractive 在非交互模式下运行
    [INFO] -h|--help 显示此消息并退出

Got below error information when trying to launch cyber_visualizer following the instructions.

root@in-dev-docker:/apollo# source cyber/setup.bash root@in-dev-docker:/apollo# cyber_visualizer No protocol specified qt.qpa.xcb: could not connect to display :10.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

System information

  • **OS Platform and Distribution **: Linux Ubuntu 20.04.2
  • Apollo installed from (source or binary): source
  • Apollo version (3.5, 5.0, 5.5, 6.0): master branch
  • Output of apollo.sh config if on master branch:
    -[INFO] Apollo Environment Settings:
    [INFO] APOLLO_ROOT_DIR: /apollo
    [INFO] APOLLO_CACHE_DIR: /apollo/.cache
    [INFO] APOLLO_IN_DOCKER: true
    [INFO] APOLLO_VERSION: master-2021-06-11-ec30ae63c8
    [INFO] DOCKER_IMG: dev-x86_64-18.04-20210517_1712
    [INFO] APOLLO_ENV: STAGE=dev USE_ESD_CAN=false
    [INFO] USE_GPU: USE_GPU_HOST=1 USE_GPU_TARGET=1
    [INFO] Usage: /apollo/scripts/apollo_config.sh [Options]
    [INFO] Options:
    [INFO] -i|--interactive Run in interactive mode
    [INFO] -n|--noninteractive Run in non-interactive mode
    [INFO] -h|--help Show this message and exit

Excuse me, have you solved this problem?

Hello, have you solved this problem? I encountered the same problem, how did you solve it

Hello, have you solved this problem? I encountered the same problem, how did you solve it

Running apollo_dev_ docker in normal user mode instead of root user might solve this problem. Bash docker/scripts/dev_into.sh can enter into docker in normal user space. Or add an parameter "--user <your_user_name>" to "docker exec" command.

Seems to be resolved, we will close this issue. If the problem persists, pls feel free to reopen it or create a new one and refer to it.

yqw11 commented

I have met this problem, but I can't resolve it. Could you please describle the solution more clearly?