Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

setMinimumSize : unexpected type 'float' #347

Open
AnasGhrab opened this issue May 21, 2022 · 7 comments
Open

setMinimumSize : unexpected type 'float' #347

AnasGhrab opened this issue May 21, 2022 · 7 comments

Comments

@AnasGhrab
Copy link

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

WiredG1 commented May 27, 2022

Having the same issue

@mvdev0
Copy link

mvdev0 commented Jun 3, 2022

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.

@falkTX
Copy link
Owner

falkTX commented Jun 3, 2022

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.

@mvdev0
Copy link

mvdev0 commented Jun 3, 2022

Thanks falkTX!

@loquesangra
Copy link

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

@loquesangra
Copy link

However, updating the package to 0.9.2 makes it work!

@eyagass99
Copy link

However, updating the package to 0.9.2 makes it work!

how can i update it !

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

6 participants