HumanSignal / labelImg

LabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source data labeling tool for images, text, hypertext, audio, video and time-series data.
https://youtu.be/p0nR2YsCY_U
MIT License
22.86k stars 6.32k forks source link

Crash when creating annotation #987

Open sdhungan opened 1 year ago

sdhungan commented 1 year ago

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?

Aedancodes commented 1 year ago

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

qq326646683 commented 1 year ago

me too

sohang3112 commented 1 year ago

@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:

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 1 year ago

Same issue with Python 3.10.6

zhenyaliu77 commented 1 year ago

Same problem in Python 3.11.0 image

Shreejan-git commented 1 year ago

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.