BitShares Forum

Main => Technical Support => Topic started by: karnal on April 03, 2017, 12:16:07 pm

Title: (Extremely) Long password input hangs UI for up to a few minutes
Post by: karnal on April 03, 2017, 12:16:07 pm
Something dramatic appears to have changed in recent versions (my previous software version was from a few months ago), I use a randomly generated password for the wallet, and now when pasting it into the UI, when attempting to unlock the wallet, the program freezes for 1-2 minutes, while cpu% goes through the roof.

Eventually it will paste, and unlocking will work. But it was not like this in previous versions.

Any idea why, @svk @xeroc ?

This is the GNU/Linux (latest) version of the wallet, btw.
Title: Re: (Extremely) Long password input hangs UI for up to a few minutes
Post by: xeroc on April 03, 2017, 02:12:36 pm
hmm .. make a backup .. then reimport the backup and try again ..
Don't know the cause .. but it's probably just a browser hickup ..
Title: Re: (Extremely) Long password input hangs UI for up to a few minutes
Post by: karnal on April 03, 2017, 02:32:44 pm
This is the light client, @xeroc.

Perhaps relevant is the fact that the password is 4000+ characters - but it wasn't an issue until upgrading to the latest version.
Title: Re: (Extremely) Long password input hangs UI for up to a few minutes
Post by: karnal on April 03, 2017, 05:54:42 pm
@xeroc @svk, so I tested by creating a new wallet with a random 5000 char password, entering the password initially at the wallet creation screen goes as expected, but the moment I try to unlock the wallet and paste the giant password, same symptoms as before.

This leads me to believe it is a recently introduced bug. Can you guys reproduce?
Title: Re: (Extremely) Long password input hangs UI for up to a few minutes
Post by: svk on April 04, 2017, 06:29:55 am
I doubt it's related to the password itself, most likely it's from the lookup of keys from your brain key. I recently changed that part to look for more keys, making it more likely to recover keys from wallets that have in the past made failed attempts to create accounts (there was a bug there).

Are you running a local node? Is your computer old?
Title: Re: (Extremely) Long password input hangs UI for up to a few minutes
Post by: karnal on April 04, 2017, 08:04:50 am
8 cores with 32GB of RAM, should be plenty - and keep in mind, it was working fine (pretty much instantly) until I upgraded to the latest version.

No local node.

I'd like to help you narrow down which version this was introduced, but I skipped a few months worth of versions. Worst case scenario I could locate the .deb's and try each.

Before that, however, could you confirm that this issue is reproducible on your end?
Title: Re: (Extremely) Long password input hangs UI for up to a few minutes
Post by: svk on April 05, 2017, 07:26:54 am
Ok I've figured out why, it was because of the password strength checker I added recently, 4000 chars was a bit too much for it..  I've disabled it for when you enter an existing password as well as for passwords of length > 100 characters. Should go live within a few days, just wanna test some other changes a bit more first.
Title: Re: (Extremely) Long password input hangs UI for up to a few minutes
Post by: karnal on April 05, 2017, 08:19:43 am
Awesome, looking forward to the upgrade :)