Mac iSight Light Activates When Not Missing #30

Closed
TheAwer opened this Issue Jan 29, 2014 · 26 comments

Projects

None yet

3 participants

@TheAwer

I have installed the new Prey version (this is posted in the right place, right?) on my 13-inch, Mid 2009 MacBook Pro running OS X Lion 10.7.5. I have tested it by marking it as missing on the Control Panel and verifying that reports work (with photos enabled and showing in the reports). The iSight camera lights turns on when taking the photo, as I expect.

But after I have unmarked my computer as missing, the green iSight light still comes on at regular intervals. I have not timed it, but it is probably the 5 minute interval that I set reports to be sent at. I see no reason why this should be happening, and this was not occurring before I installed the new Prey client on this computer. I suspect that this is a bug.

By googling I have found references to this issue in other places. From what I understand from the threads, Prey initially receives a 404 error but by the time it sends the report (after taking a photo) it has received a 200 error.

Look here (they are all at least a year old and on Macs):
http://answers.preyproject.com/topics/marked-not-missing-but-webcam-still-taking-pictures
http://answers.preyproject.com/topics/prey-isight-issues
http://answers.preyproject.com/topics/webcam-on-all-the-time

I haven't rebooted this computer yet since installing, but this shouldn't be happening anyway (right?). I will update this after I reboot it.

This is also my first post on Github! I have no idea if I have done this the proper way, but I hope I have.
TheAwer

@tomas
Prey member

Hi @TheAwer and thanks for the bug report!

Can you send over the output of your Prey log file? You can get it by opening a terminal and running:

$ cat /var/log/prey.log
@TheAwer

Here's the log, @tomas. It's extremely long, and I have no idea how to put it in a quote, code box, or something else to shorten it. If someone will tell me, I will gladly edit it to shorten the page.

It was actually so long that i exceeded the 65535 character limit and I had to put it on Pastebin (edit: I moved it to Gist)
https://gist.github.com/TheAwer/df7018a558b825779ef3

@TheAwer

I also have a couple (unrelated) recommendations for the iOS version and the Control Panel. What should I do with those?

@tomas
Prey member

Oh my, this looks like the report is not getting canceled when it should! Will take a look at it ASAP.

Thanks again for reporting!

@tomas
Prey member

As for the recommendations, please send them over!

@tomas
Prey member

@TheAwer Would you mind running a single command on the terminal and sharing the output? It'd really help to find out the cause of the problem.

$ ps aux | grep prey

It's just to verify that only a single instance of the process is running.

@tomas
Prey member

After diving deep into the matrix, I think I know what may have happened. Did you by any chance flag your device missing twice? (One requesting reports every 2 minutes and another requesting reports every 5 minutes)?

@TheAwer

Here's the Gist for the command.
https://gist.github.com/TheAwer/15e37e068bb96d5f984e
And the short answer to your question is not to requesting reports 2 and 5 minutes. I don't have a Pro account, so I can't request reports every 2 minutes. I'll expand on what I did later.

@KAIECHI
@TheAwer

@tomas after installing the current old version (from the download on the website), and signing into the Control Panel, I received the notification about the new Prey version. I immediately downloaded and installed the new version (this one). Then I went to the Control Panel and marked my computer as missing to test prey, with reports coming every 5 minutes.

I confirmed that it was working, including taking pictures. Then I unmarked it as missing.
After that, I noticed that the camera light was turning on for about one second every few minutes (probably 5 minutes, but I didn't time it).

I went to the Control Panel, and verified that it was not marked as missing and that no reports were coming in. I also turned off the webcam module.

I saw that the light was continuing to turn on. I went to the Control Panel and set it to missing, changed the interval to 50 minutes, and saved. I then immediately set it to not missing. I did this to try to reduce how often the light flashes.

But right after that I changed my mind and decided to set it back to 5 minutes so I could keep track of this issue and try to resolve it. This was accomplished by marking it as missing, setting the interval back to 5 minutes, saving, and then turning it back to not missing.

I have no idea if those two things I tried worked, because they were marked as missing for such a short time.

So that's the story of what I've done recently. There was also an old (0.3.something I think) version on the computer that I uninstalled before I installed the new version. I did the check mode and it said that Prey was not working.

Does that help? This is what happened to the best of my memory, and I only did this two days ago.

@KAIECHI, what the heck? This computer is not stolen. And if I did indeed steal it (which I didn't), I would have uninstalled Prey and not mentioned anything about it. There is no reason a thief would leave Prey on the computer if the thief knew how to uninstall it, or even mention that to anybody. Use your head!

@KAIECHI
@TheAwer

@KAIECHI I bought it a few days ago in the black market beneath the FBI building in Antarctica. I had to wear a black trenchcoat and mask, and I passed the money to the Barack Obama beneath the table. I returned to my home on Mars through a teleportation device. When I found that the tracking software that was installed was failing to help the original owner track me, I headed right over to Github via my faster-than-light internet and started trying to resolve this issue so that original owner can find me and get me arrested.

I will be glad to give your computer back, just head on over to the tuesunidiota crater here on Mars and I will personally hand it over to you. I will also give you a account to Rosetta Stone because it seems that you need it to learn English.

In case you cannot come visit me on Mars to get the Rosetta Stone account, this website will be useful for you. www.duolingo.com It will help you learn proper English that others will be able to understand.

@KAIECHI
@KAIECHI
@KAIECHI
@TheAwer

@KAIECHI can you please stop spamming this now?

And it's annoying when there's a bunch of extra stuff in your comment.

@tomas
Prey member

Yes @KAIECHI you're not really helping out.

@TheAwer I think the issue is now solved -- we'll be pushing an update tomorrow morning (PST) so this behaviour should no longer happen.

@tomas
Prey member

Ok @KAIECHI I will remove any further non constructive comments.

@KAIECHI
@TheAwer

@tomas is 1.0.7 the new version? My Mac is still on that version according to the old Control Panel, even though I've set updating to on under configuration (I don't have a Pro account, but that should still work, right?).

And it's still blinking.

@tomas
Prey member

Hi @TheAwer, sorry for not getting back to you. 1.0.8 is the latest version (pushed two days ago), but you need to restart your laptop for the client to get updated. Please let me know if that fixes the problem or not.

@TheAwer

@tomas, I have restarted my computer twice, and the Control Panel still says it is on 1.0.7. However, the green light has stopped turning on.

@KAIECHI
@tomas
Prey member

Glad to know the green light stopped flashing, but the client should have updated to 1.0.8. I'll contact you directly during the week in order to take a deeper look into this and get it fixed.

@KAIECHI
@tomas
Prey member

Hey guys,

I'm closing this issue since this bug has long been closed. Feel free to reopen any issues if you encounter any other problems. Thanks again!

@tomas tomas closed this Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment