SelfControlApp / selfcontrol

:skull: Mac app to block your own access to distracting websites etc for a predetermined period of time. It can not be undone by the app or by a restart – you must wait for the timer to run out.
http://selfcontrolapp.com
GNU General Public License v3.0
4.05k stars 401 forks source link

Freezes #66

Closed alanhogan closed 11 years ago

alanhogan commented 11 years ago

After beginning a block, SelfControl becomes unresponsive, 100% of the time.

OS X Lion (fully up to date, w.r.t. OS as well as the app).

Has been the case for months.

FrankDMartinez commented 11 years ago

I am having a similar problem on 10.8. Though the timer completed and I am able to access the web again, when I close the black box and re-open the app, the black box re-appears. Being able to use the application effectively more than once seems to be prohibit.

cstigler commented 11 years ago

Hm, interesting. I do not have this problem with my OS X Lion, but I have heard similar reports. Can you email me at charlie.stigler@gmail.com (and reference this thread) so I can have you send over some log files?

rilian commented 11 years ago

1.4.3 is freezing once Start clicked, on OSX 10.8 :(

process is not eating CPU. Time is not changing in Dock and "application is not responding"

no log here /Users/xxxx/Library/Logs/DiagnosticReports

PS: i have killed process, then reopened, and timer IS working as usually (5 minutes already passed)

cstigler commented 11 years ago

Hm, not sure what the deal is with that, although the fact that the block does start is helpful, at least. It's tough to debug without any crash-log and being unable to reproduce it on my own system. I probably won't work on that until I upgrade to 10.8 and can reproduce -- but if you are a dev and can investigate, that would be great!

SteveBell commented 11 years ago

FYI: 1.4.4 works for me on 10.8.2. For a test I set the counter to 3 Minutes. Click Start. For 40 Seconds: Nothing. Then the counter starts at 00:02:20. So guess that's ok.

In the Console I find some messages that look like errors:

13.12.12 12:30:30,818 coreservicesd[67]: Application App:"SelfControl" [ 0x0/0x6b06b] @ 0x0x7f9144e426a0 tried to be brought forward, but isn't in fPermittedFrontASNs ( ( ASN:0x0-0x6d06d:) ), so denying.

13.12.12 12:30:30,818 WindowServer[82]: [cps/setfront] Failed setting the front application to SelfControl, psn 0x0-0x6b06b, securitySessionID=0x186a4, err=-13066

13.12.12 12:30:30,857 authexec[514]: executing /Applications/SelfControl.app/Contents/MacOS/org.eyebeam.SelfControl

Maybe this is helpful?

rilian commented 11 years ago

1.4.4 is the same on OSX 10.8 :( i hit start, window asks me Admin password, i enter. then Main SelfControl window hangs for 10 sec, then in Dock icon shows the timer. Then program is "application not responding". After restart timer continues working fine

unclethomas commented 11 years ago

When it freezes between the scale screen and the timer (you can sort of see both like in the picture attached), force quit SelfControl - it'll still be blocking your access to your blacklist - and turn it back on and the timer will show the time remaining. The window froze but not the time, no worries! Screen Shot 2012-12-13 at 9 45 28 AM

cstigler commented 11 years ago

Could you all please try deleting your current copy of SelfControl, installing the version found at http://charliestigler.com/public_dl/SelfControl_1.4.4-fix2.zip, and telling me 1) whether you still have problems with these freezes and 2) what OS you are running. Thanks.

SteveBell commented 11 years ago

Charlie, thanks for trying to fix this problem. With 1.4.4-fix2 I get immediate crashes on startup. I can't open the program at all on 10.8.2.

Here's the crash log: http://pastebin.com/JcJF9zkq (available for 1 months).

BenHamm commented 11 years ago

Hi there. Thanks for making this software! I am having the same problem mentioned above. Here's what I got from console:

Upon Launch:

1/4/13 2:26:50.121 PM SelfControl[18274]: *\ WARNING: Method selectRow:byExtendingSelection: in class NSTableView is deprecated. It will be removed in a future release and should no longer be used.

Upon starting timer:

1/4/13 2:28:58.206 PM coreservicesd[34]: Application App:"SelfControl" [ 0x0/0xf01f01] @ 0x0x7feb00660f70 tried to be brought forward, but isn't in fPermittedFrontASNs ( ( ASN:0x0-0xf0cf0c:) ), so denying.

1/4/13 2:28:58.206 PM WindowServer[94]: [cps/setfront] Failed setting the front application to SelfControl, psn 0x0-0xf01f01, securitySessionID=0x186a5, err=-13066

1/4/13 2:28:58.212 PM authexec[18299]: executing /Applications/SelfControl.app/Contents/MacOS/org.eyebeam.SelfControl

cstigler commented 11 years ago

Hey everybody, thanks for the reports. I am now on 10.8.2 also but still can't replicate this bug -- my copy just works. Given that, it's pretty tough for me to debug (I'm essentially just guessing what the problem is from reports and firing shots in the dark).

One of my friends who has this issue has gotten it working with this updated version of the application (link below). Could you please install it (just delete the old version from your Applications folder, and drag this one in instead) and tell me how it works? Thanks.

http://downloads.selfcontrolapp.com/SelfControl-1.4.4-cfix2.zip

cstigler commented 11 years ago

Also: if this version does not work for you (if it still freezes), could you please run a little test for me to help me pinpoint the issue. Open Terminal (Applications --> Utilities) and run this command:

sudo spctl --master-disable

restart, and let me know if SelfControl works now. This disables the Gatekeeper security on your computer, so afterwards turn it back on with:

sudo spctl --master-enable

rilian commented 11 years ago

@cstigler this version ( SelfControl-1.4.4-cfix2.zip ) did not freeze on first start up. great success! :+1:

ps: macos 10.8.2 ps2: i just replaced new version over old version of SelfControl ......

SteveBell commented 11 years ago

I get instant crashes when opening this version on 10.8.2.

Pastebin (valid for 1 month): http://pastebin.com/Ku3fuaic

Also Charlie, maybe you might want to consider doing a teamviewer session with someone experiencing this bug to trace it down.

Good luck fixing this and thanks for your work with SelfControl :)

rilian commented 11 years ago

@SteveBell apparently your system is not Tiger :)

*** Terminating app due to uncaught exception 'NSUnknownKeyException', 
reason: '[<AppController 0x100225d10> valueForUndefinedKey:]: 
this class is not key value coding-compliant for the key isTiger.'
cstigler commented 11 years ago

@SteveBell ah, I see your problem now. Luckily it's unrelated to the issues everyone else has been having, yours is just an issue with a bit of bad localization (I assume you run in an non-English language). I just patched that in the newest version.

Seems from the feedback that the newest version has been working pretty well. I put together a new release candidate version with a bunch of new fixes -- including parallelizing everything, which should speed up the start time for blocks by a pretty huge margin.

Steve, could you and @rillian (and anybody else reading this) please give this one a try, let me know if anything's broken for you, and if it doesn't seem to break too often I'll package it up and release it tomorrow/Friday.

New version: http://downloads.selfcontrolapp.com/SelfControl-1.4.5-rc.zip

rilian commented 11 years ago

i have tried SelfControl-1.4.5-rc.zip and it is not freezing, but my previous block period is not yet over. I will try when it finish and if it will freeze, write here

SteveBell commented 11 years ago

cstigler: This version loads fine. And second good news: when starting a countdown, it starts just fine. No more hangs in that regard. So maybe this version is a charm?

BenHamm commented 11 years ago

This kills the bug.

On Wed, Feb 6, 2013 at 8:31 AM, Steve Bell notifications@github.com wrote:

cstigler: This version loads fine. And second good news: when starting a countdown, it starts just fine. No more hangs in that regard. So maybe this version is a charm?

— Reply to this email directly or view it on GitHubhttps://github.com/slambert/selfcontrol/issues/66#issuecomment-13181830.

Ben Hamm MBA/MS 2015 University of Michigan 908.421.0042

cstigler commented 11 years ago

Thanks for all the help, just pushed a new release. Use SelfControl --> Check for updates to get it now. Closing!

citrikwave commented 9 years ago

Hi there,

I'm having crashes too even though I'm trying to delete / reinstall the app. But I couldn't download the last fix in this thread, any clue ?

cstigler commented 9 years ago

@citrikwave this thread is almost 2 year old, use the latest version available on the website (2.0.2). go to http://selfcontrolapp.com

citrikwave commented 9 years ago

@cstigler thank you, I didn't even notice...but still, the 2.0.2 version keeps on crashing, I can't even see the app at all. It used to work before !