Bug 475261 - when i used dock(comic manager) and create a new page, krita crashed.
Summary: when i used dock(comic manager) and create a new page, krita crashed.
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Dockers (show other bugs)
Version: 5.1.5
Platform: Manjaro Linux
: NOR grave
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-06 03:18 UTC by francomasip@gmail.com
Modified: 2023-11-05 03:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
creenshot (198.96 KB, image/png)
2023-10-06 03:18 UTC, francomasip@gmail.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description francomasip@gmail.com 2023-10-06 03:18:26 UTC
Created attachment 162107 [details]
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'
Comment 1 Rebecca Breu 2023-10-06 14:26:52 UTC
It looks like you are using the Krita version from your distribution's package manager? Please try the appimage  directly from krita.org instead.
Comment 2 Bug Janitor Service 2023-10-21 03:45:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-11-05 03:45:43 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!