Krita 5.2 Release Candidate is out! Please help us in another round of testing!

Awesome, thanks.

I am getting these errors when I start it. Is this the release related ?

TypeError
Python 3.10.7: C:\krita_nightly\bin\krita.exe
Tue Sep 19 20:33:00 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.

 C:\krita_nightly\lib\krita-python-libs\krita\dockwidgetfactory.py in createDockWidget(self=<krita.dockwidgetfactory.DockWidgetFactory object>)
   14         super(DockWidgetFactory, self).__init__(_id, _dockPosition)
   15         self.klass = _klass
   16 
   17     def createDockWidget(self):
   18         return self.klass()
self = <krita.dockwidgetfactory.DockWidgetFactory object>
self.klass = <class 'pigment_o.pigment_o_docker.PigmentO_Docker'>

 C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_docker.py in __init__(self=<pigment_o.pigment_o_docker.PigmentO_Docker object>)
  327         self.Harmonys()
  328         self.Color_ofthe_Day()
  329         self.Panels()
  330         self.Gamut()
  331         self.Dots()
self = <pigment_o.pigment_o_docker.PigmentO_Docker object>
self.Panels = <bound method PigmentO_Docker.Panels of <pigment_o.pigment_o_docker.PigmentO_Docker object>>

 C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_docker.py in Panels(self=<pigment_o.pigment_o_docker.PigmentO_Docker object>)
  551 
  552         # Panel UVD
  553         self.panel_uvd = Panel_UVD(self.layout.panel_uvd)
  554         self.panel_uvd.SIGNAL_UVD_VALUE.connect(self.Signal_UVD)
  555         self.panel_uvd.SIGNAL_UVD_RELEASE.connect(self.Pigment_Release)
self = <pigment_o.pigment_o_docker.PigmentO_Docker object>
self.panel_uvd undefined
global Panel_UVD = <class 'pigment_o.pigment_o_modulo.Panel_UVD'>
self.layout = <PyQt5.QtWidgets.QWidget object>
self.layout.panel_uvd = <PyQt5.QtWidgets.QWidget object>

 C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_modulo.py in __init__(self=<pigment_o.pigment_o_modulo.Panel_UVD object>, parent=<PyQt5.QtWidgets.QWidget object>)
  324         # Start
  325         self.Variables()
  326         self.Cursor()
  327         # Size Hint Expand
  328         self.setSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
self = <pigment_o.pigment_o_modulo.Panel_UVD object>
self.Cursor = <bound method Panel_UVD.Cursor of <pigment_o.pigment_o_modulo.Panel_UVD object>>

 C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_modulo.py in Cursor(self=<pigment_o.pigment_o_modulo.Panel_UVD object>)
  357         self.cursor_size = 20
  358         self.cursor_half = self.cursor_size / 2
  359         self.cursor_lmb.setGeometry(QtCore.QRect(-self.cursor_half, -self.cursor_half, self.cursor_size, self.cursor_size))
  360         self.cursor_rmb.setGeometry(QtCore.QRect(-self.cursor_half, -self.cursor_half, self.cursor_size, self.cursor_size))
  361         self.cursor_rmb.resize(0, 0)
self = <pigment_o.pigment_o_modulo.Panel_UVD object>
self.cursor_lmb = <PyQt5.QtSvg.QSvgWidget object>
self.cursor_lmb.setGeometry = <built-in method setGeometry of QSvgWidget object>
global QtCore = <module 'PyQt5.QtCore' from 'c:\\krita_nightly\\lib\\site-packages\\PyQt5\\QtCore.pyd'>
QtCore.QRect = <class 'PyQt5.QtCore.QRect'>
self.cursor_half = 10.0
self.cursor_size = 20
TypeError: arguments did not match any overloaded call:
  QRect(): too many arguments
  QRect(int, int, int, int): argument 1 has unexpected type 'float'
  QRect(QPoint, QPoint): argument 1 has unexpected type 'float'
  QRect(QPoint, QSize): argument 1 has unexpected type 'float'
  QRect(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...ct(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 "C:\krita_nightly\lib\krita-python-libs\krita\dockwidgetfactory.py", line 18, in createDockWidget
    return self.klass()
  File "C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_docker.py", line 329, in __init__
    self.Panels()
  File "C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_docker.py", line 553, in Panels
    self.panel_uvd = Panel_UVD(self.layout.panel_uvd)
  File "C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_modulo.py", line 326, in __init__
    self.Cursor()
  File "C:\Users\USER\AppData\Roaming\krita\pykrita\pigment_o\pigment_o_modulo.py", line 359, in Cursor
    self.cursor_lmb.setGeometry(QtCore.QRect(-self.cursor_half, -self.cursor_half, self.cursor_size, self.cursor_size))
TypeError: arguments did not match any overloaded call:
  QRect(): too many arguments
  QRect(int, int, int, int): argument 1 has unexpected type 'float'
  QRect(QPoint, QPoint): argument 1 has unexpected type 'float'
  QRect(QPoint, QSize): argument 1 has unexpected type 'float'
  QRect(QRect): argument 1 has unexpected type 'float'

Are you using the Pigment.O plugin? If you are, the developer @EyeOdin said in this post to uninstall the plugin before updating to Krita 5.2 as the new python version breaks the plugin and there hasen’t been a bug fix for it yet. The creator also stated all bug reports pertaining to that will be ignored.

2 Likes

Last month I got a new PC, and I installed the beta of 5.2 on it. I made a backup of my resources folder and Kritarc file. I placed those back on my new PC and Krita works fine, with all my settings intact.

Except I get an error at each startup:

An exception occurred while running the script.
TypeError: addMSecs(self, int): argument 1 has unexpected type 'float'

TypeError
Python 3.10.7: C:\Program Files\Krita (x64)\bin\krita.exe
Wed Sep 20 11:21:14 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.

 C:\Program Files\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py in createDockWidget(self=<krita.dockwidgetfactory.DockWidgetFactory object>)
   14         super(DockWidgetFactory, self).__init__(_id, _dockPosition)
   15         self.klass = _klass
   16 
   17     def createDockWidget(self):
   18         return self.klass()
self = <krita.dockwidgetfactory.DockWidgetFactory object>
self.klass = <class 'imagine_board.imagine_board_docker.ImagineBoard_Docker'>

 C:\Users\Gremr\AppData\Roaming\krita\pykrita\imagine_board\imagine_board_docker.py in __init__(self=<imagine_board.imagine_board_docker.ImagineBoard_Docker object>)
   96         self.Style()
   97         self.Extension()
   98         self.Settings()
   99 
  100     def Variables(self):
self = <imagine_board.imagine_board_docker.ImagineBoard_Docker object>
self.Settings = <bound method ImagineBoard_Docker.Settings of <i...imagine_board_docker.ImagineBoard_Docker object>>

 C:\Users\Gremr\AppData\Roaming\krita\pykrita\imagine_board\imagine_board_docker.py in Settings(self=<imagine_board.imagine_board_docker.ImagineBoard_Docker object>)
  420             Krita.instance().writeSetting("Imagine Board", "slideshow_time", str(1000) )
  421         else:
  422             tempo = QTime(0,0,0).addMSecs(float(ms))
  423             self.dialog.menu_slideshow_time.setTime(tempo)
  424         # Grid U
tempo undefined
global QTime = <class 'PyQt5.QtCore.QTime'>
).addMSecs = <built-in function addMSecs>
builtinfloat = <class 'float'>
ms = '1000'
TypeError: addMSecs(self, int): 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 = ("addMSecs(self, int): 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 "C:\Program Files\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py", line 18, in createDockWidget
    return self.klass()
  File "C:\Users\Gremr\AppData\Roaming\krita\pykrita\imagine_board\imagine_board_docker.py", line 98, in __init__
    self.Settings()
  File "C:\Users\Gremr\AppData\Roaming\krita\pykrita\imagine_board\imagine_board_docker.py", line 422, in Settings
    tempo = QTime(0,0,0).addMSecs(float(ms))
TypeError: addMSecs(self, int): argument 1 has unexpected type 'float'

I have no extra scripts installed, but I did have some on my old machine, but I can’t remember which ones.
I did rename Kritarc, and Krita started up with no errors. So my guess is there is something in the Kritarc file that tries to look for a script.
I have no idea what to look for, and I would prefer to not have to set up Krita again.

Is there a way to fix this without reverting to the default Kritarc?

Thanks

@Gremriel Does it work with no problems on your new PC when using version 5.1.5?

The error’s being caused by the Imagine Board plugin needing to be updated for 5.2. You can disable the plugin from Preferences->Python Plugin Manager.
(The setting to change in kritarc would be

[python]
enable_imagine_board=true

, to false.)
When you copied your resource folder, you also copied your plugins. They’re in the pykrita subfolder.

3 Likes

There was a post that indicated that the API was changed in 5.2 and it broke some plugins, so I removed all the plugins I installed in my pykrita folder and kept the ones that are already in Krita.

Thanks, that fixed it.

It seems 5.2 wont be pushed for android as that bug was halting all other platforms version. Which sucks but its really getting difficult to debug partly because devs dont have that kind of device and logs are not showing much

2 Likes

The problem is none of the developers have been able to reproduce that issue. That makes it very, very difficult to figure out what’s causing it and how to fix it, as it’s seemingly random and device/setup specific, with no useful information in the crashlog.

Until someone can pinpoint the cause, by figuring out how changing user fixes it, or throwing a debugger at it, or bisecting it, it’s unlikely to be fixed, unfortunately. And until someone has any idea how to fix it, making the release wait on a fix wouldn’t accomplish much. :frowning:

3 Likes

Maybe there should be instructions on how to properly go back to the previous working version if the bug occurs. :person_shrugging:

1 Like

Was so excited to be using the 5.2 Release Candidate and was loving that it hadn’t crashed on me for several days…until just recently.

Now I’m afraid it just randomly crashes. I could be in the middle of drawing, changing settings, staring at a layer and it will crash. :disappointed_relieved:

Tried clearing cache, clearing entire data, uninstalling completely and reinstalling…several times, and it seems to actually get worse instead of better.

On Galaxy Tab s9 Ultra.

I’m gonna be one sad panda if the android version doesn’t get released at the same time as the other OS’s. I was getting so excited using this with all the updates.

Anyone having issue with stylus / pen in RC2?

Im using Huion Kamvas 22 plus stylus and Krita rc2 portable from zip [also the latest nightly] , whenever i start it my stylus doesnt register on all dockers, menu bars etc… but works on the canvas and the tablet tester. mouse works fine there too.

I also tested with all plugins off just to be sure its not any plugins messing up. Will try again this afternoon.

i tested and opened my 5.1.5 krita and it works fine there. :sweat_smile:

This is kind of the gist, developers dont have a device with the said issue and we as a user are not able to help enough to do an RCA.

The new user stability is a shocker which could mean something is clashing with krita in regular user which should be unlikely because all apps on android are container based

1 Like

I can feel your pain, i have struggled this from the nightly from beginning of this year. And has not been settled yet

1 Like

The render animation does not remember the last render settings. Every time I open it, it defaults to render as mkv, and if I need to render as gif multiple times, I have to change to render as gif multiple times.

1 Like

Hello @big11 and welcome to the forum :slight_smile:

Thank you for pointing this out.

I have the same pen display and no problems here with the stylus. But I’m still on RC1. Are you using the latest Huion driver? Maybe try the device diagnosis feature of the driver?

still not working in RC2, now im suspecting maybe its the windows update that happened after my pc boot up yesterday after it shutdown due to power outage.
weird that its only on RC2, current nightly happening. Other wise pen is ok on the canvas and table tester but just can’t seem to work on the dockers and menus.

Sorry I’m confusing myself. I have RC2 installed and my pen display/stylus is working normally. I experienced problems with toolbars and dockers in the beta releases. It seemed that they had addressed some of that with the latest RC2. The stuff I’m seeing now is clearly program related. I mentioned it earlier up the list but the Tool Options docker is missing completely. I understand they’re working on it…

Couple minor things about the Welcome/Opening screen. I like where it’s going. But…

  1. That begging for money advert at the top… of course you should donate, but if we’re already donating on a monthly basis can that be removed please?
  2. The latest project tiles… when you click on one, the one you want to open, they all get highlighted. That’s been going on since before 5.2
  3. There used to be a ā€œdrag image hereā€ notification box in that same area. Yes you can still drag images into the middle section but it’s confusing to newbies. It was to me when I first opened the beta ver.