IOError (errno 22) invalid argument in trace when stderr is closed

Bug #603389 reported by Greg
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

Using Bazaar Explorer, it became unresponsive. The following error was displayed in the command window:

----------------------------------------------------------
Failed to decode using utf8, falling back to latin1
Failed to decode using utf8, falling back to latin1
Error in sys.excepthook:
Traceback (most recent call last):
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\trace.py", line 306, in e
xcepthook
    type=ITEM_OR_EVENT_METHOD)
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\trace.py", line 103, in r
eport_exception
    error_type = report_exception(exc_info, err_file)
  File "bzrlib\trace.pyo", line 444, in report_exception
  File "bzrlib\trace.pyo", line 357, in log_exception_quietly
  File "bzrlib\trace.pyo", line 182, in mutter
IOError: [Errno 22] Invalid argument

Original exception was:
Traceback (most recent call last):
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\explorer.py", line 16
80, in do_full_refresh
    self.do_refresh(reopen=True)
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\explorer.py", line 16
83, in do_refresh
    self.location_viewer.refresh_current(reopen=reopen)
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\location_viewer.py",
line 174, in refresh_current
    model.reopen_location()
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\location.py", line 21
4, in reopen_location
    self.location)
  File "bzrlib\bzrdir.pyo", line 991, in open_containing_tree_branch_or_reposito
ry
  File "bzrlib\bzrdir.pyo", line 941, in _get_tree_branch
  File "bzrlib\bzrdir.pyo", line 1765, in open_workingtree
  File "bzrlib\workingtree.pyo", line 3052, in open
  File "bzrlib\workingtree_4.pyo", line 1489, in _open
  File "bzrlib\workingtree_4.pyo", line 88, in __init__
  File "bzrlib\trace.pyo", line 182, in mutter
IOError: [Errno 22] Invalid argument
----------------------------------------------------------

The last entry in .bzr.log was as follows, however I do not recall any issue with 'log' itself. It certainly did display the log window. The operation I tried to perform and noticed the crash was just a 'refresh'.

----------------------------------------------------------
Thu 2010-07-08 17:46:36 +1000
0.038 bazaar version: 2.1.1
0.038 bzr arguments: [u'qlog']
0.047 looking for plugins in C:/Users/myname/AppData/Roaming/bazaar/2.0/plugins
0.048 looking for plugins in C:/Program Files (x86)/Bazaar/plugins
0.194 encoding stdout as sys.stdout encoding 'cp850'
0.657 opening working tree 'C:/dev/Proj1/myMain'
10.006 Transferred: 0KiB (0.0K/s r:0K w:0K)
10.006 return code 0
----------------------------------------------------------

QBzr 0.18.4
bzrlib 2.1.1
PyQt 4.4.3
Qt 4.4.1
Phython 2.5.4
bzrtools 2.1.0
explorer 1.01
System: Windows 7 Pro 64bit

Revision history for this message
Alexander Belchenko (bialix) wrote :

File "bzrlib\trace.pyo", line 182, in mutter
IOError: [Errno 22] Invalid argument:

Looks like the problem with console or stderr?

Changed in bzr-explorer:
status: New → Incomplete
Revision history for this message
Martin Pool (mbp) wrote :

I don't know what led up to this, but it seems that bzr has no stderr file handle. We don't really need to have one, so perhaps we should continue and log the output to .bzr.log or discard it.

affects: bzr-explorer → bzr
Changed in bzr:
importance: Undecided → Medium
status: Incomplete → Confirmed
summary: - Crash - unknown #2
+ IOError (errno 22) invalid argument in trace when stderr is closed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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