ubuntu下chrome保存的密码显示特别慢怎么处理?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

ubuntu下chrome保存的密码显示特别慢怎么处理?

#1

帖子 墨白歮 » 2015-09-10 21:45

我喜欢让chrome保存一些网站的密码.以前在windows下的时候.都是网站加载完密码就自动填上了.
而在ubuntu下.不知道为什么要等30秒左右.
刚开始我还以为是不能保存密码呢.后来发现原来要等.

有没有办法能不用等这30秒.
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#2

帖子 vickycq » 2015-09-10 23:22

这个问题貌似快两年了,目前没有发现可靠的解决方案。

参考楼下#7的回答,或许能部分解决,但在国内需要番羽土墙工具。

参考:
Issue 389139: Password Forms Autocomplete is sometimes very slow on "initial" activation
Issue 171925: Chrome ocassionally forgets stored passwords
上次由 vickycq 在 2015-09-10 23:49,总共编辑 1 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#3

帖子 vickycq » 2015-09-10 23:27

Google Code 要关闭了,把内容复制过来存档。
Issue 389139: Password Forms Autocomplete is sometimes very slow on "initial" activation
11 people starred this issue and may be notified of changes. Back to list
Status: Unconfirmed
Owner: ----
Cc: vabr@chromium.org, gca...@chromium.org, dva...@chromium.org
Cr-UI
Pri-2
Via-Wizard
Type-Bug
OS-Windows
Cr-UI-Browser-Passwords
Needs-Feedback
Hotlist-Slow


Add a comment below
Reported by znuffy, Jun 26, 2014
UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.0 Safari/537.36

Steps to reproduce the problem:
1. Got to a website featuring a login prompt you have a password saved for
2. Your login information should be auto-completed and the forms should be tinted yellow
3. Form is not auto-completed
4. Waiting and doing nothing will autocomplete the password after ~10-11 seconds

This happens on multiple websites (imgur, reddit, facebook etc.).

My Chrome Sync dashboard says I have 676 saved passwords. Maybe this is why it's slow?

What is the expected behavior?
Login data should be auto-completed faster.

What went wrong?
Login data auto-completes very slowly.

Did this work before? N/A

Chrome version: 37.0.2062.0 Channel: dev
OS Version: 6.3
Flash Version: Shockwave Flash 14.0 r0

Please see the linked video for demo:

https://www.youtube.com/watch?v=lVDM5qy-b6k
Jun 26, 2014 #1 tkent@chromium.org
(No comment was entered for this change.)
Labels: Cr-UI-Browser-Passwords
Jul 11, 2014 #2 song...@chromium.org
Checked the issue with facebook, twitter, linkedin. Not reproducible in Chrome 37.0.2062.0 (Official Build 278856)/ Win7.

Jul 11, 2014 #3 znuffy
Could this be related to the amount of passwords stored?
Jul 11, 2014 #4 gca...@chromium.org
I've heard reports of this internally as well, but never in a way that I could track down. I've been meaning to adding better timing stats for loading data to see how often this happen. Is your profile on a remote filesystem or is it stored on local disk?
Jul 11, 2014 #5 znuffy
Local disk (SSD)
Jul 14, 2014 #6 sday...@chromium.org
znuffy,If you have any other machine ,Please try the above issue on that with Latest chrome Version ,if its still reproducible we can go for further traiging the issue.Make sure that in your other machine your chrome should have only few passwords saved and later you can increase them later ,you will get a clarity.

This time confirm this issue on Latest canary :38.0.2090.0 (Official Build 282854).
Thanks you in Advance.


Labels: Needs-Feedback
Jul 14, 2014 #7 znuffy
I'm not exactly sure what that will achieve, though. Obviously a new machine with a blank profile will not have this issue. And it took me years to make save this many passwords in my profile :-)

---

Here's what I tried:

I got latest Canary 38.0.2091.2. Copied my Profile from the dev version to canary, tested imgur.com and other websites.

The issue persisted.

Then I removed my profile completely from Canary, started with a blank one.

Went to imgur.com, logged on, saved my password. Logged out, closed the tab. Tried going back to the login form (in a new tab). Presed "Z" for my username, the suggestions popped up instantly.

I logged out again, I closed chrome.exe completely. Restarted the browser, went back to imgur.com, again the suggestions popped up instantly.

I then synced with my Google Account (and all my 680 stored passwords).

Waited about ~5 minutes until the sync seemed complete (extensions installed, history and speed-dial filled).

Went to imgur.com, pressed "Z" on the logon form, and yet again the suggestions popped up instantly.

This issue seems to be related strictly to my current profile, somehow, as it seems fairly old (my "First Run" file is dated 05.05.2011, but I think the profile is actually older, from about ~2010?).

Only way to possibly hope reproducing this issue is to find a person who has a profile as old as mine with enough stored passwords.

How could I possibly fix this without starting a clean profile and re-syncing?
Jul 14, 2014 #8 znuffy
Had another idea:

I also tried deleting the "Login Data" and "Login Data-journal" files from my profile directory and re-connecting my Google account. Essentially going from "all passwords" to "no passwords" and then back to "all passwords".

The issue persists after the re-sync.
Jul 16, 2014 #9 eng...@chromium.org
@Vaclav, FYI.
Cc: vabr@chromium.org gca...@chromium.org
Nov 14, 2014 #10 n...@semenkovich.com
I'm also seeing this issue, now on:
40.0.2214.6 (Official Build) dev / Ubuntu 15.04

The profile is on a local SSD (and iotop shows no load), and this happens with ~zero system load.

Passwords intermittently --- but consistently when this is occurring --- take a few seconds (or sometimes many more) to autocomplete. chrome://sync-internals shows the passwords are 100% synced.

Dec 3, 2014 #11 vlasenko...@gmail.com
I have been experiencing this issue for at least a week now as well.

Running: Chrome v 39.0.2171.71 m (64-bit) or Win7 x64
Have: 164 Autofill Passwords Saved

When punch in at work there is a delay from 10 - 60 seconds - it used to load the autofill password pretty much immediately. I have noticed similar occurrences in MailChimp, WuFoo, WordPress, as well as a personal webstore (running OpenCart), and many others.

In short, it seems like this happened recently, and appears to happen across all websites. I have not installed any news extensions recently either.
Dec 3, 2014 #12 Stan...@gmail.com
Sometimes it even takes a reload to make it appear. Also on HTTP auth popups, pretty annoying.
Jan 28, 2015 #13 jagar...@gmail.com
I have this issue too.

40.0.2214.93 m
399 passwords saved.
13000 autofill entries (if this has anything to do with the issue?)

Happens on many sites, paypal, aliexpress.

I waited for autofill of the same password 20 times on aliexpress just now.
80% of the time, it got filled in 4-5 seconds, which is too slow.
20% of the time, it got filled within 1 second, which is expected.

This all occurred within a timeframe of 5 minutes, same page loaded, same password autofilled. Very random.

I'm on a very high end computer, and 0 load at the time of this test.
Jan 30, 2015 #14 vabr@chromium.org
(No comment was entered for this change.)
Labels: Hotlist-Slow
Jan 30, 2015 #15 dva...@chromium.org
On Windows passwords are stored in SQLlite database and probably the problem is that after some time it's becoming to work slowly.
Could anyone who encounter this problem please say the size of this database? It can be found in the following way:
1.Type in address bar chrome://version, there <Profile Path> can be found
2.Please write sizes of
<Profile Path>/Login Data
<Profile Path>/Login Data-journal
Cc: dva...@chromium.org
Jan 30, 2015 #16 jagar...@gmail.com
Here is the data for me:

Login Data 488 kB 30.01.15, 11.21.43
Login Data-journal 16.0 kB 30.01.15, 11.21.43
Jan 30, 2015 #17 dva...@chromium.org
Thanks. It seems to be quite reasonable numbers. I'll have a look deeply what are possible reasons.
Jan 30, 2015 #18 znuffy
λ ls -lh Login*
-rw-rw-rw- 1 znf 0 696K 2015-01-30 13:04 Login Data
-rw-rw-rw- 1 znf 0 16K 2015-01-30 13:04 Login Data-journal

I am still somewhat experiencing this issue, but it's not as severe as it used to be back when I made this ticket.
Apr 16, 2015 #19 attila.g...@gmail.com
i have the same issue under ubuntu 14.04 chrome 42
Apr 16, 2015 #20 dva...@chromium.org
attila.gluck: Did this issue appear recently? Which desktop environment do you use (Gnome, KDE etc)?

May 4, 2015 #21 gwil...@gmail.com
Same here with Ubuntu 14.04. Autofill takes about a second. I recently did a Chrome upgrade from 41.0.2272.101-1 to 42.0.2311.90-1, that seems related.
May 4, 2015 #22 dva...@chromium.org
gwillem: Could you please answers additional questions?
How many passwords do you have? Are you signed in Chrome? Correctly I understand that before update to 42 everything worked normally? Does always Autofill slow or for example only after Chrome start?
May 4, 2015 #23 gwil...@gmail.com
I'm signed into Chrome. According to chrome://sync-internals/:

Bookmarks Active: GROUP_UI 880 880
Preferences Active: GROUP_UI 54 54
Passwords Active: GROUP_PASSWORD 391 391
Autofill Profiles Active: GROUP_DB 6 6
Autofill Active: GROUP_DB 562 562
Themes Active: GROUP_UI 2 2
Typed URLs Active: GROUP_HISTORY 1206 1206

I tried stopping chrome, removing my local .cache/chrome and .config/{chrome,chromium} folders, then starting Chrome and signing in again, waiting for sync to complete => same delay

It also occurs to me, on my test URL (phpmyadmin login), the username is filled in instantly, while the password takes ~1 sec. Previously (at least before I flushed my local caches), they both took 1 sec.

Hope this helps a bit.


May 5, 2015 #24 dva...@chromium.org
Thanks for answers. It's very interesting that sometimes username is filled instantly but password with delay, I have no idea why it can be. I'll try to reproduce it locally.
May 26, 2015 #25 throwbac...@gmail.com
Also having this problem with Chrome Version 43.0.2357.73 beta (64-bit), Fedora 21, Gnome 3.14.4. Used to fill forms in immediately, now it can take anywhere from a couple of seconds to nearly a minute.


Jun 3, 2015 #26 ksta...@gmail.com
I have this problem as well, and I've had it for quite a long time, likely back to the 37 build originally mentioned. An interesting symptom of this delay is that often when the fields fill very slowly, I try to enter the login data manually into the form, and it actually overwrites the content I have typed into the fields manually with the saved data while I am actively typing.

It tends to result in me typing half a password, having it replaced with the full password, then typing the latter half, ultimately trying to log in with a password and a half.

Most of the login pages I have trouble with are extremely simplistic and load within 1 second. I also see consistent behavior and timing regardless of whether I am running Chrome on SSDs or platter drives, and on relatively new profile directories as well as profiles that have been upgraded from the Chrome 20ish series.
Aug 27, 2015 #27 django...@gmail.com
I have to PC with Chrome installed with synced Chromes profiles. One is going slow, the other one is instant.

Slow on : Version 44.0.2403.130 (64-bit)
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#4

帖子 墨白歮 » 2015-09-11 8:17

感谢楼上的回答.:em06 英文太滥,用翻译看了下.貌似说要抛弃现在的配置文件新建一个.
这种方法显然无法接受. :em20 那么密码.不太容易迁移,实际上好多我已经不记得了. :em06
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#5

帖子 vickycq » 2015-09-11 8:36

墨白歮 写了:感谢楼上的回答.:em06 英文太滥,用翻译看了下.貌似说要抛弃现在的配置文件新建一个.
这种方法显然无法接受. :em20 那么密码.不太容易迁移,实际上好多我已经不记得了. :em06
他说的是利用云同步,把本地的配置删掉,然后重新同步下来。但在国内不方便这样搞。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#6

帖子 墨白歮 » 2015-09-11 10:38

vickycq 写了:
墨白歮 写了:感谢楼上的回答.:em06 英文太滥,用翻译看了下.貌似说要抛弃现在的配置文件新建一个.
这种方法显然无法接受. :em20 那么密码.不太容易迁移,实际上好多我已经不记得了. :em06
他说的是利用云同步,把本地的配置删掉,然后重新同步下来。但在国内不方便这样搞。
这个没什么用,我重装系统的时候都有同步.
不过,早上看过你说的那篇文章,我想着的确没有更好的办法,就想删掉重建下看看.先用小号试了下.的确可行.
但是我想着最少要把密码导出来.于是搜索了导出密码的方法.
找到一篇文章

代码: 全选

google-chrome --user-data-dir=/tmp/chrome-tmp --password-store=basic
cd /tmp/chrome-tmp/Default
sqlite3 'Login Data'
.mode csv          
.headers on
.separator ","
.output chrome_passwords.csv
select * from logins;
.exit
说是这样导出.我照做的时候发现,密码竟然很快出来了.
于是我尝试

代码: 全选

google-chrome  --password-store=basic
发现密码还是很快出来了.
原文说
In newer versions of Chrome this file is still present, but the passwords are not there anymore - they are stored using the encrypted password storage provided by the system, either Gnome Keyring or KWallet, which means that simply dumping the tables will not work.
这是不是说明是因为ubuntu的密钥环所以才这么慢的.
可是怎么让系统启动chrome的时候都带上这个参数呢
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#7

帖子 vickycq » 2015-09-11 13:34

可是怎么让系统启动chrome的时候都带上这个参数呢
到 /usr/share/applications 中找到 chrome 的 desktop 文件,编辑之,修改其中的 Exec= 一行。
也可到 chrome://flags/ 中搜索有无相关设置
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#8

帖子 墨白歮 » 2015-09-11 15:23

vickycq 写了:
可是怎么让系统启动chrome的时候都带上这个参数呢
到 /usr/share/applications 中找到 chrome 的 desktop 文件,编辑之,修改其中的 Exec= 一行。
也可到 chrome://flags/ 中搜索有无相关设置
我在exec行后边加上参数后.图标直接启动不了了.
然后我删掉了参数,还是启动不了.然后我重装了浏览器.
:em21 密码直接不出来了.
楼主已哭晕在厕所.
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#9

帖子 vickycq » 2015-09-11 15:52

墨白歮 写了: 我在exec行后边加上参数后.图标直接启动不了了.
然后我删掉了参数,还是启动不了.然后我重装了浏览器.
:em21 密码直接不出来了.
楼主已哭晕在厕所.
:em20 怎么会这样

先把 ~/.config/google-chrome/ 备份下来,重装应该不会重设其中的数据

如果用 GNOME Keyring / Kwallet 保存密码,数据库貌似不在 ~/.config/google-chrome/ 下。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#10

帖子 墨白歮 » 2015-09-11 16:38

vickycq 写了:
墨白歮 写了: 我在exec行后边加上参数后.图标直接启动不了了.
然后我删掉了参数,还是启动不了.然后我重装了浏览器.
:em21 密码直接不出来了.
楼主已哭晕在厕所.
:em20 怎么会这样

先把 ~/.config/google-chrome/ 备份下来,重装应该不会重设其中的数据

如果用 GNOME Keyring / Kwallet 保存密码,数据库貌似不在 ~/.config/google-chrome/ 下。
搞定了.谢谢你一直提供建议.
上面启动不了的问题是因为chrome不能正常退出.窗口虽然没了,但是进程还在.
我修改了/opt/google/chrome/google-chrome文件.加上了--password-store=basic参数.
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#11

帖子 vickycq » 2015-09-11 16:57

墨白歮 写了: 搞定了.谢谢你一直提供建议.
上面启动不了的问题是因为chrome不能正常退出.窗口虽然没了,但是进程还在.
我修改了/opt/google/chrome/google-chrome文件.加上了--password-store=basic参数.
:em06 我还以为把你的密码库搞坏了。这个chrome的可执行脚本真乱:
/opt/google/chrome/google-chrome
/usr/bin/google-chrome
/usr/bin/google-chrome-stable

内容都差不多。在我这儿 /usr/share/applications/google-chrome.desktop 引用的是 Exec=/usr/bin/google-chrome-stable %U
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#12

帖子 墨白歮 » 2015-09-12 13:28

vickycq 写了:
墨白歮 写了: 搞定了.谢谢你一直提供建议.
上面启动不了的问题是因为chrome不能正常退出.窗口虽然没了,但是进程还在.
我修改了/opt/google/chrome/google-chrome文件.加上了--password-store=basic参数.
:em06 我还以为把你的密码库搞坏了。这个chrome的可执行脚本真乱:
/opt/google/chrome/google-chrome
/usr/bin/google-chrome
/usr/bin/google-chrome-stable

内容都差不多。在我这儿 /usr/share/applications/google-chrome.desktop 引用的是 Exec=/usr/bin/google-chrome-stable %U
我应该是把系统的密码库搞坏了. :em06 本来chrome用系统密码库只是反映慢,后来直接没了.只能用自己的.
他那几个脚本,其实都指向opt那个.别的都是link
这次搞过虽然解决了问题,但是以后升级麻烦了,
:em05
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#13

帖子 墨白歮 » 2015-10-03 7:55

代码: 全选

#!/bin/bash
istrue=$(grep '"$HERE/chrome" --password-store=basic' /opt/google/chrome/google-chrome)
if [ ! -n "$istrue" ]; then
        sudo sed -i 's/"$HERE\/chrome"/"$HERE\/chrome" --password-store=basic/' /opt/google/chrome/google-chrome
fi
:Haha 为了方便升级.做了个脚本
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#14

帖子 墨白歮 » 2015-10-03 7:56

代码: 全选

#!/bin/bash
istrue=$(grep '"$HERE/chrome" --password-store=basic' /opt/google/chrome/google-chrome)
if [ ! -n "$istrue" ]; then
        sudo sed -i 's/"$HERE\/chrome"/"$HERE\/chrome" --password-store=basic/' /opt/google/chrome/google-chrome
fi
:Haha 为了方便升级.做了个脚本
墨白歮
帖子: 51
注册时间: 2015-09-03 4:29
系统: ubuntu

Re: ubuntu下chrome保存的密码显示特别慢怎么处理?

#15

帖子 墨白歮 » 2015-10-03 7:56

代码: 全选

#!/bin/bash
istrue=$(grep '"$HERE/chrome" --password-store=basic' /opt/google/chrome/google-chrome)
if [ ! -n "$istrue" ]; then
        sudo sed -i 's/"$HERE\/chrome"/"$HERE\/chrome" --password-store=basic/' /opt/google/chrome/google-chrome
fi
:Haha 为了方便升级.做了个脚本
回复