Bazaar Explorer crashes with [Errno 9] Bad file descriptor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Explorer |
Invalid
|
Undecided
|
Unassigned | ||
TortoiseBZR |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Setup: Windows 7, bzr 2.1.1, Bazaar Explorer 1.0.1
Summary: If Bazaar Explorer is opened via right-click within a child branch (a brach that has a parent), it produces an error message when closing. It doesn't happen if Explorer is opened via 'bzr explorer'.
How to recreate a problem:
1. Create a standalone branch: bzr init parent
2. Create a child branch: bzr branch parent child
3. Go to child folder in Windows Explorer, right-click on blank space, select Bazaar Explorer (no console window displayed). It correctly opens a child branch.
4. Close Bazaar Explorer. It gives an error message: "bzr: Error: [Errno 9] Bad file descriptor"
Relevant part of bzr.log:
-------
Wed 2010-04-07 11:39:34 +1000
0.078 looking for plugins in C:/Users/
0.078 looking for plugins in C:/Program Files/Bazaar/
1.445 loading explorer extensions for clothes ['Bazaar support', 'Register on Launchpad']
1.608 opening working tree 'D:/t/child'
1.621 Returning RevisionSpec RevisionSpec_submit for submit:
[ 5084] 2010-04-07 11:39:35.786 INFO: Using parent branch file://
1.631 check paths: None
3.307 Traceback (most recent call last):
File "_dirstate_
StopIteration
-------
However, if I open Explorer via desktop link or 'bzr explorer' (console window will be visible) and navigate to the same branch, there is no error when closing. In this case bzr.log will look like this:
-------
Wed 2010-04-07 11:49:49 +1000
0.079 bazaar version: 2.1.1
0.080 bzr arguments: [u'explorer']
0.103 looking for plugins in C:/Users/
0.109 looking for plugins in C:/Program Files/Bazaar/
0.450 encoding stdout as sys.stdout encoding 'cp866'
1.666 loading explorer extensions for clothes ['Bazaar support', 'Register on Launchpad']
3.639 opening working tree 'D:/t/child'
3.650 Returning RevisionSpec RevisionSpec_submit for submit:
[ 3976] 2010-04-07 11:49:53.591 INFO: Using parent branch file://
3.661 check paths: None
5.495 return code 0
-------
The program works fine if I open a parent branch via mouse right-click or 'bzr explorer' command.
Related branches
Changed in tortoisebzr: | |
status: | Confirmed → Fix Committed |
milestone: | none → 0.5.8 |
milestone: | 0.5.8 → 0.5.9 |
Changed in tortoisebzr: | |
status: | Fix Committed → Fix Released |
Changed in bzr-explorer: | |
status: | Incomplete → Invalid |
Because of the bug I reverted to bzr 2.1.0. I don't see error anymore - so it is specific to 2.1.1.