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.15k stars 6.23k forks source link

Crashing in Ubuntu 22.04 LTS #1010

Open TidelyPom opened 10 months ago

TidelyPom commented 10 months ago

Hi

I have tried to use labelImg in Ubuntu 22.04 LTS. I installed it with pip3 as specified on the page, i.e. . I specify and load an image with , the image loads but when I click on the software crashes with the following message in the terminal :

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Traceback (most recent call last): File "/home/tha/.local/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, 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? QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it? QPainter::begin: Painter already active Segmentation fault (core dumped)

Note when I installed labelImg with pip3 it seemed okay, the terminal said :

Defaulting to user installation because normal site-packages is not writeable Collecting labelImg Using cached labelImg-1.8.6-py2.py3-none-any.whl Requirement already satisfied: pyqt5 in /usr/lib/python3/dist-packages (from labelImg) (5.15.6) Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from labelImg) (4.8.0) Requirement already satisfied: PyQt5-sip<13,>=12.8 in /usr/lib/python3/dist-packages (from pyqt5->labelImg) (12.9.1) Installing collected packages: labelImg Successfully installed labelImg-1.8.6

Any idea ?

sdelahaies commented 9 months ago

Hi, I just happened to have a similar issue and this solution fixed the problem, hope this helps.