Giter Site home page Giter Site logo

Comments (26)

sthalik avatar sthalik commented on May 21, 2024

What OS is it? Only OSX is known to have severe problems at the moment.

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Sorrry, used to abbreviating arch-linux to arch....so OS is linux.

Compiles and runs fine. Choosing point tracker and start works ok .. starts tracking. If I try and stop this then it hangs ... just sits there apparently doing nothing.

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

It's likely an issue with the build environment. It worked for me with no problems for a long while. Almost all of the codebase is portable, and doesn't use any platform-specific bits.

Could be linking against 2 different versions of one library, or anything... Unless you submit a backtrace, it's impossible to solve it.

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Thanks for the comment ... not sure that I will get round to that.

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

What's your Qt graphics system anyway? Use "raster" and not "native". Run like this:

./opentrack -graphicssystem raster

With native, there are nasty Linux-only bugs. Hope this helps!

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Nope, made no difference.

I have made an attempt to use gdb to get a backtrace ... what is the best way to get it to you (15kB)?

Try here: https://gist.github.com/chsims1/8396314

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

Looks like camera can't be properly opened, and blocks during frame retrieval. Hence, attempt to stop the tracking process, as shown in the backtrace, locks up the app.

This isn't something that can be fixed inside opentrack.

See how threads 4, 5 and 1 interact.

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

BTW, the camera (PS3 eye) works fine in FTNoIR under Windows. Is this a linux peculiarity?

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

That's a kernel bug. Try updating to 3.12 or later.

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

uname -r
3.12.6-1-ARCH

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

You could be missing ehci/xhci in the kernel, while having the camera connected to an USB3 port. It could be an old version of opencv, or old version of libv4l2.

Does "qv4l2" show frames from the camera, or does it lock up like opentrack?

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

qv4l2 works fine.

local/opencv 2.4.8-1
Open Source Computer Vision Library

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

Does opentrack ever show a frame in the software's video feed, or is it consistently blank?

Does qv4l2 work at the same framerate as opentrack, or only at 30 hz? Try switching the camera port to a different USB controller, i.e. USB2 instead of possibly USB3.

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

opentrack works fine ie.shows video/points. It hangs when I attempt to stop the video/tracking.

qvl2 works at a variety of framerates.

hmm, need to find which are the usb2 ports to answer that one.

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

In ftnoir_tracker_pt.h:68, change "int commands" to "volatile int commands".

In ftnoir_tracker_pt.cpp:48, comment out the "QMutexLocker lock(&mutex);" line.

It could indeed be a Linux-specific issue.

Does it help?

If we can't get it working within 20 minutes, will answer further responses after 17:00 CET. Already late :)

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Just plugged webcam directly into usb port rather than hub. It now crashes with the following message:

OpenCV Error: Assertion failed (count >= 4) in cvFindHomography, file /build/opencv/src/opencv-2.4.8/modules/calib3d/src/fundam.cpp, line 235
terminate called after throwing an instance of 'cv::Exception'
what(): /build/opencv/src/opencv-2.4.8/modules/calib3d/src/fundam.cpp:235: error: (-215) count >= 4 in function cvFindHomography

Aborted (core dumped)

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

% git pull

The version of opencv you're using is incompatible with the change, that's since been reverted.

I'll fix the mutex starvation anyway. Done. FWIW, it's only PT that has this problem.

If there's any ambiguity, it's opentrack that needs to be pulled, opencv is fine.

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Ok that solved that problem. Still hanging on attempting to stop video though

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

Can you verify that aforementioned lines in .cpp and .h are commented out qmutexlocker and "volatile int commands", respectively?

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Yep, lines confirmed.

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

It's actually tracker thread in tracker.cpp that blocks. Sorry for the misdiagnosis.

What's the GNU CC version? Seems like an obvious bug given volatile status of bool Tracker::should_stop.

Don't get me wrong though, will work around the issue, but only after getting back home. Too involved to do now.

If you want to fix it on your own, make QMutex in tracker.h public, then move the QMutexLocker line in tracker.cpp to the top, right after "forever {", but before "if (should_stop)". Then in facetracknoir.cpp:stopTracker, add "QMutexLocker(&tracker->mtx);" on line 421, just after "if (tracker) {". The changes are quite involved and not a proper fix, but can't think of anything simpler right now, and have to leave.

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Thanks for your efforts. I will look later .... things to do now. Cheers!

local/gcc-libs-multilib 4.8.2-7

Since your change to git earlier, hanging behaviour has changed .... no longer hangs permanently. Instead hangs for a minute or so, before reporting that "Tracker:: Thread stopping"

What does "HEAD-HASH-NOT FOUND" in window title bar mean? (I didn't notice this previously)

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

What's your GCC version? Will you be here today to test patch?

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

Titlebar version is taken from Git and it seems like the repo's either malformed or there's no Git installed on the system.

Try this:

https://gist.github.com/sthalik/8406027

from opentrack.

sthalik avatar sthalik commented on May 21, 2024

Should be fixed now. Can you confirm?

from opentrack.

chsims1 avatar chsims1 commented on May 21, 2024

Hi, yes it works fine now ,,,, tyvm. Impressive speed of resolution. I'll go and have a play now.

from opentrack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.