apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Offline Perception LowCost Visualizer Not Showing

Open liuyangly25 opened this issue 8 years ago • 16 comments

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 14.04): Linux Ubuntu 16.04
  • Apollo installed from (source or binary): source
  • Apollo version (1.0, 1.5, 2.0, 2.5, 3.0): 2.5

Steps to reproduce the issue:

  • follow the guide how_to_run_apollo_2.5_perception_visualizer
  • cd /apollo
  • ./apollo.sh build_opt_gpu
  • change config --dag_config_path=conf/dag_camera_obstacle_offline_fusion_sync.config
  • ./scripts/bootstrap.sh
  • ./scripts/perception_lowcost_vis.sh
  • rosbag play demo_2.5.bag

Supporting materials (screenshots, command lines, code/script snippets):

screenshot dreamviewer works fine but popup window not showing Did I miss any steps?

liuyangly25 avatar Aug 17 '18 09:08 liuyangly25

Thank you for using Apollo!

Ubuntu 16 and glfw in docker may not match. Please take a look at this document apollo/docs/howto/how_to_run_apollo_2.5_with_ubuntu16.md Please let us know if you still have the issue.

techoe avatar Aug 17 '18 17:08 techoe

Hello @techoe , thank you for replying. I installed GLFW 3.2.1 and added glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API); in glfw_fusion_viewer.cc. But the pop up still now showing.

liuyangly25 avatar Aug 20 '18 01:08 liuyangly25

Hi @techoe , I switched to ubuntu 14.04.3. But still, I can't see the popup. Did I miss anything?

liuyangly25 avatar Aug 21 '18 03:08 liuyangly25

I am in ubuntu 14.03,and I rebuild glfw 3.2.1 both in docker&host. But I have the same problem.

sinopec avatar Aug 28 '18 09:08 sinopec

@liuyangly25 @sinopec Hi, could you please check the /apollo/data/log/perception.INFO and perception.ERROR to see if there is an error? There are many possibilities that stop the visualizer from poping up.

xiaoshuliu avatar Aug 28 '18 18:08 xiaoshuliu

Hello @xiaoshuliu , thank you for replying. I do have errors in perception.ERROR files. seems like glfw is not working. But I already installed glfw 3.2.1 in docker.

Log file created at: 2018/08/28 15:45:27 Running on machine: in_dev_docker Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg E0828 15:45:27.712261 5318 glfw_fusion_viewer.cc:180] Failed to initialize the window !

liuyangly25 avatar Aug 29 '18 02:08 liuyangly25

@liuyangly25 for Ubuntu 14, you do not need to separately download the glfw file. Please follow the download steps for Ubuntu 14 from the start and let us know if you are getting any errors. Thanks!

natashadsouza avatar Aug 29 '18 22:08 natashadsouza

@natashadsouza , I also tried running apollo on ubuntu 14.4 with NVIDIA driver installed on both host and docker. But I didn't get luck on it. From perception.out file, I got F0824 11:03:26.991583 13256 cudnn_relu_layer.cpp:13] Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0) CUDNN_STATUS_INTERNAL_ERROR

I guess it is building the graph but suddenly a cudnn internal error occurred.

More details here:

I0824 11:03:26.990317 13256 layer_factory.hpp:79] Creating layer SCNN_D_27/relu I0824 11:03:26.990327 13256 net.cpp:94] Creating Layer SCNN_D_27/relu I0824 11:03:26.990337 13256 net.cpp:428] SCNN_D_27/relu <- SCNN_D_27/message I0824 11:03:26.990348 13256 net.cpp:389] SCNN_D_27/relu -> SCNN_D_27/message (in-place) F0824 11:03:26.991583 13256 cudnn_relu_layer.cpp:13] Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0) CUDNN_STATUS_INTERNAL_ERROR *** Check failure stack trace: **

liuyangly25 avatar Aug 30 '18 02:08 liuyangly25

@liuyangly25 did the build changes not resolve the CUDA error you are currently facing?

natashadsouza avatar Aug 31 '18 01:08 natashadsouza

@natashadsouza , no, the build changes is for glfw 3.2.1 on ubuntu 16.04. On ubuntu 14.04, I didn't change anything, just used the default glfw in docker. I don't know where the cudnn internal error comes from. googling gives me few information.

liuyangly25 avatar Aug 31 '18 06:08 liuyangly25

@liuyangly25 @techoe Sorry to ask about this old issue. Did anyone find a solution at last?

yuliangguo avatar Nov 21 '18 01:11 yuliangguo

@liuyangly25 , Did you solve the problem? I was fronted with the same problem, not know why failed to initialize the window!

ccyinlu avatar Dec 18 '18 05:12 ccyinlu

@liuyangly25 hi, have you solved it? I am having the same problem, the visualizer is not showing and I also installed the glfw in host and docker.

hzdsdhr avatar Jan 26 '19 08:01 hzdsdhr

Hi, I have installed GLFW 3.2.1 in UBUNTU 16.04. But I am not able to find glfw_fusion_viewer.cc file to make the required change mentioned in "https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_run_apollo_2.5_with_ubuntu16.md" even after a lot of searches. Could someone please guide me on this?

mayankdhingra02 avatar Feb 21 '19 18:02 mayankdhingra02

Hi, I have installed GLFW 3.2.1 in UBUNTU 16.04. But I am not able to find glfw_fusion_viewer.cc file to make the required change mentioned in "https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_run_apollo_2.5_with_ubuntu16.md" even after a lot of searches. Could someone please guide me on this?

@mayankdhingra02 you can find the file here : modules/perception/obstacle/camera/visualizer/glfw_fusion_viewer.cc

wardenLL avatar Mar 06 '19 01:03 wardenLL

Hope our answer resolved your questions. We will close the issue for now. If you have any additional question, please feel free to open a new issue. Our engineer team are more than happy to help that.

Thank you for supporting Apollo!

sjiang2018 avatar Jul 01 '20 22:07 sjiang2018