2ndalpha / gasmask

Hosts file manager for OS X
3.73k stars 252 forks source link

Crash on 0.8.4 Sierra when activating new local file #113

Closed ghost closed 7 years ago

ghost commented 8 years ago

As it says in the title: when I click activate on newly created local file, Gasmask crashes.

MadMacMad commented 8 years ago

same here... also activating preferences crash...

thesadboy commented 8 years ago

same here...

rcrooks commented 8 years ago

and same here, everytime I try to switch hosts

ghost commented 7 years ago

Samsies, every time I try to switch hosts.

andoro commented 7 years ago

The same here, but it doesn't have to be local file, it crashes everytime when you change your hosts file. I don't really understand this, because last week it worked for me, I'm used Sierra that time too. I've attached the crash log, I hope it helps for the fix. gasmask_crash.txt

rcrooks commented 7 years ago

I think I may have found a solution: run this in Terminal:

sudo /bin/chmod +a 'user:YOUR_USERNAME:allow write' /private/etc/hosts

Worked for me at least -- Gasmask no longer crashing.

ghost commented 7 years ago

Thanks for the workaround. I'm not sufficiently competent with command line interface to know what that workaround does exactly. I just downgraded to 0.8.3 and skipped the 0.8.4 update I was offered. Works like a charm.

I am pleased you found a work around that doesn't involve downloading a fresh copy.

rcrooks commented 7 years ago

my change just gives you write permissions on the hosts directory. It's odd that 0.8.3 works but 0.8.4 doesn't, if that's the issue....

emenoh commented 7 years ago

running the permission fix works for me.

thesadboy commented 7 years ago

permission fix works fine for me, thanks a lot.

tomasantonj commented 7 years ago

Permission change worked for me too.

Edit: But resets daily. Reverted to 0.8.3.

emenoh commented 7 years ago

Permission change does not persist, have to rerun the command. Not sure about causes. Running VPN sometimes, running Parallels always... encrypted disk, so YMMV.

darknate commented 7 years ago

allowing write helped me to, thx!

alanmcginnis commented 7 years ago

Permission change worked for me too.

andrearufo commented 7 years ago

sudo /bin/chmod +a 'user:YOUR_USERNAME:allow write' /private/etc/hosts

It works for me!

thesadboy commented 7 years ago

Permission change can only work for short time... And then crash again.

ghost commented 7 years ago

The earlier release is still working perfectly for me - hasn't crashed once.

I said earlier it was 0.8.3, but I realise now it is actually 0.8.1. You can download it here:

https://github.com/2ndalpha/gasmask/releases

oliveratgithub commented 7 years ago

Same issue here - workaround by @rcrooks worked like a charm, thanks!

keoshi commented 7 years ago

You're a lifesaver, @rcrooks — thank you!

lifeibest commented 7 years ago

@rcrooks It's works. My os is 10.12, work well.

rcrooks commented 7 years ago

Glad the permissions fix seems to be working for everyone - I've been sharing it with colleagues here and they've found it to work also. I got the idea because when I started running Sierra betas, gasmask started prompting me for a system password sometimes when I switched hosts. It would be nice if this fix could be incorporated into the app, or at least a warning with instructions on what to do.

@thesadboy not sure why it isn't sticking for you. Are you by chance running some kind of process (maybe embedded in some system maintenance tool) that restores permissions to their original state?

thesadboy commented 7 years ago

@rcrooks I also feel strange,I use the 0.83 version right now, thanks a lot.

2ndalpha commented 7 years ago

Fixed in v0.8.5