Skip to content

ReText 8.0.0 crashes with EOFError and Segmentation fault #597

@szpeter80

Description

@szpeter80

How to reproduce?

On a given document, the app starting up with live preview enabled. Scrolling down to the very end of the markdown content with the "down arrow" cursor key (same with "pagedown" key). ReText crashes with the following message:

$ retext 
Using configuration file: /home/pete/.config/ReText project/ReText.conf
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/rt/lib/python3.10/site-packages/ReText/converterprocess.py", line 72, in _converter_process_func
    job = receiveObject(conn_child)
  File "/tmp/rt/lib/python3.10/site-packages/ReText/converterprocess.py", line 41, in receiveObject
    sizeBuf = recvall(sock, 4)
  File "/tmp/rt/lib/python3.10/site-packages/ReText/converterprocess.py", line 34, in recvall
    raise EOFError('Received 0 bytes from socket while more bytes were expected. Did the sender process exit unexpectedly?')
EOFError: Received 0 bytes from socket while more bytes were expected. Did the sender process exit unexpectedly?
Segmentation fault (core dumped)
  • the behaviour is possible to replicate, it happened 5 times out of 5 with the same document
  • it was tested in a new venv, venv setup: empty venv + pip install retex, output of pip freeze:
$ pip freeze
chardet==5.0.0
docutils==0.19
Markdown==3.4.1
Markups==3.1.3
Pygments==2.13.0
PyQt6==6.4.0
PyQt6-Qt6==6.4.0
PyQt6-sip==13.4.0
python-markdown-math==0.8
ReText==8.0.0

If live preview is turned off, no amount of scrolling crashes the app. Is there something i can help with troubleshooting ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions