{"action":"created","issue":{"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/110","repository_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose","labels_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/110/comments","events_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/110/events","html_url":"https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/110","id":239206569,"number":110,"title":"Segmentation Fault in resizeFixedAspectRatio (Ubuntu)","user":{"login":"johaq","id":10008966,"avatar_url":"https://avatars3.githubusercontent.com/u/10008966?v=3","gravatar_id":"","url":"https://api.github.com/users/johaq","html_url":"https://github.com/johaq","followers_url":"https://api.github.com/users/johaq/followers","following_url":"https://api.github.com/users/johaq/following{/other_user}","gists_url":"https://api.github.com/users/johaq/gists{/gist_id}","starred_url":"https://api.github.com/users/johaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johaq/subscriptions","organizations_url":"https://api.github.com/users/johaq/orgs","repos_url":"https://api.github.com/users/johaq/repos","events_url":"https://api.github.com/users/johaq/events{/privacy}","received_events_url":"https://api.github.com/users/johaq/received_events","type":"User","site_admin":false},"labels":[{"id":590752513,"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-28T15:37:18Z","updated_at":"2017-06-29T18:29:08Z","closed_at":"2017-06-28T18:11:15Z","body":"Hi, \r\nI'm trying to extract poses from a cv image. I looked at the example code, but right now I got the following problem:\r\nI call cvMatToOpInput.format:\r\n```\r\nop::CvMatToOpInput cvMatToOpInput{netInputSize, scaleNumber, (float)scaleGap};\r\nstd::tie(netInputArray, scaleRatios) = cvMatToOpInput.format(inputImage);\r\n```\r\nnetInputSize: (656,368)\r\nscaleNumber: 1.0\r\nscaleGap: 0.3\r\ninputImage Size: (640,480)\r\n\r\nIn cvMatToOpInput.format I get a segfault. Using gdb i could track the problem to the resizeFixedAspectRatio method. Backtrace:\r\n```\r\nThread 1 \"detect_people_s\" received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff604e901 in op::resizeFixedAspectRatio(cv::Mat const&, double, op::Point<int> const&, int, cv::Scalar_<double> const&) () from /home/johannes/robocup/openpose/build/lib/libopenpose.so.1.0.0-rc3\r\n(gdb) bt\r\n#0  0x00007ffff604e901 in op::resizeFixedAspectRatio(cv::Mat const&, double, op::Point<int> const&, int, cv::Scalar_<double> const&) () from /home/johannes/robocup/openpose/build/lib/libopenpose.so.1.0.0-rc3\r\n#1  0x00007ffff6060806 in op::CvMatToOpInput::format(cv::Mat const&) const () from /home/johannes/robocup/openpose/build/lib/libopenpose.so.1.0.0-rc3\r\n```\r\n\r\nDid anyone else experience this issue? Could there be something wrong with my opencv installation? Or is it a simple config error and I missed the guide on how to set scalenum and scalegap correctly?\r\n\r\n### Type of issue\r\nYou might select multiple topics, delete the rest:\r\n- Execution error\r\n- Help wanted\r\n- Question\r\n\r\n\r\n\r\n### Your system configuration\r\n**Operating system** : Ubuntu 16.04\r\n**CUDA version** : 8.0\r\n**cuDNN version**: 6.0\r\n**GPU model** (`nvidia-smi`): GeForce 940MX\r\n**Caffe version**: Default from OpenPose\r\n**OpenCV version**: 3.2\r\nCompiler: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609\r\n"},"comment":{"url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/comments/312055054","html_url":"https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/110#issuecomment-312055054","issue_url":"https://api.github.com/repos/CMU-Perceptual-Computing-Lab/openpose/issues/110","id":312055054,"user":{"login":"johaq","id":10008966,"avatar_url":"https://avatars3.githubusercontent.com/u/10008966?v=3","gravatar_id":"","url":"https://api.github.com/users/johaq","html_url":"https://github.com/johaq","followers_url":"https://api.github.com/users/johaq/followers","following_url":"https://api.github.com/users/johaq/following{/other_user}","gists_url":"https://api.github.com/users/johaq/gists{/gist_id}","starred_url":"https://api.github.com/users/johaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johaq/subscriptions","organizations_url":"https://api.github.com/users/johaq/orgs","repos_url":"https://api.github.com/users/johaq/repos","events_url":"https://api.github.com/users/johaq/events{/privacy}","received_events_url":"https://api.github.com/users/johaq/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T18:29:07Z","updated_at":"2017-06-29T18:29:07Z","body":"well for me it was\r\n```\r\nsudo apt purge --remove libopencv-core2.4v5\r\n```\r\nBut your installation might not be from that package.\r\nThe installation of opencv that is currently working for me is installed from source with contributions and cuda. I would also recommend rechecking the Makefile.config files in caffe and openpose to match the opencv version you want to use."}}
{"actor":{"display_login":"johaq"}}