# Mac OS X gui wallet with embedded zcashd BETA

**URL:** <https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548>\
**Category:** Zcash Apps\
**Created:** [December 8, 2016, 2:32am UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548 "2016-12-08T02:32:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [December 8, 2016, 2:32am UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/1 "2016-12-08T02:32:05Z")

</div>

After a lot of hard work by @zab and myself in adapting the Swing Gui wallet by @vaklinov for Mac OS, we’ve finally got a beta of a nice, shiny Mac dmg installer with an all-in-one app for testing!

It has the jvm, zcashd, everything needed to run the wallet with a local full node of zcash baked into it. If you’ve already got the proving key’s downloaded for use with my Mac port (source or binary release), it’ll use them without re-downloading. If its a fresh, untouched Mac that’s never had Zcash on it, it uses a nice GUI downloader that @zab built into the App, and pulls the proving key down via Amazon CloudFront, much faster than is typical with fetch-params.sh aka zcash-fetch-params

Please test it out, and let us know here of any issues!

Download is at: [https://zcash.dl.mercerweiss.com/ZCashSwingWalletUI-1.0.3.dmg](https://zcash.dl.mercerweiss.com/ZCashSwingWalletUI-1.0.3.dmg)

Once we get some feedback and polish off a few little bits (LICENSE file, dmg file icon, etc) we’ll be releasing a dmg signed with an Apple Developer Certificate that will install without having to have “Allow apps downloaded from: anywhere” selected in “System Preferences → Security & Privacy”

Thanks in advance, the both of us now need to go get some sleep after pulling all nighters on this one!

-David Mercer  
Tucson, AZ

---

<div class="post-metadata">

**Author:** ![fibonacci](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fibonacci](https://forum.zcashcommunity.com/u/fibonacci)\
**Post date:** [December 8, 2016, 2:50pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/2 "2016-12-08T14:50:26Z")

</div>

This is awesome! Thank you.

---

<div class="post-metadata">

**Author:** ![Quent17](https://avatars.discourse-cdn.com/v4/letter/q/47e85d/32.png) [@Quent17](https://forum.zcashcommunity.com/u/Quent17)\
**Post date:** [December 8, 2016, 7:14pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/3 "2016-12-08T19:14:27Z")

</div>

Awesome, installing it right now!

---

<div class="post-metadata">

**Author:** ![Quent17](https://avatars.discourse-cdn.com/v4/letter/q/47e85d/32.png) [@Quent17](https://forum.zcashcommunity.com/u/Quent17)\
**Post date:** [December 8, 2016, 7:19pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/4 "2016-12-08T19:19:57Z")

</div>

Can I manually change the wallet.dat with another one after the blockchain is downloaded ?

EDIT : I just did. No need to do anything except to quit the App, copy the wallet.dat in App Support, shutdown the daemon and relaunch the app.

---

<div class="post-metadata">

**Author:** ![zab](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@zab](https://forum.zcashcommunity.com/u/zab)\
**Post date:** [December 8, 2016, 9:53pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/5 "2016-12-08T21:53:42Z")

</div>

> [@Quent17](#):
>
> No need to do anything except to quit the App, copy the wallet.dat in App Support, shutdown the daemon and relaunch the app.

The daemon should shut down automatically when you exit the wallet. If that’s not the case, then there is a bug.

Only exception to that is if the daemon was already running when you started the wallet; then it will continue running.

---

<div class="post-metadata">

**Author:** ![Quent17](https://avatars.discourse-cdn.com/v4/letter/q/47e85d/32.png) [@Quent17](https://forum.zcashcommunity.com/u/Quent17)\
**Post date:** [December 8, 2016, 10:09pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/6 "2016-12-08T22:09:42Z")

</div>

I just tried and currently the daemon does not exist automatically.  
Mac OS 10.12.1

---

<div class="post-metadata">

**Author:** ![zab](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@zab](https://forum.zcashcommunity.com/u/zab)\
**Post date:** [December 8, 2016, 10:16pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/7 "2016-12-08T22:16:12Z")

</div>

Ok. In the next beta I’ll redirect logging to a file so we can understand what the problem is. FWIW I can’t reproduce this on my 10.12.1

Did you do a fresh install or did you have previous deployment (like from @anon47418038 's previous binary/source releases) ?

Edit: please open an issue on github [GitHub - zlatinb/zcash-swing-wallet-ui: ZCash Desktop GUI Wallet](https://github.com/zlatinb/zcash-swing-wallet-ui)

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [December 8, 2016, 11:27pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/8 "2016-12-08T23:27:55Z")

</div>

It doesn’t look like it shuts down zcashd on exit on my system either, running 10.11 (El Cap)…and here’s a weird thing, when I launched it just now, it started zcashd that was in /usr/local/bin, not the embedded one! (I actually turned my laptop OFF last night, so this was my first run on a cold boot).

---

<div class="post-metadata">

**Author:** ![zab](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@zab](https://forum.zcashcommunity.com/u/zab)\
**Post date:** [December 8, 2016, 11:30pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/9 "2016-12-08T23:30:57Z")

</div>

> [@anon47418038](#):
>
> it started zcashd that was in /usr/local/bin, not the embedded one

That’s a known issue, it goes through a hardcoded list of locations before checking the environment variable that points to the embedded zcashd. I’ll fix it asap on master.

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [December 8, 2016, 11:31pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/10 "2016-12-08T23:31:36Z")

</div>

great! ugh, 20 characters 🙂

---

<div class="post-metadata">

**Author:** ![Quent17](https://avatars.discourse-cdn.com/v4/letter/q/47e85d/32.png) [@Quent17](https://forum.zcashcommunity.com/u/Quent17)\
**Post date:** [December 9, 2016, 2:45am UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/11 "2016-12-09T02:45:33Z")

</div>

Fresh install. I cannot open an issue on github since it’s a fork?

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [December 9, 2016, 6:08am UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/12 "2016-12-09T06:08:15Z")

</div>

@Quent17 The latest version has the logging that @zab mentioned enabled (same download URL), but still has the bug where it doesn’t stop zcashd when you exit the App. We’re rethinking our options for how to handle this. Also, I enabled issue tracking in my forks repo at:

> **[GitHub - radix42/zcash4mac: ZCash Desktop GUI Wallet](https://github.com/radix42/zcash4mac)**
>
> ZCash Desktop GUI Wallet. Contribute to radix42/zcash4mac development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![anon47418038](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anon47418038](https://forum.zcashcommunity.com/u/anon47418038)\
**Post date:** [December 9, 2016, 7:11am UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/13 "2016-12-09T07:11:46Z")

</div>

New beta released, contains logging and start/stop fixes, same download url as above:

[https://zcash.dl.mercerweiss.com/ZCashSwingWalletUI-1.0.3.dmg](https://zcash.dl.mercerweiss.com/ZCashSwingWalletUI-1.0.3.dmg)

---

<div class="post-metadata">

**Author:** ![fibonacci](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fibonacci](https://forum.zcashcommunity.com/u/fibonacci)\
**Post date:** [December 9, 2016, 1:05pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/14 "2016-12-09T13:05:49Z")

</div>

The blockchain sync percentage will get to 99.95% and get stuck there? Over the past 10 min it’s dropped to 99.91%. I’ve seen it sync to 100% using the wallet. Sometimes it will drop back down to 99.95% and then back to 100%.

In the 1st version, I was able to send cli commands in my previously installed zcash folder. When I send cli commands now there is no response. No error but no response.

---

<div class="post-metadata">

**Author:** ![fibonacci](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fibonacci](https://forum.zcashcommunity.com/u/fibonacci)\
**Post date:** [December 9, 2016, 1:09pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/15 "2016-12-09T13:09:40Z")

</div>

Tried to quit the app but it wasn’t responding. Force Quit and restarted. Blockchain up to 100% now. I have seen it drop out of 100% while running. CLI is working now. 🙂

---

<div class="post-metadata">

**Author:** ![zab](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@zab](https://forum.zcashcommunity.com/u/zab)\
**Post date:** [December 9, 2016, 1:20pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/16 "2016-12-09T13:20:27Z")

</div>

> [@fibonacci](#):
>
> Tried to quit the app but it wasn’t responding. Force Quit and restarted. Blockchain up to 100% now. I have seen it drop out of 100% while running. CLI is working now

If it gets to a state where you need to force-quit it, can you attach or paste the contents of ~/Library/Application Support/ZCashSwingWalletUI/ZCashSwingWalletUI.log ?

Regarding the blockchain sync issue, maybe @vaklinov can help?

Regarding the CLI not working, this is a zcash issue, but it would explain why the wallet wouldn’t exit because the last thing it does is issue a “zcash-cli stop” command.

---

<div class="post-metadata">

**Author:** ![fibonacci](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fibonacci](https://forum.zcashcommunity.com/u/fibonacci)\
**Post date:** [December 9, 2016, 1:51pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/17 "2016-12-09T13:51:16Z")

</div>

Stalled on me again.

In the debug log I see this:  
2016-12-09 13:32:59 UpdateTip: new best=00000000141a791a72bcb7caf6bcaf5c425723c3e3053a4082ced544afc45b7c height=24567 log2\_work=46.363737 tx=155217 date=2016-12-09 13:33:07 progress=1.000003 cache=2.5MiB(128tx)

Does that mean I mined a coin? 🙂  
I’m not holding my breath on that one.

Here’s the wallet log. Replaced my username in the log with   
Fri Dec 09 06:30:24 MST 2016 com.vaklinov.zcashui.ZCashUI main INFO: Starting ZCash Swing Wallet …  
Fri Dec 09 06:30:24 MST 2016 com.vaklinov.zcashui.ZCashUI main INFO: OS: Mac OS X = MAC\_OS  
Fri Dec 09 06:30:24 MST 2016 com.vaklinov.zcashui.ZCashUI main INFO: Current directory: /Users/  
Fri Dec 09 06:30:24 MST 2016 com.vaklinov.zcashui.ZCashUI main INFO: Class path: /Applications/ZCashSwingWalletUI.app/Contents/Java/Classes:/Applications/ZCashSwingWalletUI.app/Contents/Java/commons-logging-1.2.jar:/Applications/ZCashSwingWalletUI.app/Contents/Java/httpclient-4.5.2.jar:/Applications/ZCashSwingWalletUI.app/Contents/Java/httpcore-4.4.4.jar:/Applications/ZCashSwingWalletUI.app/Contents/Java/ZCashSwingWalletUI.jar  
Fri Dec 09 06:30:24 MST 2016 com.vaklinov.zcashui.ZCashUI main INFO: Environment PATH: /usr/bin:/bin:/usr/sbin:/sbin  
Fri Dec 09 06:30:34 MST 2016 com.vaklinov.zcashui.ProvingKeyFetcher fetchIfMissing INFO: no need to fetch proving key file  
Fri Dec 09 06:30:34 MST 2016 com.vaklinov.zcashui.StartupProgressDialog performOSXBundleLaunch INFO: performing OSX Bundle-specific launch  
Fri Dec 09 06:30:34 MST 2016 com.vaklinov.zcashui.StartupProgressDialog waitForStartup INFO: checking if zcashd is already running…  
Fri Dec 09 06:30:34 MST 2016 com.vaklinov.zcashui.ZCashClientCaller getInfo WARNING: getInfo failed  
com.eclipsesource.json.ParseException: Expected value at 1:1  
at com.eclipsesource.json.JsonParser.error(JsonParser.java:490)  
at com.eclipsesource.json.JsonParser.expected(JsonParser.java:486)  
at com.eclipsesource.json.JsonParser.readValue(JsonParser.java:193)  
at com.eclipsesource.json.JsonParser.parse(JsonParser.java:152)  
at com.eclipsesource.json.JsonParser.parse(JsonParser.java:91)  
at com.eclipsesource.json.Json.parse(Json.java:295)  
at com.vaklinov.zcashui.ZCashClientCaller.getInfo(ZCashClientCaller.java:147)  
at com.vaklinov.zcashui.StartupProgressDialog.waitForStartup(StartupProgressDialog.java:76)  
at com.vaklinov.zcashui.ZCashUI.main(ZCashUI.java:345)

Fri Dec 09 06:30:34 MST 2016 com.vaklinov.zcashui.StartupProgressDialog waitForStartup INFO: trying to start zcashd  
Fri Dec 09 06:30:56 MST 2016 com.vaklinov.zcashui.StartupProgressDialog waitForStartup INFO: zcashd started  
Fri Dec 09 06:30:56 MST 2016 com.vaklinov.zcashui.ZCashInstallationObserver INFO: Using ZCash utilities: zcashd: /Applications/ZCashSwingWalletUI.app/Contents/MacOS/zcashd, zcash-cli: /Applications/ZCashSwingWalletUI.app/Contents/MacOS/zcash-cli

---

<div class="post-metadata">

**Author:** ![zab](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@zab](https://forum.zcashcommunity.com/u/zab)\
**Post date:** [December 9, 2016, 2:00pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/18 "2016-12-09T14:00:39Z")

</div>

Nothing obviously wrong from the log (the ParseException is to be expected).

Question: _while_ the wallet is frozen, does zcash-cli work?

---

<div class="post-metadata">

**Author:** ![fibonacci](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@fibonacci](https://forum.zcashcommunity.com/u/fibonacci)\
**Post date:** [December 9, 2016, 2:03pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/19 "2016-12-09T14:03:23Z")

</div>

The wallet is working while the zcash-cli is frozen.  
When I try to quit the wallet, the wallet will become unresponsive.  
Then I force quit.

The previous version of the wallet didn’t ‘seem’ to have this issue. Hard to say because I didn’t run it very long before the latest version.

Right now I’m testing running the zcashd 1st, then opening the wallet.

---

<div class="post-metadata">

**Author:** ![zab](https://avatars.discourse-cdn.com/v4/letter/z/9fc29f/32.png) [@zab](https://forum.zcashcommunity.com/u/zab)\
**Post date:** [December 9, 2016, 2:14pm UTC](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548/20 "2016-12-09T14:14:10Z")

</div>

> [@fibonacci](#):
>
> The previous version of the wallet didn’t ‘seem’ to have this issue.

That’s because there was a bug in the wallet - it was calling “zcash-cli --stop” whereas it should be calling “zcash-cli stop” (no --)

Thank you for testing, it’s very helpful! I’m no expert on Mac apps but should zcash-cli freeze again, try to get a sample of the zcashd and zcash-cli process from the “Activity Monitor” app.

[Next page](https://forum.zcashcommunity.com/t/mac-os-x-gui-wallet-with-embedded-zcashd-beta/12548.md?page=2)
