Skip to content

Crash when opening a specific project #1394

@Biep

Description

@Biep

Manuskript 0.16.1 on Ubuntu 24.10

One project (Markdown compile <1.5 MB, each file under 1500 words, <350 pages ePub on my e-reader) suddenly crashes Manuskript when I try to open it. When doing this starting from the command line I get this:

biep@Puk-1:~$ manuskript
QSocketNotifier: Can only be used with threads started with QThread
CRITICAL> An unhandled exception has occurred!
Traceback (most recent call last):
  File "/usr/share/manuskript/manuskript/ui/welcome.py", line 148, in loadRecentFile
    self.mw.loadProject(act.data())
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/share/manuskript/manuskript/mainWindow.py", line 936, in loadProject
    self.loadDatas(project)
    ~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/share/manuskript/manuskript/mainWindow.py", line 1235, in loadDatas
    errors = loadSave.loadProject(project)
  File "/usr/share/manuskript/manuskript/loadSave.py", line 68, in loadProject
    return v1.loadProject(project, zip=isZip)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/manuskript/manuskript/load_save/version_1.py", line 919, in loadProject
    root = ET.fromstring(files["revisions.xml"])
  File "src/lxml/etree.pyx", line 3307, in lxml.etree.fromstring
  File "src/lxml/parser.pxi", line 1995, in lxml.etree._parseMemoryDocument
  File "src/lxml/parser.pxi", line 1882, in lxml.etree._parseDoc
  File "src/lxml/parser.pxi", line 1164, in lxml.etree._BaseParser._parseDoc
  File "src/lxml/parser.pxi", line 633, in lxml.etree._ParserContext._handleParseResultDoc
  File "src/lxml/parser.pxi", line 743, in lxml.etree._handleParseResult
  File "src/lxml/parser.pxi", line 672, in lxml.etree._raiseParseError
  File "<string>", line 3965
lxml.etree.XMLSyntaxError: internal error: Huge input lookup, line 3965, column 1830
biep@Puk-1:~$ 

Typically I leave the project open, and when Manuskript starts it shows it immediately, but once in a while I close it - which I did earlier today, after writing a bit of text and doing nothing else.
I can still open other projects, but this is my main one, on which I had hoped to work a lot these days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions