Bug 392406 - Krita 4.1 pre Alpha and 4.0 crash on startup on Windows 10
Summary: Krita 4.1 pre Alpha and 4.0 crash on startup on Windows 10
Status: RESOLVED DUPLICATE of bug 392227
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 4.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-27 12:13 UTC by Markus
Modified: 2018-05-08 11:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2018-03-27 12:13:27 UTC
After a while during startup, I get this skript error and then Krita Crashes.

IndexError
Python 3.6.2: python
Tue Mar 27 14:02:43 2018

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>)
   10         super().__init__(_id, _dockPosition)
   11         self.klass = _klass
   12 
   13     def createDockWidget(self):
   14         return self.klass()
self = <krita.dockwidgetfactory.DockWidgetFactory object>
self.klass = <class 'palette_docker.palette_docker.Palette_Docker'>

 C:\Program Files\Krita (x64)\share\krita\pykrita\palette_docker\palette_docker.py in __init__(self=<palette_docker.palette_docker.Palette_Docker object>)
   48             self.cmb_palettes.model().sort(0)
   49 
   50         self.currentPalette = Palette(allPalettes[list(allPalettes.keys())[0]])
   51         self.cmb_palettes.currentTextChanged.connect(self.slot_paletteChanged)
   52         layout.addWidget(self.cmb_palettes)  # add combobox to the layout
self = <palette_docker.palette_docker.Palette_Docker object>
self.currentPalette undefined
global Palette = <class 'PyKrita.krita.Palette'>
allPalettes = {}
builtinlist = <class 'list'>
allPalettes.keys = <built-in method keys of dict object>
IndexError: list index out of range
    __cause__ = None
    __class__ = <class 'IndexError'>
    __context__ = None
    __delattr__ = <method-wrapper '__delattr__' of IndexError object>
    __dict__ = {}
    __dir__ = <built-in method __dir__ of IndexError object>
    __doc__ = 'Sequence index out of range.'
    __eq__ = <method-wrapper '__eq__' of IndexError object>
    __format__ = <built-in method __format__ of IndexError object>
    __ge__ = <method-wrapper '__ge__' of IndexError object>
    __getattribute__ = <method-wrapper '__getattribute__' of IndexError object>
    __gt__ = <method-wrapper '__gt__' of IndexError object>
    __hash__ = <method-wrapper '__hash__' of IndexError object>
    __init__ = <method-wrapper '__init__' of IndexError object>
    __init_subclass__ = <built-in method __init_subclass__ of type object>
    __le__ = <method-wrapper '__le__' of IndexError object>
    __lt__ = <method-wrapper '__lt__' of IndexError object>
    __ne__ = <method-wrapper '__ne__' of IndexError object>
    __new__ = <built-in method __new__ of type object>
    __reduce__ = <built-in method __reduce__ of IndexError object>
    __reduce_ex__ = <built-in method __reduce_ex__ of IndexError object>
    __repr__ = <method-wrapper '__repr__' of IndexError object>
    __setattr__ = <method-wrapper '__setattr__' of IndexError object>
    __setstate__ = <built-in method __setstate__ of IndexError object>
    __sizeof__ = <built-in method __sizeof__ of IndexError object>
    __str__ = <method-wrapper '__str__' of IndexError object>
    __subclasshook__ = <built-in method __subclasshook__ of type object>
    __suppress_context__ = False
    __traceback__ = <traceback object>
    args = ('list index out of range',)
    with_traceback = <built-in method with_traceback of IndexError 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 14, in createDockWidget
    return self.klass()
  File "C:\Program Files\Krita (x64)\share\krita\pykrita\palette_docker\palette_docker.py", line 50, in __init__
    self.currentPalette = Palette(allPalettes[list(allPalettes.keys())[0]])
IndexError: list index out of range
Comment 1 Halla Rempt 2018-03-27 12:15:20 UTC

*** This bug has been marked as a duplicate of bug 392227 ***