https://bugs.kde.org/show_bug.cgi?id=475261
Bug ID: 475261 Summary: when i used dock(comic manager) and create a new page, krita crashed. Classification: Applications Product: krita Version: 5.1.5 Platform: Manjaro OS: Linux Status: REPORTED Severity: grave Priority: NOR Component: Dockers Assignee: krita-bugs-n...@kde.org Reporter: francoma...@gmail.com Target Milestone: --- Created attachment 162107 --> https://bugs.kde.org/attachment.cgi?id=162107&action=edit creenshot 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. open proyect of comic manager 2. create a new page 3. crash OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS sostko@sostko-manjaro OS: Manjaro 23.0.3 Uranos Kernel: x86_64 Linux 6.5.5-AMD Shell: zsh 5.9 Resolution: 1366x768 DE: KDE 5.110.0 / Plasma 5.27.8 CPU: AMD Ryzen 5 5600X 6-Core @ 12x 3.7GHz GPU: AMD Radeon RX 550 / 550 Series (polaris12, LLVM 16.0.6, DRM 3.54, 6.5.5-AMD) RAM: 3015MiB / 15913MiB Qt Version: 5.15.10. ADDITIONAL INFORMATION TypeError Python 3.11.5: /usr/bin/python3 Fri Oct 6 00:10:22 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. /usr/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 = 59.5 topSizeThumbnail = 1.0 imageSize = PyQt5.QtCore.QSize(9, 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> __getstate__ = <built-in method __getstate__ 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> add_note = <built-in method add_note of TypeError 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 "/usr/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.