Comments (26)
What OS is it? Only OSX is known to have severe problems at the moment.
from opentrack.
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.
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.
Thanks for the comment ... not sure that I will get round to that.
from opentrack.
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.
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.
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.
BTW, the camera (PS3 eye) works fine in FTNoIR under Windows. Is this a linux peculiarity?
from opentrack.
That's a kernel bug. Try updating to 3.12 or later.
from opentrack.
uname -r
3.12.6-1-ARCH
from opentrack.
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.
qv4l2 works fine.
local/opencv 2.4.8-1
Open Source Computer Vision Library
from opentrack.
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.
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.
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.
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.
% 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.
Ok that solved that problem. Still hanging on attempting to stop video though
from opentrack.
Can you verify that aforementioned lines in .cpp and .h are commented out qmutexlocker and "volatile int commands", respectively?
from opentrack.
Yep, lines confirmed.
from opentrack.
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.
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.
What's your GCC version? Will you be here today to test patch?
from opentrack.
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.
Should be fixed now. Can you confirm?
from opentrack.
Hi, yes it works fine now ,,,, tyvm. Impressive speed of resolution. I'll go and have a play now.
from opentrack.
Related Issues (20)
- Realflight Evolution - not working HOT 1
- Shortcut key bindings not working at all HOT 1
- Issue Compiling and using freetrackclient.c HOT 1
- Missing many input options HOT 5
- SDK wine issue HOT 11
- Linux libevdev output mapping not applied, limited pitch in Warthunder HOT 1
- Kinect v2 support using libfreenect2 HOT 2
- Unknown CMake command "otr_module" HOT 1
- Failed to start Wine! Make sure the binary is set correctly HOT 1
- Opentrack problem! HOT 7
- Win 11 kill Opentrack! HOT 5
- Very high power consumption and CPU load when tracking is enabled. HOT 2
- need help
- Toggle While Held: Right Mouse Button HOT 2
- Mac OS no longer supported? HOT 2
- PointTracker updates/improvements HOT 1
- "fatal error: windows.h: No such file or directory" when compiling with Wine support HOT 2
- Wine plugin breaks in Wine 9.5, works in Wine 9.4 HOT 5
- Issues with face tracking to mouse output HOT 1
- 2023.3.0 - Relative Translation- incorrect 'relative' axis?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentrack.