Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Crash when creating annotation #987

Open
sdhungan opened this issue Mar 30, 2023 · 6 comments
Open

Crash when creating annotation #987

sdhungan opened this issue Mar 30, 2023 · 6 comments

Comments

@sdhungan
Copy link

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
Copy link

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
Copy link

me too

@sohang3112
Copy link

sohang3112 commented Apr 26, 2023

@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
Copy link

Sid220 commented Jul 17, 2023

Same issue with Python 3.10.6

@zhenyaliu77
Copy link

Same problem in Python 3.11.0
image

@Shreejan-git
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants