Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis で virtual memory exhausted: C:annot allocate memory のエラー対策 #16

Open
MoriKen254 opened this issue Dec 18, 2016 · 1 comment
Assignees

Comments

@MoriKen254
Copy link
Member

MoriKen254 commented Dec 18, 2016

問題

こちらから travis を行うと,標記のエラーが出てビルドが途中で終わってしまい,testも通りません.
catkin_makeの途中でこのエラーが出ます.

cirkit_unit03_pkgs から必要なpkgを全部引っ張ってきていると思いますが,非同期でビルドが走る際にtravisで用意している環境でメモリが足りなくなって落ちるっぽいです.問答無用で落とされます.

おそらく,一番ビルドが重いtarget_object_detectorが他のやや重めのpkgのビルドと同時進行した時に発生すると推測しました.

とはいえ,こちらからはどうしてもメモリの容量など環境についてはいじれないようで,困ったことになりました.

失敗例

対策

仕方がないので,先に重たいtarget_object_detectorだけcatkin_make --pkg target_object_detectorで単独ビルドして,残りをcatkin_makeでビルドするように構成しました.

ひとまずこうすれば標記のエラーで落ちることはなく,テストも全て通ります.

成功例

注意点

human_detector について

なお,本ブランチではhuman_detectorのブランチをmasterではなく,mm/travisとしているので,ご注意下さい.これのryodo/travisに対するプルリクはCIR-KIT/human_detector#4 です.

ira_laser_tools について

https://github.com/AriYu/ira_laser_toolsfix-eigen3cmakeではなく,https://github.com/CIR-KIT/ira_laser_toolsmasterでもtravisは通るようでした.

https://github.com/CIR-KIT/ira_laser_tools は,pcl へのdependが消してあるので,rosdepでエラーも出ないのがいいですね.ここで挿入している時間遅れの処理を外して,timed_roslaunchでエラーを回避すれば,ハードコーディングが消えてきれいな構成になるんじゃないかな,と思っています.

以上,本採用に際し,ご参考下さい.

@AriYu
Copy link
Member

AriYu commented Dec 20, 2016

@MoriKen254
https://github.com/CIR-KIT/ira_laser_toolsmasterブランチでもtravisが通るのはmasterに直接修正コミットをしているみたいですね。

time_roslaunchを使ったほうがいいと思うのでそのように修正します。

@forno forno removed their assignment Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants