[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1040586: marked as done (krita: Krita Comics Manager crashes creating new template or page)



Your message dated Sat, 17 Feb 2024 21:55:13 +0100
with message-id <CAP5g_ZUBJs1xMcRGdpnuGYwrdGujAkcgEj1TvdeBKWDLatLVUA@mail.gmail.com>
and subject line Re: krita: Krita Comics Manager crashes creating new template or page
has caused the Debian Bug report #1040586,
regarding krita: Krita Comics Manager crashes creating new template or page
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1040586: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040586
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: krita
Version: 1:5.1.5+dfsg-2
Severity: normal
X-Debbugs-Cc: fenixian@gmail.com

Dear Maintainer,


   * What led up to the situation?

    Creating new page with Krita Comic Manager Docker plugin throws exceptions:

   * How reproduce the error:

     1) Open Comics Manager Docker from Settings/Dockers.
     2) Create new project.
     3) Create new page and Create Template. We get error.

      If you paste a previous template, you get other error creating a new page.


  These is the errors:

   1) Creating a new template throws:

----
TypeError
Python 3.11.4: /usr/bin/python3
Fri Jul  7 20:12:19 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_template_dialog.py
in
slot_create_template(self=<comics_project_management_tools.comics_template_dialog.comics_template_dialog
object>)
  112
  113         if create.exec_() == QDialog.Accepted:
  114             if (create.prepare_krita_file()):
  115                 self.fill_templates()
  116
create =
<comics_project_management_tools.comics_template_dialog.comics_template_create
object>
create.prepare_krita_file = <bound method
comics_template_create.prepare_kri...s_template_dialog.comics_template_create
object>>

/usr/share/krita/pykrita/comics_project_management_tools/comics_template_dialog.py
in
prepare_krita_file(self=<comics_project_management_tools.comics_template_dialog.comics_template_create
object>)
  298         mB =
self.marginBottomUnit.pixelsForUnit(self.marginBottom.value(),
self.DPI.value())
  299
  300         template = Application.createDocument((wBase + bL + bR), (hBase +
bT + bB), self.templateName.text(), "RGBA", "U8", "sRGB built-in",
self.DPI.value())
  301
  302         backgroundName = i18n("Background")
template undefined
builtinApplication = <PyKrita.krita.Krita object>
Application.createDocument = <built-in method createDocument of Krita object>
wBase = 2480.314960629921
bL = 59.055118110236215
bR = 59.055118110236215
hBase = 3507.874015748031
bT = 118.11023622047243
bB = 118.11023622047243
self =
<comics_project_management_tools.comics_template_dialog.comics_template_create
object>
self.templateName = <PyQt5.QtWidgets.QLineEdit object>
self.templateName.text = <built-in method text of QLineEdit object>
self.DPI = <PyQt5.QtWidgets.QSpinBox object>
self.DPI.value = <built-in method value of QSpinBox object>
TypeError: createDocument(self, int, int, str, str, str, str, float): 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 = ("createDocument(self, int, int, str, str, str, str, float):
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_template_dialog.py",
line 114, in slot_create_template
    if (create.prepare_krita_file()):
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/usr/share/krita/pykrita/comics_project_management_tools/comics_template_dialog.py",
line 300, in prepare_krita_file
    template = Application.createDocument((wBase + bL + bR), (hBase + bT + bB),
self.templateName.text(), "RGBA", "U8", "sRGB built-in", self.DPI.value())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: createDocument(self, int, int, str, str, str, str, float): argument
1 has unexpected type 'float'
----


  2) Creating a page using a previous template throws:


----
TypeError
Python 3.11.4: /usr/bin/python3
Fri Jul  7 20:15:31 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 = 19.0
topSizeThumbnail = 4.0
imageSize = PyQt5.QtCore.QSize(90, 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'
----


I suspect this error is maybe related with some PyQt5 version incompatibility.



Thanks!


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.3.0-1-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages krita depends on:
ii  krita-data            1:5.1.5+dfsg-2
ii  libc6                 2.37-3
ii  libexiv2-27           0.27.6-1
ii  libfftw3-double3      3.3.10-1
ii  libgcc-s1             13.1.0-6
ii  libgif7               5.2.1-2.5
ii  libgsl27              2.7.1+dfsg-5
ii  libheif1              1.16.2-1+b1
ii  libimath-3-1-29       3.1.6-1
ii  libjpeg62-turbo       1:2.1.5-2
ii  libjxl0.7             0.7.0-10
ii  libkf5completion5     5.107.0-1
ii  libkf5configcore5     5.107.0-1
ii  libkf5configgui5      5.107.0-1
ii  libkf5coreaddons5     5.107.0-1
ii  libkf5crash5          5.107.0-1
ii  libkf5guiaddons5      5.107.0-1
ii  libkf5i18n5           5.107.0-1
ii  libkf5itemviews5      5.107.0-1
ii  libkf5widgetsaddons5  5.107.0-1
ii  libkf5windowsystem5   5.107.0-1
ii  libkseexpr4           4.0.4.0-4
ii  libkseexprui4         4.0.4.0-4
ii  liblcms2-2            2.14-2
ii  libmypaint-1.5-1      1.6.0-2
ii  libopencolorio2.1     2.1.2+dfsg1-4+b3
ii  libopenexr-3-1-30     3.1.5-5
ii  libopenjp2-7          2.5.0-2
ii  libpng16-16           1.6.40-1
ii  libpoppler-qt5-1      22.12.0-2+b1
ii  libpython3.11         3.11.4-1
ii  libqt5core5a          5.15.8+dfsg-12
ii  libqt5dbus5           5.15.8+dfsg-12
ii  libqt5gui5            5.15.8+dfsg-12
ii  libqt5multimedia5     5.15.8-2
ii  libqt5network5        5.15.8+dfsg-12
ii  libqt5printsupport5   5.15.8+dfsg-12
ii  libqt5qml5            5.15.8+dfsg-3
ii  libqt5quick5          5.15.8+dfsg-3
ii  libqt5quickwidgets5   5.15.8+dfsg-3
ii  libqt5sql5            5.15.8+dfsg-12
ii  libqt5sql5-sqlite     5.15.8+dfsg-12
ii  libqt5svg5            5.15.8-3
ii  libqt5widgets5        5.15.8+dfsg-12
ii  libqt5x11extras5      5.15.8-2
ii  libqt5xml5            5.15.8+dfsg-12
ii  libquazip5-1          0.9.1-3
ii  libraw20              0.20.2-2.1
ii  libstdc++6            13.1.0-6
ii  libtiff6              4.5.1-1
ii  libturbojpeg0         1:2.1.5-2
ii  libwebp7              1.2.4-0.2
ii  libx11-6              2:1.8.6-1
ii  zlib1g                1:1.2.13.dfsg-1

Versions of packages krita recommends:
ii  krita-gmic               2.9.4-4+b4
ii  python3-pyqt5            5.15.9+dfsg-1
ii  python3-sip              4.19.25+dfsg-5+b1
ii  qml-module-qtmultimedia  5.15.8-2

Versions of packages krita suggests:
ii  colord      1.4.6-2.2
ii  ffmpeg      7:5.1.3-1
pn  krita-l10n  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 1:5.2.2+dfsg-2

Dear maintainer:

It looks last krita or Python version fixed this problem.

Thanks!

--- End Message ---

Reply to: