stereolabs / zed-tracking-viewer

[DEPRECATED] ZED SDK sample to show the tracking capability
MIT License
17 stars 10 forks source link

OOM Killer on Jetson TK1 #8

Open twodollarz opened 7 years ago

twodollarz commented 7 years ago

Hi, I'm running zed-tracking-viewer on Jetson TK1 (JetPack for L4T Ver.2.3.1 and ZED SDK 1.2.0) and encountered a OOM Killer issue.

ZED SDK 1.2.0

$ ./ZED\ Tracking\ Viewer 
ZED SDK >> (Init) Best GPU Found : GK20A , ID : 0
ZED SDK >> (Init) Disparity mode has been set to PERFORMANCE
ZED SDK >> (Init) Creating ZED GPU mem...
ZED SDK >> (Init) Starting Self-Calibration in background... 
Killed
Dec 17 22:46:15 tegra-ubuntu kernel: [33948.691048] Out of memory: Kill process 8891 (ZED Tracking Vi) score 390 or sacrifice child
Dec 17 22:46:15 tegra-ubuntu kernel: [33948.699404] Killed process 8891 (ZED Tracking Vi) total-vm:1164028kB, anon-rss:733532kB, file-rss:21164kB

I fixed vm.overcommit_ratio from 50 to 80, but I met the same error.

ZED SDK 1.1.0

Also I tried ZED SDK 1.1.0, then another error occurred.

$ ./ZED\ Tracking\ Viewer 
ZED SDK >> (Init) Best GPU Found : GK20A , ID : 0
ZED SDK >> (Init) Disparity mode has been set to PERFORMANCE
ZED SDK >> (Init) Creating ZED GPU mem...
ZED SDK >> (Init) Starting Self-Calibration in background... 
ZED SDK >> (Init) No compatible NVIDIA device found, disparity map unavailable. 
 Err Code : 8 : 0
NO_GPU_COMPATIBLE

ZED SDK 1.0.0

But in case of ZED SDK 1.0.0, it could be run properly.

$ ./ZED\ Tracking\ Viewer 
ZED SDK >> (Init) Best GPU Found : GK20A , ID : 0
ZED SDK >> (Init) Disparity mode has been set to PERFORMANCE
ZED SDK >> (Init) Creating ZED GPU mem...
ZED SDK >> (Init) Starting Self-Calibration in background... 
ZED SDK >> (Init) Done...
SUCCESS
ZED SDK >> (Tracking) Relocalization activated.

It seems that ZED SDK cannot recognize GPU properly on ZED SDK 1.1.0 and 1.2.0, how can I run this on latest ZED SDK?

james-yoo commented 7 years ago

I have exactly same problem. I have flashed my tk1 board with Jetpack 2.3.1(L4T R21.5) and installed ZED SDK 1.2.0. Does anybody solvd this issue?