andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

22.08.0 crashes in `drawPixmap` #480

Open abitrolly opened 1 year ago

abitrolly commented 1 year ago

Opening this file in Enki gives a crash.

#!/usr/bin/env python

import TestSCons

test = TestSCons.TestSCons()
test.write('SConstruct', "")
test.run(arguments = '-m .',
         stderr = "Warning:  ignoring -m option\n")
QSocketNotifier: Can only be used with threads started with QThread
CRITICAL:root:Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/qutepart/sideareas.py", line 146, in paintEvent
    painter.drawPixmap(0, yPos, pixMap)
TypeError: arguments did not match any overloaded call:
  drawPixmap(self, QRectF, QPixmap, QRectF): argument 1 has unexpected type 'int'
  drawPixmap(self, QRect, QPixmap, QRect): argument 1 has unexpected type 'int'
  drawPixmap(self, Union[QPointF, QPoint], QPixmap): argument 1 has unexpected type 'int'
  drawPixmap(self, QPoint, QPixmap): argument 1 has unexpected type 'int'
  drawPixmap(self, QRect, QPixmap): argument 1 has unexpected type 'int'
  drawPixmap(self, int, int, QPixmap): argument 2 has unexpected type 'float'
  drawPixmap(self, int, int, int, int, QPixmap): argument 2 has unexpected type 'float'
  drawPixmap(self, int, int, int, int, QPixmap, int, int, int, int): argument 2 has unexpected type 'float'
  drawPixmap(self, int, int, QPixmap, int, int, int, int): argument 2 has unexpected type 'float'
  drawPixmap(self, Union[QPointF, QPoint], QPixmap, QRectF): argument 1 has unexpected type 'int'
  drawPixmap(self, QPoint, QPixmap, QRect): argument 1 has unexpected type 'int'
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
...
abitrolly commented 1 year ago

@andreikop Enki web-site http://enki-editor.org/ is gone.