Checkout hangs with Bzr Explorer in Windows 7

Asked by Brian Cox on 2011-07-12

We are trying to get Bazaar 2.3.1 up and running with our new project. I am hosting the repository on a Linux machine and am able to checkout a new branch on a Windows XP machine through the Bazaar Explorer.

However, when a user with a Windows 7 machine tried to check out a branch, the process hung. Additionally, when he tried to do a checkout with the command line interface it took several minutes longer than on my XP machine. Just doing a "bzr version" took over a minute.

Is it possible that 2.3.1 just doesn't work well with Windows 7? Or hopefully we just have a setting wrong that we don't know to tweak.

Here is the output of the bzr log for when it hangs while attempting a checkout from the Explorer:

Tue 2011-07-12 11:07:47 -0700
18.595 bazaar version: 2.3.1
18.595 bzr arguments: [u'explorer']
26.130 looking for plugins in C:/Users/Tim/AppData/Roaming/bazaar/2.0/plugins
26.130 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
51.682 encoding stdout as osutils.get_user_encoding() 'cp1252'
69.778 loading explorer extensions for clothes ['Bazaar support', 'Register on
Launchpad']
69.778 explorer extensions provided by the colo plugin in C:/Program Files
(x86)/Bazaar/plugins/colo/explorer
77.329 Deprecated function called
Called from:
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\app_suite.py", line 120,
in lookup
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\app_suite.py", line 138,
in _lookup_here
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\app_suite.py", line 150,
in command_to_args

Any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Brian Cox
Solved:
2011-07-13
Last query:
2011-07-13
Last reply:
2011-07-13
Martin Pool (mbp) said : #1

I would guess this is something like a firewall or virus scanner slowing something down.

Could you please hit Ctrl-break, which should drop you into a debugger, then type 'bt' and then paste the output.

Brian Cox (brian-cox) said : #2

Thanks for the response!

Some updates:
Another Windows 7 user is reporting the same behavior with the Explorer. Note that all of this interaction is on an internal network.

We tried the ctrl+break from the command line and, oddly enough, today we were able to do a checkout with no delays at all. However attempting a checkout through the Explorer still does not work.

One detail I left out yesterday is that the hang seems to happen where the password prompt should be displayed. A new log seems to support this:

Wed 2011-07-13 08:44:33 -0700
0.047 bazaar version: 2.3.1
0.047 bzr arguments: [u'explorer']
0.063 looking for plugins in C:/Users/Tim/AppData/Roaming/bazaar/2.0/plugins
0.063 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
0.156 encoding stdout as osutils.get_user_encoding() 'cp1252'
0.780 loading explorer extensions for clothes ['Bazaar support', 'Register on Launchpad']
0.780 explorer extensions provided by the colo plugin in C:/Program Files (x86)/Bazaar/plugins/colo/explorer

Wed 2011-07-13 08:45:31 -0700
0.032 bazaar version: 2.3.1
0.032 bzr arguments: [u'qsubprocess', u'--bencode', u'l6:branch49:bzr+ssh://bazaar@10.20.1.126/mnt/bazaar/gdb/trunk13:C:/trunk/GDB218:--use-existing-dire']
0.063 looking for plugins in C:/Users/Tim/AppData/Roaming/bazaar/2.0/plugins
0.063 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
0.156 encoding stdout as osutils.get_user_encoding() 'cp1252'
0.219 bazaar version: 2.3.1
0.219 bzr arguments: [u'branch', u'bzr+ssh://bazaar@10.20.1.126/mnt/bazaar/gdb/trunk', u'C:/trunk/GDB2', u'--use-existing-dir']
0.219 encoding stdout as osutils.get_user_encoding() 'cp1252'
0.687 bzr-svn: using Subversion 1.6.6 (), subvertpy 0.7.5
0.968 ssh implementation is OpenSSH
770.748 return code 0

John A Meinel (jameinel) said : #3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/13/2011 6:21 PM, Brian Cox wrote:
> Question #164595 on Bazaar changed:
> https://answers.launchpad.net/bzr/+question/164595
>
> Status: Needs information => Open
>
> Brian Cox gave more information on the question:
> Thanks for the response!
>
> Some updates:
> Another Windows 7 user is reporting the same behavior with the Explorer. Note that all of this interaction is on an internal network.
>
> We tried the ctrl+break from the command line and, oddly enough, today
> we were able to do a checkout with no delays at all. However attempting
> a checkout through the Explorer still does not work.
>
> One detail I left out yesterday is that the hang seems to happen where
> the password prompt should be displayed. A new log seems to support
> this:
>
> Wed 2011-07-13 08:44:33 -0700
> 0.047 bazaar version: 2.3.1
> 0.047 bzr arguments: [u'explorer']
> 0.063 looking for plugins in C:/Users/Tim/AppData/Roaming/bazaar/2.0/plugins
> 0.063 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
> 0.156 encoding stdout as osutils.get_user_encoding() 'cp1252'
> 0.780 loading explorer extensions for clothes ['Bazaar support', 'Register on Launchpad']
> 0.780 explorer extensions provided by the colo plugin in C:/Program Files (x86)/Bazaar/plugins/colo/explorer
>
> Wed 2011-07-13 08:45:31 -0700
> 0.032 bazaar version: 2.3.1
> 0.032 bzr arguments: [u'qsubprocess', u'--bencode', u'l6:branch49:bzr+ssh://bazaar@10.20.1.126/mnt/bazaar/gdb/trunk13:C:/trunk/GDB218:--use-existing-dire']
> 0.063 looking for plugins in C:/Users/Tim/AppData/Roaming/bazaar/2.0/plugins
> 0.063 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
> 0.156 encoding stdout as osutils.get_user_encoding() 'cp1252'
> 0.219 bazaar version: 2.3.1
> 0.219 bzr arguments: [u'branch', u'bzr+ssh://bazaar@10.20.1.126/mnt/bazaar/gdb/trunk', u'C:/trunk/GDB2', u'--use-existing-dir']
> 0.219 encoding stdout as osutils.get_user_encoding() 'cp1252'
> 0.687 bzr-svn: using Subversion 1.6.6 (), subvertpy 0.7.5
> 0.968 ssh implementation is OpenSSH
> 770.748 return code 0
>

You may want to try setting "BZR_SSH=paramiko" as an environment
variable. ssh and plink have trouble generating a password prompt,
especially when being driven from a graphical interface.

You can set it as a global env variable in Environment Variables, or
local to the current command line with:
 set BZR_SSH=paramiko

If you just want to try it first.

That tells us to use a python SSH implementation, which lets us prompt
for passwords, etc, easier. We default to openssh if it is found, on the
idea that you would already have configured ssh to have your private
keys, etc.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4dxr4ACgkQJdeBCYSNAAM56QCePuU5ZMZPg97IyoLhmvGPQk4Y
qi8AoL9xwumGHWrTP05WbLKNR+NNDMH6
=NtGt
-----END PGP SIGNATURE-----

Brian Cox (brian-cox) said : #4

Yes, that's perfect! Thanks for the quick responses!