Bug 252332 - Krita crashes on start
Summary: Krita crashes on start
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.0
Platform: Microsoft Windows Other
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-25 14:21 UTC by beojan
Modified: 2018-03-22 13:50 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
My installation paths for Krita+OpenGTL (10.42 KB, application/x-gzip)
2010-10-26 21:10 UTC, Dmitry Kazakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description beojan 2010-09-25 14:21:38 UTC
Application: krita (2.3 Beta 1)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-rc5 i686
Distribution: Beejex 2010 (Mayfair)

-- Information about the crash:
- What I was doing when the application crashed:
I had just started krita
- Custom settings of the application:
 Newly compiled koffice, svn revision 1179365
 Until the last time koffice was compiled, this crash was not experienced

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb5a88710 (LWP 31834))]

Thread 3 (Thread 0xabd7bb70 (LWP 31842)):
#0  0xb782a424 in __kernel_vsyscall ()
#1  0xb5d6bf7f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb6193e0d in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb6e4e497 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb6e49d5f in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#5  0xb251f3c3 in KisTileDataPooler::waitForWork (this=0xb475730) at /root/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:127
#6  0xb251f623 in KisTileDataPooler::run (this=0xb475730) at /root/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:156
#7  0xb6e4d8d9 in ?? () from /usr/lib/libQtCore.so.4
#8  0xb5d67955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb6186e7e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xab57ab70 (LWP 31843)):
#0  0xb782a424 in __kernel_vsyscall ()
#1  0xb5d6c482 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb6193e64 in pthread_cond_timedwait () from /lib/i686/cmov/libc.so.6
#3  0xb6e4ce31 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6e4cf73 in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#5  0xb253d114 in KisTileDataSwapper::run (this=0xb47574c) at /root/koffice/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:95
#6  0xb6e4d8d9 in ?? () from /usr/lib/libQtCore.so.4
#7  0xb5d67955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#8  0xb6186e7e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb5a88710 (LWP 31834)):
[KCrash Handler]
#7  0xb2771f79 in KisShapeSelection::shapeManager (this=0x51) at /root/koffice/krita/ui/flake/kis_shape_selection.cpp:386
#8  0xb2725fdf in KisCanvas2::shapeManager (this=0xbf81348) at /root/koffice/krita/ui/canvas/kis_canvas2.cpp:261
#9  0xb2760a28 in KisNodeShape::editabilityChanged (this=0xd21d7b8) at /root/koffice/krita/ui/flake/kis_node_shape.cpp:163
#10 0xb2760f7b in KisNodeShape::KisNodeShape (this=0xd21d7b8, parent=0x95b7130, node=...) at /root/koffice/krita/ui/flake/kis_node_shape.cpp:57
#11 0xb277ca1a in KisLayerMapVisitor::visitLeafNodeLayer (this=0xbffb51ac, layer=0xd1ae568) at /root/koffice/krita/ui/flake/kis_layermap_visitor.cpp:130
#12 0xb25dbf68 in KisPaintLayer::accept (this=0xd1ae568, v=...) at /root/koffice/krita/image/kis_paint_layer.cc:175
#13 0xb25d0040 in KisNodeVisitor::visitAll (this=0xbffb51ac, node=0xd19c830, breakOnFail=false) at /root/koffice/krita/image/kis_node_visitor.cpp:25
#14 0xb277c09a in KisLayerMapVisitor::visit (this=0xbffb51ac, layer=0xd19c830) at /root/koffice/krita/ui/flake/kis_layermap_visitor.cpp:86
#15 0xb25a6198 in KisGroupLayer::accept (this=0xd19c830, v=...) at /root/koffice/krita/image/kis_group_layer.cc:143
#16 0xb25d0040 in KisNodeVisitor::visitAll (this=0xbffb51ac, node=0xd1a9c38, breakOnFail=false) at /root/koffice/krita/image/kis_node_visitor.cpp:25
#17 0xb277c09a in KisLayerMapVisitor::visit (this=0xbffb51ac, layer=0xd1a9c38) at /root/koffice/krita/ui/flake/kis_layermap_visitor.cpp:86
#18 0xb25a6198 in KisGroupLayer::accept (this=0xd1a9c38, v=...) at /root/koffice/krita/image/kis_group_layer.cc:143
#19 0xb2766f60 in KisShapeController::setImage (this=0xcf81920, image=...) at /root/koffice/krita/ui/flake/kis_shape_controller.cpp:174
#20 0xb27b2e30 in KisDoc2::completeLoading (this=0x95d8e00, store=0xb2b1408) at /root/koffice/krita/ui/kis_doc2.cc:326
#21 0xb20f60cd in KoDocument::loadNativeFormatFromStoreInternal (this=0x95d8e00, store=0xb2b1408) at /root/koffice/libs/main/KoDocument.cpp:1748
#22 0xb20f725d in KoDocument::loadNativeFormatFromStore (this=0x95d8e00, file=...) at /root/koffice/libs/main/KoDocument.cpp:1632
#23 0xb20f74f3 in KoDocument::loadNativeFormat (this=0x95d8e00, file_=...) at /root/koffice/libs/main/KoDocument.cpp:1612
#24 0xb20f24e5 in KoDocument::openFile (this=0x95d8e00) at /root/koffice/libs/main/KoDocument.cpp:1404
#25 0xb5384559 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#26 0xb20f1151 in KoDocument::openUrl (this=0x95d8e00, _url=...) at /root/koffice/libs/main/KoDocument.cpp:1251
#27 0xb27b39ff in KisDoc2::showStartUpWidget (this=0x95d8e00, parent=0xb1f6108, alwaysShow=<value optimized out>) at /root/koffice/krita/ui/kis_doc2.cc:463
#28 0xb20df725 in KoApplication::start (this=0xbffb5ce0) at /root/koffice/libs/main/KoApplication.cpp:156
#29 0xb580c57a in kdemain (argc=1, argv=0x94cf6a0) at /root/koffice/krita/main.cc:46
#30 0x0804ec39 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2010-09-25 14:23:31 UTC
This is an installation problem probably caused by some old plugins in your installation directory. On the way to 2.3, a couple of plugins were disabled and those might cause crashes when you run a newer koffice. Please clean out your installation directory and try again.
Comment 2 beojan 2010-09-25 17:03:13 UTC
I've tried removing all koffice related files and reinstalling, although I can't clean out the installation directory without deleting a lot more software. The problem still persists. Could you tell me which files I might need to remove
Comment 3 Halla Rempt 2010-09-25 20:17:10 UTC
The easiest trick is to do a "find . -name \*desktop" in the koffice source dir. That gives you a list of desktop files: if you remove all of them and run kbuildsycoca4 you should be safe.
Comment 4 beojan 2010-09-26 19:04:19 UTC
I believe this is not an installation problem, since it persists after following the above steps and removing all koffice files from the installation directory.

New Backtrace

Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0xb3901720 (LWP 12151))]

Thread 3 (Thread 0xac251b70 (LWP 12153)):
#0  0xb776d424 in __kernel_vsyscall ()
#1  0xb49b4f7f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb4a9ce0d in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb7508497 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb7503d5f in QSemaphore::acquire(int) () from /usr/lib/libQtCore.so.4
#5  0xb705d453 in KisTileDataPooler::waitForWork (this=0xbe9a5c8) at /root/df/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:127
#6  0xb705d6b3 in KisTileDataPooler::run (this=0xbe9a5c8) at /root/df/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:156
#7  0xb75078d9 in ?? () from /usr/lib/libQtCore.so.4
#8  0xb49b0955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb4a8fe7e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xaba50b70 (LWP 12154)):
#0  0xb776d424 in __kernel_vsyscall ()
#1  0xb49b4f7f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb4a9ce0d in pthread_cond_wait () from /lib/i686/cmov/libc.so.6
#3  0xb7508497 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb750401a in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQtCore.so.4
#5  0xb707adb0 in KisTileDataSwapper::waitForWork (this=0xbe9a5e4) at /root/df/koffice/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:84
#6  0xb707b1b4 in KisTileDataSwapper::run (this=0xbe9a5e4) at /root/df/koffice/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:90
#7  0xb75078d9 in ?? () from /usr/lib/libQtCore.so.4
#8  0xb49b0955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#9  0xb4a8fe7e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb3901720 (LWP 12151)):
[KCrash Handler]
#7  0xb70e8a8c in KisSharedPtr (this=0xbe92158) at /root/df/koffice/krita/image/kis_shared_ptr.h:102
#8  KisImage::globalSelection (this=0xbe92158) at /root/df/koffice/krita/image/kis_image.cc:223
#9  0xb70f9c3c in KisLayer::selection (this=0xbea9fc8) at /root/df/koffice/krita/image/kis_layer.cc:263
#10 0xb7263f2a in KisCanvas2::shapeManager (this=0xc699e30) at /root/df/koffice/krita/ui/canvas/kis_canvas2.cpp:260
#11 0xb729ea38 in KisNodeShape::editabilityChanged (this=0xd7ecdf0) at /root/df/koffice/krita/ui/flake/kis_node_shape.cpp:163
#12 0xb729ef8b in KisNodeShape::KisNodeShape (this=0xd7ecdf0, parent=0x117aa860, node=...) at /root/df/koffice/krita/ui/flake/kis_node_shape.cpp:57
#13 0xb72baa2a in KisLayerMapVisitor::visitLeafNodeLayer (this=0xbf93468c, layer=0xd772570) at /root/df/koffice/krita/ui/flake/kis_layermap_visitor.cpp:130
#14 0xb711a718 in KisPaintLayer::accept (this=0xd772570, v=...) at /root/df/koffice/krita/image/kis_paint_layer.cc:175
#15 0xb710e7f0 in KisNodeVisitor::visitAll (this=0xbf93468c, node=0xd763550, breakOnFail=false) at /root/df/koffice/krita/image/kis_node_visitor.cpp:25
#16 0xb72ba0aa in KisLayerMapVisitor::visit (this=0xbf93468c, layer=0xd763550) at /root/df/koffice/krita/ui/flake/kis_layermap_visitor.cpp:86
#17 0xb70e4188 in KisGroupLayer::accept (this=0xd763550, v=...) at /root/df/koffice/krita/image/kis_group_layer.cc:147
#18 0xb710e7f0 in KisNodeVisitor::visitAll (this=0xbf93468c, node=0xd760f70, breakOnFail=false) at /root/df/koffice/krita/image/kis_node_visitor.cpp:25
#19 0xb72ba0aa in KisLayerMapVisitor::visit (this=0xbf93468c, layer=0xd760f70) at /root/df/koffice/krita/ui/flake/kis_layermap_visitor.cpp:86
#20 0xb70e4188 in KisGroupLayer::accept (this=0xd760f70, v=...) at /root/df/koffice/krita/image/kis_group_layer.cc:147
#21 0xb72a4f70 in KisShapeController::setImage (this=0xd6d7178, image=...) at /root/df/koffice/krita/ui/flake/kis_shape_controller.cpp:174
#22 0xb72f0e40 in KisDoc2::completeLoading (this=0xa077768, store=0xc51ca70) at /root/df/koffice/krita/ui/kis_doc2.cc:326
#23 0xb6c340cd in KoDocument::loadNativeFormatFromStoreInternal (this=0xa077768, store=0xc51ca70) at /root/df/koffice/libs/main/KoDocument.cpp:1748
#24 0xb6c3525d in KoDocument::loadNativeFormatFromStore (this=0xa077768, file=...) at /root/df/koffice/libs/main/KoDocument.cpp:1632
#25 0xb6c354f3 in KoDocument::loadNativeFormat (this=0xa077768, file_=...) at /root/df/koffice/libs/main/KoDocument.cpp:1612
#26 0xb6c304e5 in KoDocument::openFile (this=0xa077768) at /root/df/koffice/libs/main/KoDocument.cpp:1404
#27 0xb63e4559 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#28 0xb6c2f151 in KoDocument::openUrl (this=0xa077768, _url=...) at /root/df/koffice/libs/main/KoDocument.cpp:1251
#29 0xb72f1a0f in KisDoc2::showStartUpWidget (this=0xa077768, parent=0xbc1e920, alwaysShow=<value optimized out>) at /root/df/koffice/krita/ui/kis_doc2.cc:463
#30 0xb6c1d725 in KoApplication::start (this=0xbf9351c0) at /root/df/koffice/libs/main/KoApplication.cpp:156
#31 0xb773f57a in kdemain (argc=1, argv=0xbf9352d4) at /root/df/koffice/krita/main.cc:46
#32 0x0804881b in main (argc=1, argv=0xbf9352d4) at /root/df/koffice/build/krita/krita_dummy.cpp:3
Comment 5 Sven Langkamp 2010-09-27 00:02:44 UTC
Can you try to remove the kritarc? It should be in ~/.kde/share/config/kritarc
Comment 6 Halla Rempt 2010-10-04 19:16:16 UTC
Another idea is to do a make clean in koffice/krita/image and then make again; having stale .o files there can cause crashes like in your last backtrace.
Comment 7 LukasT 2010-10-05 12:57:02 UTC
Maybe this can be first run image problem? Can you run "krita some-image-on-your-disk.png" ?
Comment 8 Dmitry Kazakov 2010-10-26 21:03:47 UTC
Btw, just for you know, after my commit 1189045 on Sunday KisLayerMapVisitor does not exist anymore. So i don't think this bug is valid anyway.

beojan, could you check this bug with the updated trunk?
Comment 9 Dmitry Kazakov 2010-10-26 21:10:00 UTC
Created attachment 52890 [details]
My installation paths for Krita+OpenGTL

In the attachment you can see my paths for Krita+OpenGTL installation.
Steps to clean the build:
1) delete (move out) files form the list
2) cd <koffice_dir>/krita/image
3) make clean
4) cd ../../
5) make -j3 install
Comment 10 Cyrille Berger 2010-10-30 21:34:33 UTC
Waiting to see if that is still reproducible.
Comment 11 Halla Rempt 2011-06-11 14:18:07 UTC
Resolving all needinfo bugs from 2009 and 2010.
Comment 12 Roberto 2018-03-22 13:50:15 UTC
IndexError
Python 3.6.2: python
Thu Mar 22 14:34:44 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:\Users\rangeletti\Programmi\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:\Users\rangeletti\Programmi\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:\Users\rangeletti\Programmi\Krita (x64)\lib\krita-python-libs\krita\dockwidgetfactory.py", line 14, in createDockWidget
    return self.klass()
  File "C:\Users\rangeletti\Programmi\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