'show log' crashes on new added file if checkout is out of date

Bug #807407 reported by Banksy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Confirmed
Medium
Unassigned

Bug Description

I am using Bazaar-Explorer under Windows XP and can reproduce the following:-
1. Create a (central) repository and a plain branch underneath it (say 'proj1')
2. Add a couple of files to proj1 and commit them
3. Create a checkout onto another hard drive
4. Make a simple change to one of the files and commit it
5. Add a new file to my checkout directory and commit it
6. If I then right-click on the new file (in Working Tree window) and 'show log' Bazaar will crash and close.

What am I doing wrong or is this a little issue ?

Revision history for this message
Banksy (deejay-wong) wrote :

part of log file :

9.968 return code 0
84.154 opening working tree 'O:/DW/bzr_test/proj1'
837.754 opening working tree 'O:/DW/bzr_test/proj1'
936.392 opening working tree 'O:/DW/bzr_test/proj1'
936.486 Traceback (most recent call last):
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\util.py", line 884, in run_in_loading_queue
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\logmodel.py", line 110, in load
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\loggraphviz.py", line 1448, in load
  File "bzrlib\workingtree_4.pyo", line 545, in kind
  File "bzrlib\decorators.pyo", line 140, in read_locked
  File "bzrlib\workingtree_4.pyo", line 449, in id2path
NoSuchId: The file id "rtc.c-20110708080813-p5szuwwbqprf4c6x-1" is not present in the tree <WorkingTree6 of O:/DW/bzr_test/proj1>.

936.486 return code 0

Revision history for this message
Banksy (deejay-wong) wrote :

I'm using Bazaar Explorer 1.1.2 and bzlib 2.3.1 from the standard Windows install.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 807407] Re: 'show log' crashes Bazaar after new file added.

Banksy пишет:
> File "C:/Program Files/Bazaar/plugins\qbzr\lib\loggraphviz.py", line 1448, in load
> File "bzrlib\workingtree_4.pyo", line 545, in kind
> File "bzrlib\decorators.pyo", line 140, in read_locked
> File "bzrlib\workingtree_4.pyo", line 449, in id2path
> NoSuchId: The file id "rtc.c-20110708080813-p5szuwwbqprf4c6x-1" is not present in the tree <WorkingTree6 of O:/DW/bzr_test/proj1>.

Now we have something to debug.

Can you show the output of the following command (you can run them via
Bazaar Explorer -- All Commands dialog or from the console):

bzr ls --show-ids -v O:/DW/bzr_test/proj1

Revision history for this message
Banksy (deejay-wong) wrote : Re: 'show log' crashes Bazaar after new file added.

Here it is :-

Run command: bzr ls --show-ids -v "O:/DW/bzr_test/proj1"
V O:/DW/bzr_test/proj1/datalog.c datalog.c-20110708080525-pgisoeya6qgfkcqa-1
V O:/DW/bzr_test/proj1/debug.c debug.c-20110708080548-d21gkarw1i8s2y77-1

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 807407] Re: 'show log' crashes Bazaar after new file added.

Banksy пишет:
> Here it is :-
>
> Run command: bzr ls --show-ids -v "O:/DW/bzr_test/proj1"
> V O:/DW/bzr_test/proj1/datalog.c datalog.c-20110708080525-pgisoeya6qgfkcqa-1
> V O:/DW/bzr_test/proj1/debug.c debug.c-20110708080548-d21gkarw1i8s2y77-1

OK, as you can see there is no file rtc.c.

Revision history for this message
Banksy (deejay-wong) wrote : Re: 'show log' crashes Bazaar after new file added.

> OK, as you can see there is no file rtc.c.

But the file rtc.c does exist in my checkout directory - and it is committed into the repository.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 807407] Re: 'show log' crashes Bazaar after new file added.

08.07.2011 19:17, Banksy пишет:
>> OK, as you can see there is no file rtc.c.
>
> But the file rtc.c does exist in my checkout directory - and it is
> committed into the repository.

What is the path to your checkout directory?
Check the log for your checkout, check what `bzr status` says.

Revision history for this message
Banksy (deejay-wong) wrote : Re: 'show log' crashes Bazaar after new file added.

The path to the checkout is D:\bzr_co (if I remember correctly - its on my PC at work).

I've just reproduced the same here at home -
repository is e:\bzr_test\proj1 and checkout is C:\Users\Me\Documents\Work\bzr_co

Running bzr_status on the checkout produces nothing.

This is part of the log:

Sat 2011-07-09 20:56:42 +0100
0.055 bazaar version: 2.3.1
0.055 bzr arguments: [u'status']
0.079 looking for plugins in C:/Users/Me/AppData/Roaming/bazaar/2.0/plugins
0.081 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
0.081 Plugin name explorer already loaded
0.200 encoding stdout as sys.stdout encoding 'cp850'
0.226 opening working tree 'C:/Users/Me/Documents/Work/bzr_co'
0.230 check paths: None
0.233 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.234 encoding stdout as sys.stdout encoding 'cp850'
0.239 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.239 return code 0
209.515 opening working tree 'C:/Users/Me/Documents/Work/bzr_co'
209.540 check paths: None
637.301 Deprecated function called
Called from:
  File "C:/Users/Me/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\app_suite.py", line 120, in lookup
  File "C:/Users/Me/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\app_suite.py", line 138, in _lookup_here
  File "C:/Users/Me/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\app_suite.py", line 150, in command_to_args

I have noticed that if I 'update' the working tree in the repository location and then try and view the log from the checkout location, everything works as I would expect. Without doing the update the issue always occurs.

If I run bzr ls --show-ids -v "C:/Users/Me/Documents/Work/bzr_co" then all three files are listed.

Revision history for this message
Banksy (deejay-wong) wrote :

I've just tried it on bzr-explorer 1.1.4 release and it behaves the same.

I have noticed that if I 'update' the working tree in the repository location and then try and view the log from the checkout location, everything works as I would expect. Without doing the update the issue always occurs.

summary: - 'show log' crashes Bazaar after new file added.
+ 'show log' crashes on new added file if checkout is out of date
Changed in bzr-explorer:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.