Cadence icon indicating copy to clipboard operation
Cadence copied to clipboard

setMinimumSize : unexpected type 'float'

Open AnasGhrab opened this issue 2 years ago • 7 comments

Hi. With the last versions of Claudia and Ubuntu 22 TLS, I get this error when lauching Claudia :

anas@Zeus:~$ claudia
Using Tray Engine 'Qt'
Traceback (most recent call last):
  File "/usr/share/cadence/src/claudia.py", line 2768, in <module>
    gui = ClaudiaMainW()
  File "/usr/share/cadence/src/claudia.py", line 786, in __init__
    self.ui.miniCanvasPreview.init(self.scene, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT)
  File "/usr/share/cadence/src/canvaspreviewframe.py", line 76, in init
    self.setMinimumSize(self.fFakeWidth+padding,   self.fFakeHeight+padding)
TypeError: arguments did not match any overloaded call:
  setMinimumSize(self, int, int): argument 1 has unexpected type 'float'
  setMinimumSize(self, QSize): argument 1 has unexpected type 'float'

AnasGhrab avatar May 21 '22 19:05 AnasGhrab

Having the same issue

WiredG1 avatar May 27 '22 13:05 WiredG1

Me too.. this is the terminal output

~$ claudia Using Tray Engine 'Qt' Traceback (most recent call last): File "/usr/share/cadence/src/claudia.py", line 2768, in gui = ClaudiaMainW() File "/usr/share/cadence/src/claudia.py", line 786, in init self.ui.miniCanvasPreview.init(self.scene, DEFAULT_CANVAS_WIDTH, DEFAULT_CANVAS_HEIGHT) File "/usr/share/cadence/src/canvaspreviewframe.py", line 76, in init self.setMinimumSize(self.fFakeWidth+padding, self.fFakeHeight+padding) TypeError: arguments did not match any overloaded call: setMinimumSize(self, int, int): argument 1 has unexpected type 'float' setMinimumSize(self, QSize): argument 1 has unexpected type 'float'

After patching /usr/share/cadence/src/canvaspreviewframe.py with [(https://github.com/falkTX/Cadence/commit/56b078f660fd0b98afc9181aa7bb261e82db4be4)]

I got this

~$ claudia Using Tray Engine 'Qt' Traceback (most recent call last): File "/usr/share/cadence/src/patchcanvas.py", line 2483, in paint painter.drawRect(0, 0, self.p_width, self.p_height) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'int' drawRect(self, int, int, int, int): argument 4 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'int' QPainter::end: Painter ended with 2 saved states Traceback (most recent call last): File "/usr/share/cadence/src/patchcanvas.py", line 2483, in paint painter.drawRect(0, 0, self.p_width, self.p_height) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'int' drawRect(self, int, int, int, int): argument 4 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'int' QPainter::end: Painter ended with 2 saved states Traceback (most recent call last): File "/usr/share/cadence/src/patchcanvas.py", line 2483, in paint painter.drawRect(0, 0, self.p_width, self.p_height) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'int' drawRect(self, int, int, int, int): argument 4 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'int' QPainter::end: Painter ended with 2 saved states Traceback (most recent call last): File "/usr/share/cadence/src/patchcanvas.py", line 2483, in paint painter.drawRect(0, 0, self.p_width, self.p_height) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'int' drawRect(self, int, int, int, int): argument 4 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'int' QPainter::end: Painter ended with 2 saved states Traceback (most recent call last): File "/usr/share/cadence/src/patchcanvas.py", line 2483, in paint painter.drawRect(0, 0, self.p_width, self.p_height) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'int' drawRect(self, int, int, int, int): argument 4 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'int' QPainter::end: Painter ended with 2 saved states Traceback (most recent call last): File "/usr/share/cadence/src/patchcanvas.py", line 2483, in paint painter.drawRect(0, 0, self.p_width, self.p_height) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'int' drawRect(self, int, int, int, int): argument 4 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'int' QPainter::end: Painter ended with 2 saved states 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? 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? 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? 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? QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it? Traceback (most recent call last): File "/usr/share/cadence/src/patchcanvas.py", line 2483, in paint painter.drawRect(0, 0, self.p_width, self.p_height) TypeError: arguments did not match any overloaded call: drawRect(self, QRectF): argument 1 has unexpected type 'int' drawRect(self, int, int, int, int): argument 4 has unexpected type 'float' drawRect(self, QRect): argument 1 has unexpected type 'int' QPainter::end: Painter ended with 2 saved states Speicherzugriffsfehler (Speicherabzug geschrieben)

Claudia GUI is opening after patching again, but only a right-click on a room end up with previous message.

mvdev0 avatar Jun 03 '22 15:06 mvdev0

I need to do a new release for this, but I need to be able to reproduce the issue which is not something that happens on 20.04, only 22.04 and up. So it is time to get an extra SSD to install 22.04 on it, while keeping the old things for work.. Let's see if we get this next week.

falkTX avatar Jun 03 '22 15:06 falkTX

Thanks falkTX!

mvdev0 avatar Jun 03 '22 16:06 mvdev0

Reproduced on latest Obarun (Arch-Based) Linux from cadence-claudia AUR package, with freshly-built dependencies.

loquesangra avatar Aug 02 '22 03:08 loquesangra

However, updating the package to 0.9.2 makes it work!

loquesangra avatar Aug 02 '22 03:08 loquesangra

However, updating the package to 0.9.2 makes it work!

how can i update it !

eyagass99 avatar Sep 01 '22 00:09 eyagass99