ethereum / mist

[DEPRECATED] Mist. Browse and use Ðapps on the Ethereum network.
http://ethereum.org
GNU General Public License v3.0
7.44k stars 2.12k forks source link

Ethereum Wallet freezes after launching #1036

Closed derongdat closed 8 years ago

derongdat commented 8 years ago

Version: 0.8.1 OS & Version: osx 10.11.6 Node type: geth

I was running Ethereum Wallet 0.7.5 and updated to 0.8.1 some days ago. After the update, upon launching the app, it got unresponsive (unable to click on tabs, buttons). Since I was past block 1920000, I figured I needed to resync and followed the instructions at https://github.com/ethereum/mist/releases

However, this did not solve the issue for me. I followed the instructions here: https://github.com/ethereum/wiki/wiki/Mist-Troubleshooting-Guide

Lauching geth manually I see the blocks being in sync:


I0726 11:37:40.823548 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 27 txs in 22.486712ms. #1955126 [f6e23b77 / f6e23b77]
I0726 11:37:44.275576 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 3.468205ms. #1955127 [ec2945ba / ec2945ba]
I0726 11:37:49.845139 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 2.859262ms. #1955128 [2b93c82e / 2b93c82e]
I0726 11:37:53.239897 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 7 txs in 8.46479ms. #1955129 [0d9f0b03 / 0d9f0b03]
I0726 11:38:05.088869 eth/handler.go:295] Peer 6b2a1fbb95f0bbd3 [eth/63]: timed out DAO fork-check, dropping
I0726 11:38:18.617589 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 6.355902ms. #1955130 [193a4624 / 193a4624]
I0726 11:38:26.705696 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 26 txs in 18.136243ms. #1955131 [ffa99a4e / ffa99a4e]
I0726 11:38:27.248867 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 26 txs in 16.3546ms. #1955131 [fa0101d1 / fa0101d1]
I0726 11:39:34.265384 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 3.506989ms. #1955132 [c549a93b / c549a93b]
I0726 11:39:44.463873 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 8 txs in 16.905631ms. #1955133 [fa3adb2d / fa3adb2d]
I0726 11:39:47.898334 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 44 txs in 40.910149ms. #1955134 [53981d73 / 53981d73]
I0726 11:40:10.626953 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 2 txs in 6.497308ms. #1955135 [04a14d7b / 04a14d7b]
I0726 11:40:16.458581 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 14 txs in 13.985827ms. #1955136 [b726b765 / b726b765]
I0726 11:40:50.540822 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 4.410114ms. #1955137 [9d086e21 / 9d086e21]
I0726 11:40:51.544225 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 14 txs in 12.861993ms. #1955138 [71894274 / 71894274]
I0726 11:41:24.429392 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 6.73248ms. #1955139 [c7384efe / c7384efe]
I0726 11:41:43.726376 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 36 txs in 27.147372ms. #1955140 [1c586440 / 1c586440]
I0726 11:41:46.795295 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 0 txs in 4.507485ms. #1955141 [764effd0 / 764effd0]
I0726 11:41:58.646526 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 7 txs in 7.939107ms. #1955142 [014993ba / 014993ba]
I0726 11:42:01.902061 core/blockchain.go:963] imported 1 block(s) (0 queued 0 ignored) including 4 txs in 5.690385ms. #1955143 [549d7331 / 549d7331]
I0726 11:42:08.966857 eth/handler.go:295] Peer 22eece380d7b4c75 [eth/63]: timed out DAO fork-check, dropping

I tried to check the WalletUI via Open the console via the top menu -> develop -> Toggle developer tools -> Wallet UI But I am not sure this debugging tool is working for me, since I do not get any output from the console (ex. web3.eth.blockNumber does not produce any error or output). ethereum_wallet

Any hint is highly appreciated! thanks

Diztinct commented 8 years ago

I'm getting same issue with the Wallet UI.

Freezes after first launching and initial syncing has completed or runs for around 10 minutes and screen just goes white and app has to be relaunched.

When launching Mist this just keeps crashing once initial syncing has completed.

I'm running the hard fork version to confirm and these are the first issues encountered with any of the UI releases for the past 4 months.

derongdat commented 8 years ago

Just to add, exact same behavior with the white screen after some 10 minutes. I have to force quit the app, but as soon as I relaunch I am back to square one.

Quixil commented 8 years ago

Hi Guys,

same issues with my Wallet. I went back and downloaded the older version as per someone's advice. No results whatsoever. I see the exact balance at the beginning, but I can't access any of the options. It turns white after syncing finishes. Task manager needs to be use to close down the entire thing.

I hope somebody can help us.

neerven commented 8 years ago

Yep same for me.

Version: 0.8.1 OS & Version: osx 10.11.6 Node type: geth

luclu commented 8 years ago

Could you kindly start Ethereum-Wallet via the terminal? On windows this can be achieved the following way:

  1. copy the Ethereum-Wallet-...-0.8.1 folder to C:\ (makes step 3 easier)
  2. type Win+r to open the run prompt and start cmd
  3. type cd c:\Ethereum-Wall… to change into the wallet's folder
  4. type .\Ethereum-Wallet.exe to start the wallet
Diztinct commented 8 years ago

Hi As requested started "Ethereum-Wallet" via terminal.

The application took longer to sync node and started at 2 peers reaching 12 peers after 8 minutes.

On completion of sync the GUI opens with 0 peers and "Waiting for Blocks" and no UI controls can be accessed and it stays like this.

My problems started when approving and refunding DAO via "https://slacknation.github.io/medium/12/12.html" loaded within Mist. As soon as my coins landed within the wallet the freeze set in. Hope this info helps.

Thanks

Quixil commented 8 years ago

Thanks luclu!

I followed your advice. It looked that it might work at the beginning as I could access ceratin options within my wallet. It then got stuck at 99% of the sync and finally turned white again.

I am attaching a screen shot of the entire activity;

wallet

Please help.

jnicolau commented 8 years ago

Same problem here, totally frozen. Can't do anything. I'm running on Mac OS. Launching from terminal doesn't help or improve anything for me.

luclu commented 8 years ago

Could you please try to remove the mist.lokidb file. This might be the same issue as https://github.com/ethereum/mist/issues/1002#issuecomment-234385118.

Quixil commented 8 years ago

Hi luclu,

I've removed this file and tried again. Got stuck at 99% for about 10 minutes and then turned white again... capture

derongdat commented 8 years ago

@luclu I deleted the mist.lokidb file, launched Ethereum-Wallet, but the issue persists :-(

luclu commented 8 years ago

@Quixil @derongdat thank you for trying this out.

Pinging @hiddentao

hiddentao commented 8 years ago

Ok, will try this myself.

jnicolau commented 8 years ago

Is there any alternative to manage my DAOs? I can't access my wallet. I'm getting worried that I have no Idea what's going on in my wallet... :(

luclu commented 8 years ago

@jnicolau try out https://myethereumwallet.com - it's a great piece of software. (runs client side and is hosted on github)

jnicolau commented 8 years ago

https://myethereumwallet.com says that I have no DAOs in my account. Is this accurate? Isn't it the case that DAOs have been returned to the investors after the hard fork?

derongdat commented 8 years ago

@jnicolau: did the site https://myethereumwallet.com work for you? For me it just times out at some point...so I thougth luclu meant myetherwallet.com (https://github.com/myetherwallet/myetherwallet.github.io). It says it is completely client side javascript, but I am a bit reluctant to upload my private key... @luclu: can you confirm the site being at https://myethereumwallet.com? Could you paste the github link (I could not find a project "myethereumwallet" either, just the one called "myetherwallet" mentioned above).

jnicolau commented 8 years ago

yes I've used myetherwallet.com, I thought he had mispelled it. I'm completely confused with this nonsense of not being able to see whats going on in my wallet. Never have issues with the wallet client before until the latest version.

jnicolau commented 8 years ago

I was able to open the wallet form the Mist browser. The problem is that after clicking in the Contracts tab I see no contracts or custom tokens there (there used to be DAO). Am I missing something?

luclu commented 8 years ago

Sorry, the link is https://www.myetherwallet.com not https://myetherwallet.com.

Quixil commented 8 years ago

Hiddentao, sorry for being impatient, but did you make any progress? It is otherwise strange that among tens of thousands of users there are only 4 of us experiencing the same kind issue. If we'll be forced to use myetherwallet, how do you get to see and additional wallet if you have created them. I've been able to see only my main account.

Thanks again for your help!

hiddentao commented 8 years ago

Guys, we need more debugging information to try and pinpoint the problem. Could you run it from the command-line and turn on trace logging please:

Ethereum-Wallet.exe --loglevel trace

Please upload the file somewhere and post a link here so that we can check it out.

Thanks.

derongdat commented 8 years ago

@hiddentao: Here you go Part 1: http://pastebin.com/VRMJ9ymG Part 2: http://pastebin.com/zRbA8Kyf

Thanks so much for your support

hiddentao commented 8 years ago

@derongdat So you waited until it blank-screened and then exited? What was the last thing you did before it blank-screened?

derongdat commented 8 years ago

Exactly, I launched the app, waited for it to sync (so the main window comes up). Then I tried to click buttons for a minute or so (which has no effect). After that I hit ctrl-c.

hiddentao commented 8 years ago

So it didn't blank screen. You could see the UI but you couldn't click buttons. Is that right?

derongdat commented 8 years ago

Correct. I could see the UI but button clicks do not work (see screenshot first post). Only after about 10 minutes the window will finally turn white (like in Quixil's screenshot).

belgacoin commented 8 years ago

Hope to see this issue cleared out soon, I have the same problem and it's really annoying. I have a second install via another user on the same machine (for ETC) and this seems to work ok.

hiddentao commented 8 years ago

This sounds like it could be the contract freeze problem again. @alexvandesande your thoughts?

belgacoin commented 8 years ago

@hiddentao possibly, the version that freezes has TheDAO and DGD contracts. The ETC version has no contracts and seems to work fine.

Quixil commented 8 years ago

Cheers guys,

did we give up on this? Can somebody please help me understand how to access additional wallet I've created in Ethereum Wallet via myetherwallet. Thanks in advance.

jnicolau commented 8 years ago

I have the problem mentioned in here with the Ethereum wallet but with the Mist browser I can see the wallet properly without freezing.

neerven commented 8 years ago

Same Wallet problem and MIST always crashes after syncing.... I moved temporarily to Windows (a tablet, but seems to work for now), and soon (back) to a linux compu dedicated to ETH. OSX does not seem to be the best platform in my experience of the last months...

@belgacoin I was able to remove the DAO contract, but unfortunately that did not solve the freezing problem when all blocks were synced.

hiddentao commented 8 years ago

@alexvandesande Didn't we fix the DAO wallet freezing issue a while ago?

hiddentao commented 8 years ago

Just had it freeze myself, and saw DAO token transfer notification on Mac. That definitely is still an issue then.

hiddentao commented 8 years ago

Short-term fix (please let me know if this works):

NOTE: This is destructive will remove all contracts, tokens, etc. But NOT your accounts.

Launch the Wallet and open up the Developer Tools and run in the Console:

Wallets.remove({});
CustomContracts.remove({});
PendingConfirmations.remove({});
Events.remove({});
Tokens.remove({});

Quit and restart the Wallet again and see if it still freezes.

Quixil commented 8 years ago

Thanks hiddentao! Just to be sure before I do this - I have created additional wallet contract and moved majority of my ETH there from my main account. Will this remain intact? If not what happens to those ETH? Thanks!

belgacoin commented 8 years ago

@hiddentao thank you. As temp solution: is it safe to copy my keystore and accounts folder to a fresh installed Mist wallet in Windows? Will I be able to see my DAO and DGD tokens too?

usukan commented 8 years ago

I have the same problem on all Win10 computers with DAO and DAORefund contracts watched. Freezes on opening. Resources being used by 1 of the 3 Electrons just keeps growing larger and larger.

I believe its caused by the contract watches. I cant get to the trashcan to delete.

I can open the console/wallet in the frozen wallet but CustomContracts.find().fetch() returns gibberish "value value" (so I cant get the contract ID's to run a delete).

Is there any other way to delete contract watches? Manually somehow - somewhere?

hiddentao commented 8 years ago

@belgacoin This code does not affect your actual stored folder data, only what's in the Mist browser storage. But you can and should backup your keystore data anyway. It should however clear your DAO and DGD token views (not the token records themselves, as those are stored in the respective contracts for those tokens on the blockchain), meaning you'll have to re-add those tokens.

hiddentao commented 8 years ago

@usukan There is no other easy way to delete contract watches - I think we need to add deletion capability to the Wallet UI.

belgacoin commented 8 years ago

@hiddentao hm, I prefer to wait for a wallet update then. I don't feel like going over those DAO/DGD contracts tutorials again. Thanks anyway for your assistance ;-)

luclu commented 8 years ago

To unwatch those contracts and token you could give version 0.6.2 a try. As far as I'm concerned that one won't freeze as it misses some relevant logic. Please give it a try and jump back on 0.8.1 afterwards. Ping me on the outcome!

belgacoin commented 8 years ago

@luclu will try that but what with the fork? Won't 0.6.2 follow the ethereum classic chain?? (sorry for this potential noob question ;-)

luclu commented 8 years ago

@belgacoin you are right you won't be able to sync any further with 0.6.2 but you should be able to delete the contracts.

neerven commented 8 years ago

I deleted all application data, removed Wallet & Mist, reinstalled Mist, and it seems to work.

usukan commented 8 years ago

@neerven - you deleted ALL application data?

Chain data Dapp Keystore Nodes Nodekey

and it still works?

You would have deleted your keys and all the the blockchain - so you would have to do a full resync - and import your private keys again.

Or was there some specific part of Ethereum AppData that you deleted?

I don't want to have to do a full resync (and import keys again)

I will try @luclu idea of firing up Wallet version 0.6.2 - deleting watch contracts - then reverting to 0.8.1 again (but can't help thinking the 0.6.2 wallets going to go spastic when it connects to a synced blockchain post fork?)

usukan commented 8 years ago

@luclu

I am happy to report that your suggestion to run Ethereum Wallet version 0.6.2 to delete contract and token watches works 100%.

When I run 0.8.1 again - no issues - syncs, wallet opens - no freezing (and all contract and token watches are gone) Hallelujah!

Its a simple and safe work around for the wallet freezing issues that I had been having. I have repeated 3 times on diff computers all Win10 - and all my problems are solved. @hiddentao

Much appreciated - cheers - usukan

neerven commented 8 years ago

@usukan I was actually prepared to do a full sync etc. I thought I removed all data, but I had both Mist and the Wallet, so I suppose I only deleted the Wallet related info. Thereafter Mist works as a charm. No more tokens, nor contracts that I am going to watch for the moment...

derongdat commented 8 years ago

Great! Finally able to access my Ether again, thanks a bunch! Steps:

  1. download Ethereum-Wallet 0.6.2
  2. Delete the DAO contract: In the Ethereum Wallet (Mist) menu, click on Develop -> Toggle Developer Tools -> Wallet UI. Click on the Console tab. Enter CustomContracts.find().fetch() in the console, finding the _id of the Custom Contract, then entering the command CustomContracts.remove({your Custom Contract _id}).
  3. Reinstall Ethereum-Wallet 0.8.1
  4. Done!