Bug 2022842 - Retext crashes when mouse hovers
Summary: Retext crashes when mouse hovers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: retext
Version: 35
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: José Matos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-12 17:47 UTC by Leonardo Garcia
Modified: 2021-11-24 01:18 UTC (History)
2 users (show)

Fixed In Version: retext-7.2.2-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-24 01:18:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Leonardo Garcia 2021-11-12 17:47:22 UTC
Description of problem:

ReText crashes after being initialized as soon as mouse hovers its window.

Version-Release number of selected component (if applicable):

retext-7.1.0-7.fc35.noarch

How reproducible:

100% of the times the application is initialized.

Steps to Reproduce:

I have Fedora 35 with all the latest updates available as of now. I am running GNOME3 with Wayland on an Intel integrated graphics card in a Lenovo T490 laptop.

When I start ReText, I get the following messages on the console:

$ retext 
QSocketNotifier: Can only be used with threads started with QThread
Using configuration file: /home/laggarcia/.config/ReText project/ReText.conf
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/ReText/editor.py", line 147, in paintEvent
    painter.drawLine(self.marginx, y1, self.marginx, y2)
TypeError: arguments did not match any overloaded call:
  drawLine(self, QLineF): argument 1 has unexpected type 'float'
  drawLine(self, QLine): argument 1 has unexpected type 'float'
  drawLine(self, int, int, int, int): argument 1 has unexpected type 'float'
  drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float'
  drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float'
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?

The ReText window comes up, but as soon as my mouse pointer hovers over it, the application crashes and the following is printed in the console:

QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/ReText/editor.py", line 147, in paintEvent
    painter.drawLine(self.marginx, y1, self.marginx, y2)
TypeError: arguments did not match any overloaded call:
  drawLine(self, QLineF): argument 1 has unexpected type 'float'
  drawLine(self, QLine): argument 1 has unexpected type 'float'
  drawLine(self, int, int, int, int): argument 1 has unexpected type 'float'
  drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float'
  drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float'
Process Process-6:
Process Process-5:
Process Process-3:
Process Process-4:
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 63, in _converter_process_func
    job = receiveObject(conn_child)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 32, in receiveObject
    sizeBuf = recvall(sock, 4)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 25, in recvall
    raise EOFError('Received 0 bytes from socket while more bytes were expected. Did the sender process exit unexpectedly?')
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
EOFError: Received 0 bytes from socket while more bytes were expected. Did the sender process exit unexpectedly?
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 63, in _converter_process_func
    job = receiveObject(conn_child)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 32, in receiveObject
    sizeBuf = recvall(sock, 4)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 25, 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?
Traceback (most recent call last):
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 63, in _converter_process_func
    job = receiveObject(conn_child)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 32, in receiveObject
    sizeBuf = recvall(sock, 4)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 25, 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?
Traceback (most recent call last):
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 63, in _converter_process_func
    job = receiveObject(conn_child)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 32, in receiveObject
    sizeBuf = recvall(sock, 4)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 25, 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?
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 63, in _converter_process_func
    job = receiveObject(conn_child)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 32, in receiveObject
    sizeBuf = recvall(sock, 4)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 25, 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?
Aborted (core dumped)
Process Process-2:
Traceback (most recent call last):
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib64/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 63, in _converter_process_func
    job = receiveObject(conn_child)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 32, in receiveObject
    sizeBuf = recvall(sock, 4)
  File "/usr/lib/python3.10/site-packages/ReText/converterprocess.py", line 25, 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?

Actual results:

ReText always crashes when initalized.

Expected results:

ReText should initialize without issues.

Comment 1 Fedora Update System 2021-11-15 14:15:38 UTC
FEDORA-2021-4a38c391e9 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4a38c391e9

Comment 2 Fedora Update System 2021-11-16 15:52:21 UTC
FEDORA-2021-4a38c391e9 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4a38c391e9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4a38c391e9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Leonardo Garcia 2021-11-16 20:25:29 UTC
The new package works fine.

Comment 4 Fedora Update System 2021-11-24 01:18:58 UTC
FEDORA-2021-4a38c391e9 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.