HumanSignal/labelImg

Crash when creating annotation

sdhungan opened this issue · 6 comments

image

Every time i try to do anything the application crashes with the error provided in the screenshot.
When i try to zoom in using the scroll weel; drag the image using the mouse; creating an annotation. Is this an issue with the application or is there something else that can cause this erro?

I'm having the same issue,

2023-04-06 11:34:39.216 python[94890:3610899] +[CATransaction synchronize] called within transaction
2023-04-06 11:34:39.376 python[94890:3610899] +[CATransaction synchronize] called within transaction
Traceback (most recent call last):
File "/Users/aedancumming/anaconda3/lib/python3.10/site-packages/libs/canvas.py", line 530, in paintEvent
p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height())
TypeError: arguments did not match any overloaded call:
drawLine(self, l: QLineF): argument 1 has unexpected type 'float'
drawLine(self, line: QLine): argument 1 has unexpected type 'float'
drawLine(self, x1: int, y1: int, x2: int, y2: int): argument 1 has unexpected type 'float'
drawLine(self, p1: QPoint, p2: QPoint): argument 1 has unexpected type 'float'
drawLine(self, p1: Union[QPointF, QPoint], p2: Union[QPointF, QPoint]): argument 1 has unexpected type 'float'
zsh: abort labelImg

me too

@sdhungan Are you using Python 3.11? If so, please try using labelImg with Python 3.9 - that fixed the issue for me, it might work for you also.

What are your installed versions of:

  • Python
  • labelImg - check with pip show labelImg
  • pyqt - check with pip show PyQt5

Also, what version of Qt is shown when you run the below code:

from PyQt5 import QtCore
print("Qt version:", QtCore.QT_VERSION_STR)
Sid220 commented

Same issue with Python 3.10.6

Same problem in Python 3.11.0
image

All the above error is because of the python version. With python version ~= 3.9 will work fine. 3.10 and above do not support certain things of labelImg.