qlog immediately closes when opened while a pull process is running

Bug #932620 reported by André Bachmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Confirmed
Medium
Unassigned
QBzr
Confirmed
Medium
Unassigned

Bug Description

Using Bazaar 2.4.2-1 with qbzr trunk on Win7 x64.

I opened Bazaar Explorer and was just trying to pull the newest changes of another svn project. While the qpull window was still active (because the pull process took a while), I clicked 'log' to view the changes.
The qlog window immediately closes right after displaying. A look in my .bzr.log shows me why:

...
LockContention: Could not acquire lock "C:/spielwiese/1.2-stable/.bzr/checkout/dirstate": (32, 'CreateFileW', 'Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.')
...

This made me wonder:
1) Why is qlog trying to lock something if it is only displaying data in the first place?
2) A little warning window to give the user a feedback about a problem would be much nicer than closing the window without any comment.

Tags: qlog ui
Revision history for this message
André Bachmann (andrebachmann-dd) wrote :
Revision history for this message
Alexander Belchenko (bialix) wrote :

Couple of answers on your questions:

1) qlog uses bzr API to get the history and bzr itself tries to lock everything on read operations.

2) Yes, a little dialog box should be better then crashing with error.

I think qlog needs --ui-mode option too to be able to show errors in appropriate GUI dialog when qlog invoked from explorer.

Changed in qbzr:
status: New → Confirmed
importance: Undecided → Medium
tags: added: qlog ui
Changed in bzr-explorer:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Alexander Belchenko (bialix) wrote :

Added bzr-explorer to the bug report, because if we will implement --ui-mode for qlog then explorer should be updated as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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