jwilk-archive / djvusmooth

graphical editor for DjVu
GNU General Public License v2.0
12 stars 2 forks source link

unhandled exception: djvu.decode.JobFailed #14

Open jwilk opened 10 years ago

jwilk commented 10 years ago

Issue reported by @jsbien:

An unhandled exception occured when, after adding several annotation, I tried to move to the next page. After clicking OK on message panel, several occurences of the message 'Unexpected End of File". Looks like all the added annotations vanished.

I made screenshot and, unless I've got confused, I have the file edited when the crash occured.

jsbien@cauda:/mnt/MyBookT2/hg-robocze/DjVu$ Traceback (most recent call last):
  File "/usr/share/djvusmooth/lib/gui/main.py", line 742, in on_next_page
    self.page_no += 1
  File "/usr/share/djvusmooth/lib/gui/main.py", line 732, in set
    self.update_page_widget(new_page = True)
  File "/usr/share/djvusmooth/lib/gui/main.py", line 965, in update_page_widget
    text_model = self.text_model[self.page_no],
  File "/usr/share/djvusmooth/lib/models/__init__.py", line 26, in __getitem__
    self._pages[n] = cls(n, self.acquire_data(n))
  File "/usr/share/djvusmooth/lib/gui/main.py", line 94, in acquire_data
    text.wait()
  File "decode.pyx", line 3240, in djvu.decode.PageText.wait (djvu/decode.c:26835)
  File "decode.pyx", line 3268, in djvu.decode.PageText.sexpr.__get__ (djvu/decode.c:27091)
  File "decode.pyx", line 2801, in djvu.decode.JobException_from_sexpr (djvu/decode.c:23475)
djvu.decode.JobFailed
jwilk commented 10 years ago

Comment submitted by @jsbien:

Problem occured again on another document.

jwilk commented 10 years ago

If you have an idea how I can reproduce it, I'm all ears. :-)