HTD

Error presented when representing a closed cursor

Bug #1016739 reported by Simon Bull
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HTD
Fix Released
High
Andrew Hayzen

Bug Description

Hi

When representing a closed cursor within HTD, an error is presented. I was expecting it to output '<HTD3.0 Closed Cursor>', to confirm that the cursor had been closed, however, it outputted this:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.2/dist-packages/htd30/_objects/cursor.py", line 171, in __repr__
    return "<HTD%s Closed Cursor>" % self.version
  File "/usr/local/lib/python3.2/dist-packages/htd30/_objects/cursor.py", line 376, in version
    self._file.lock_reading()
  File "/usr/local/lib/python3.2/dist-packages/htd30/_workers/__init__.py", line 289, in lock_reading
    self._file._lock_reading()
  File "/usr/local/lib/python3.2/dist-packages/htd30/_base/file.py", line 86, in _lock_reading
    fcntl.flock(self.__file, fcntl.LOCK_SH | fcntl.LOCK_NB)
ValueError: I/O operation on closed file

Thanks
Simon Bull

Related branches

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Hi Simon

Thank you for taking the time to report this bug and helping to make HTD better.

I can confirm that this error happens on my machine as well, therefore I have confirmed the bug.

Looks like the cursor is trying to talk to the file even though it is closed.

Andy

Changed in htd:
status: New → Triaged
milestone: none → beta
assignee: nobody → Andrew Hayzen (andrew-hayzen)
Andrew Hayzen (ahayzen)
Changed in htd:
status: Triaged → In Progress
importance: Undecided → High
Andrew Hayzen (ahayzen)
summary: - Error presented when closing a cursor
+ Error presented when representing a closed cursor
Andrew Hayzen (ahayzen)
description: updated
Andrew Hayzen (ahayzen)
Changed in htd:
status: In Progress → Fix Committed
Andrew Hayzen (ahayzen)
Changed in htd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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