https://bugs.kde.org/show_bug.cgi?id=469220
Bug ID: 469220
Summary: Comics Manager: Can't open Project File
Classification: Applications
Product: krita
Version: 5.1.5
Platform: Flatpak
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Dockers
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
STEPS TO REPRODUCE
1. Click "Open Project" Button
2. Select ".json" Project File
OBSERVED RESULT
Script Error Window, on closing the window it reopens again.
EXPECTED RESULT
The Project File is opened and the thumbnails for the pages load in the docker.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 38, Linux (x86_64) release 6.2.13-300.fc38.x86_64
Qt Version: 5.15.7
ADDITIONAL INFORMATION
Error Log:
TypeError
Python 3.10.6: /usr/bin/python3
Mon May 1 15:36:27 2023
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/app/share/krita/pykrita/comics_project_management_tools/comics_project_manager_docker.py
in
paint(self=<comics_project_management_tools.comics_project_manager_docker.comic_page_delegate
object>, painter=<PyQt5.QtGui.QPainter object>,
option=<PyQt5.QtWidgets.QStyleOptionViewItem object>,
index=<PyQt5.QtCore.QModelIndex object>)
94 thumbImage = icon.pixmap(imageSizeHighDPI).toImage()
95 thumbImage.setDevicePixelRatio(self.devicePixelRatioF)
96 painter.drawImage(QRect(leftSideThumbnail, topSizeThumbnail,
imageSize.width(), imageSize.height()), thumbImage)
97
98 labelWidth = rect.width()-decoratonSize.width()-(margin*3)
painter = <PyQt5.QtGui.QPainter object>
painter.drawImage = <built-in method drawImage of QPainter object>
global QRect = <class 'PyQt5.QtCore.QRect'>
leftSideThumbnail = 25.0
topSizeThumbnail = 1.0
imageSize = PyQt5.QtCore.QSize(78, 128)
imageSize.width = <built-in method width of QSize object>
imageSize.height = <built-in method height of QSize object>
thumbImage = <PyQt5.QtGui.QImage object>
TypeError: arguments did not match any overloaded call:
QRect(): too many arguments
QRect(aleft: int, atop: int, awidth: int, aheight: int): argument 1 has
unexpected type 'float'
QRect(atopLeft: QPoint, abottomRight: QPoint): argument 1 has unexpected type
'float'
QRect(atopLeft: QPoint, asize: QSize): argument 1 has unexpected type 'float'
QRect(a0: QRect): argument 1 has unexpected type 'float'
__cause__ = None
__class__ = <class 'TypeError'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of TypeError object>
__dict__ = {}
__dir__ = <built-in method __dir__ of TypeError object>
__doc__ = 'Inappropriate argument type.'
__eq__ = <method-wrapper '__eq__' of TypeError object>
__format__ = <built-in method __format__ of TypeError object>
__ge__ = <method-wrapper '__ge__' of TypeError object>
__getattribute__ = <method-wrapper '__getattribute__' of TypeError object>
__gt__ = <method-wrapper '__gt__' of TypeError object>
__hash__ = <method-wrapper '__hash__' of TypeError object>
__init__ = <method-wrapper '__init__' of TypeError object>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of TypeError object>
__lt__ = <method-wrapper '__lt__' of TypeError object>
__ne__ = <method-wrapper '__ne__' of TypeError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of TypeError object>
__reduce_ex__ = <built-in method __reduce_ex__ of TypeError object>
__repr__ = <method-wrapper '__repr__' of TypeError object>
__setattr__ = <method-wrapper '__setattr__' of TypeError object>
__setstate__ = <built-in method __setstate__ of TypeError object>
__sizeof__ = <built-in method __sizeof__ of TypeError object>
__str__ = <method-wrapper '__str__' of TypeError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
args = ("arguments did not match any overloaded call:\n Q...0: QRect):
argument 1 has unexpected type 'float'",)
with_traceback = <built-in method with_traceback of TypeError object>
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File
"/app/share/krita/pykrita/comics_project_management_tools/comics_project_manager_docker.py",
line 96, in paint
painter.drawImage(QRect(leftSideThumbnail, topSizeThumbnail,
imageSize.width(), imageSize.height()), thumbImage)
TypeError: arguments did not match any overloaded call:
QRect(): too many arguments
QRect(aleft: int, atop: int, awidth: int, aheight: int): argument 1 has
unexpected type 'float'
QRect(atopLeft: QPoint, abottomRight: QPoint): argument 1 has unexpected type
'float'
QRect(atopLeft: QPoint, asize: QSize): argument 1 has unexpected type 'float'
QRect(a0: QRect): argument 1 has unexpected type 'float'
--
You are receiving this mail because:
You are watching all bug changes.