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

segmentation fault #1

Open
rainyyun opened this issue Feb 20, 2013 · 1 comment
Open

segmentation fault #1

rainyyun opened this issue Feb 20, 2013 · 1 comment

Comments

@rainyyun
Copy link

The compilation seems fine, even though I need to install some missing libraries.. (OS: ubuntu 11.10)
when I run the ./CameraCalibrator I got the following:

Welcome to CameraCalibrator


Parallel tracking and mapping for Small AR workspaces
Copyright (C) Isis Innovation Limited 2008

Parsing calibrator_settings.cfg ....
VideoSource_Linux: Opening video source...

VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
... got video source.
Segmentation fault

Then I changed the video source to Gstreamer, no error...but nothings happens, no camera preview window etc... only printed this:

Parsing calibrator_settings.cfg ....

? GV3::Register: string GStreamerVideoFilename undefined. Defaults to "example.avi"
gstreamer pipeline:
filesrc location="example.avi" ! decodebin ! tee ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb,width=640,height=480 ! queue ! appsink name=rgbvideo max-buffers=2 drop=false tee0. ! queue ! ffmpegcolorspace ! videoscale ! video/x-raw-gray,width=640,height=480 ! appsink name=grayvideo max-buffers=2 drop=false

Hope you have an idea about what is wrong....

@hustcalm
Copy link

Hi,

I wonder if you have figured out what is the root cause for this problem.

I got Segmentation Fault too on a Fedora 20 machine, after seeing the PTAM FAQ, I suspect that we may use the wrong display card and driver combo.

As George Klein suggests in README.txt, that it works fine on a Nvidia card.

However, I think the root cause is that the video source class can't handle the colour space coming from the webcam, thus a hack to the source code may solve the problem and I'm working on it.

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

2 participants