Closed szpeter80 closed 2 years ago
I cannot reproduce this.
Does it happen with any document or only some specific one?
Can you try running PYTHONFAULTHANDLER=1 retext
and paste the output?
With the fault handler:
$ PYTHONFAULTHANDLER=1 retext
Using configuration file: /home/pete/.config/ReText project/ReText.conf
Fatal Python error: Segmentation fault
Current thread 0x00007fc09c5b0000 (most recent call first):
File "/tmp/rt/lib/python3.10/site-packages/ReText/editor.py", line 185 in paintEvent
File "/tmp/rt/lib/python3.10/site-packages/ReText/__main__.py", line 144 in main
File "/tmp/rt/bin/retext", line 8 in <module>
Extension modules: PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets, PyQt6.QtPrintSupport, PyQt6.QtNetwork, PyQt6.QtDBus (total: 6)
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)
It does happen with an other document as well, but they have a very similar structure (embedded css, tables, and 1-2 linked images about an a4 page each. The images are PNG files exported from draw.io desktop version and have the diagram embedded.
I'm not totally sure, but when this is happening, the markdown pane seems shorter, like the last part of the docs was not there, and when the scrolling hits the end of this, the crash comes.
Thank you for the information.
Can you please test issue597
branch (commit ecc567a6101ca548161c5aba9f6c0bfe160836e4) and check if it fixes the issue for you?
Tested just now, and it is not crashing. Seems like the change resolved the issue! Thanks !
Thank you! Pushed to master.
This is some strange bug in Qt 6 which was present in as early as 6.1.0. I could not identify the change which broke it, but what I did is a workaround which seems to work.
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:
pip install retex
, output ofpip freeze
:If live preview is turned off, no amount of scrolling crashes the app. Is there something i can help with troubleshooting ?