rayantony / linux-track

Automatically exported from code.google.com/p/linux-track
MIT License
0 stars 0 forks source link

Can't install properly #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the application buy double clicking it.
2. in terminal: "/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/ltr_gui"
3. in terminal: "sudo 
/Applications/Linuxtrack/ltr_gui.app/Contents/MacOS/ltr_gui"
4. manually sudo make the linuxtrack folder in .config and copy the 
linuxtrack1.conf to this folder
5. run the application and try to start the webcam face tracker

What is the expected output? What do you see instead?
1. I expect the app to run, instead popup sais "Can't create 
'/Users/Joakim/.config/linuxtrack'!" and then crashes. Crashreport is attached.

2. I expect the same results as above with some debug log. This is what I get:
"2015-04-08 09:40:48.721 ltr_gui[8643:2088975] modalSession has been exited 
prematurely - check for a reentrant call to endModalSession:
libc++abi.dylib: terminating
Abort trap: 6"

3. I expect the app to now be able to create the folders and files, instead it 
sais: "Linuxtrack components aren't supposed running with root privileges!"

5. After adding the files manually, I expect it to run, and the webcam to 
start. Instead this happens:
5.1 popup sais: "Another linuxtrack gui is running already!"
terminal now sais: "2015-04-08 09:46:44.582 ltr_gui[8677:2092386] modalSession 
has been exited prematurely - check for a reentrant call to endModalSession:"

5.2 popup sais: "TrackIR device was found, but you don't have permissions to 
access it
 Please install the file 51-TIR.rules to the udev rules directory
(consult help and your distro documentation for details).
You are going to need administrator privileges to do that."
 ((Even though I don't have any trackir)).
 Terminal sais: "2015-04-08 09:47:50.494 ltr_gui[8677:2092386] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap"

5.3 No camera starts when I select the camera as device and face model and 
press start in the tracking window
terminal sais the same things a few times when doing this..

What version of the product are you using? On what operating system?
linuxtracker 0.99.12
OS X Yosemite (10.10.2)

Please provide any additional information below.

Original issue reported on code.google.com by Oscarsso...@gmail.com on 8 Apr 2015 at 7:55

Attachments:

GoogleCodeExporter commented 9 years ago
Hello,
to be honest, I'd start from the begining - please remove or rename the 
linuxtrack directory inside your ~/.config ...

Now, to the problem at point 1) - when starting the ltr_gui, is /Users/Joakim 
your $HOME? If yes, can you check, that you can create the .config/linuxtrack 
directories in terminal without using root privileges (sudo)? This kind of 
error might be caused by wrong permissions (sometimes happens on Macs)... As 
for the crash, that is a problem and I'm going to fix that...

As for 2), logs are in /tmp - they should be named along the lines of 
linuxtrack*.log... However the part that matters is, that he can't 
create/access preferences.

As for the rest, I added the check for running with elevated privileges, 
because Linuxtrack is not meant to run like that. It may cause some 
inconvenience, but it forces user to solve underlying problems without 
jeopardizing the whole system...

It is interesting that TrackIR was found - the thing scans USB devices looking 
for the NaturalPoint's vendor id...

Let me know should you encounter any problems...

Kind regards,

Michal

Original comment by f.jo...@email.cz on 8 Apr 2015 at 8:32

GoogleCodeExporter commented 9 years ago
That is my $HOME, but I can't make new things inside my ~/.config folder 
without root access..
Permissions are drwxr-xr-x, with root as user, and staff as group.
What would you recommend? Changing the user to me, or adding write permissions 
for the group?

Original comment by Oscarsso...@gmail.com on 8 Apr 2015 at 8:54

GoogleCodeExporter commented 9 years ago
Hello,
my understanding is, that user should own stuff inside his own $HOME, so I'd 
chown the thing to your user...

Kind regards,

Michal

Original comment by f.jo...@email.cz on 8 Apr 2015 at 9:38

GoogleCodeExporter commented 9 years ago
Thanks for the help :) Everything's working now, and all the phantom IR devices 
are gone :)

Original comment by Oscarsso...@gmail.com on 8 Apr 2015 at 10:21

GoogleCodeExporter commented 9 years ago
Thank you for letting me know and I'm glad it is finally working for you...

I'm going to close this issue then, feel free to file another one in case you 
encounter any problems.

Kind regards,

Michal 

Original comment by f.jo...@email.cz on 8 Apr 2015 at 10:49