Bug 287647 - Krita crashed upon creating a new custom sized image
Summary: Krita crashed upon creating a new custom sized image
Status: RESOLVED DUPLICATE of bug 281446
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-26 23:34 UTC by deathpyre.tarrant
Modified: 2011-12-01 15:21 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 deathpyre.tarrant 2011-11-26 23:34:42 UTC
Application: krita (2.4 Beta 4)
KDE Platform Version: 4.7.3 (4.7.3) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.0.6-gentoo x86_64
Distribution: "Gentoo Base System release 2.1"

-- Information about the crash:
- What I was doing when the application crashed:
I loaded an auto-saved image from a previous instance, then tried to make a new image that was 16 in. by 9 in. at 300 dpi; at which time Krita would crash.  I repeated this procedure two more times, both times it crashed at the same point.  I'm using gallium/r600 drivers and OpenGL canvas if that is pertinent.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (kdeinit4), signal: Aborted
[Current thread is 1 (Thread 0x7ffeb0185760 (LWP 16308))]

Thread 10 (Thread 0x7ffe8ba69700 (LWP 16313)):
#0  0x00007ffeaea2d75c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffeaecbb8ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffeaecb754b in QSemaphore::acquire(int) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007ffe9a8cdf8e in ?? () from /usr/lib64/libkritaimage.so.9
#4  0x00007ffe9a8ce66c in ?? () from /usr/lib64/libkritaimage.so.9
#5  0x00007ffeaecbad45 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#7  0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7ffe94a6a700 (LWP 16314)):
#0  0x00007ffeaea2d75c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffeaecbb8ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffeaecb77eb in QSemaphore::tryAcquire(int, int) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007ffe9a8eeda2 in KisTileDataSwapper::run() () from /usr/lib64/libkritaimage.so.9
#4  0x00007ffeaecbad45 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#6  0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7ffe8aa67700 (LWP 16324)):
#0  0x00007ffeaea2d75c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffeaecbb8ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffeae42c936 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#3  0x00007ffeaecbad45 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7ffe89a65700 (LWP 16325)):
#0  0x00007ffead7a8a23 in select () from /lib64/libc.so.6
#1  0x00007ffeaedd5306 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffeaedda31b in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007ffeaeddaf3a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffeaedaa732 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffeaedaaafd in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffeaecb7d92 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffeaed8a5e0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007ffeaecbad45 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#10 0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7ffe8a266700 (LWP 16328)):
#0  0x00007ffeaea2d75c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffe81148d8b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#3  0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7ffe8b268700 (LWP 16329)):
#0  0x00007ffeaea2d75c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffe81148d8b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#3  0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7ffe7a40d700 (LWP 16330)):
#0  0x00007ffeaedda49e in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib64/qt4/libQtCore.so.4
#1  0x00007ffeaeddaf3a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffeaedaa732 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007ffeaedaaafd in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffeaecb7d92 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffeaed8a5e0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffeaecbad45 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7ffe77c08700 (LWP 16341)):
#0  0x00007ffeaea2d75c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffeaecbb8ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffeae42c936 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#3  0x00007ffeaecbad45 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ffe77407700 (LWP 16342)):
#0  0x00007ffead7a8a23 in select () from /lib64/libc.so.6
#1  0x00007ffeaedd5306 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffeaedda31b in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007ffeaeddaf3a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffeaedaa732 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffeaedaaafd in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffeaecb7d92 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffeaed8a5e0 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007ffeaecbad45 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007ffeaea28cba in start_thread () from /lib64/libpthread.so.0
#10 0x00007ffead7af1cd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ffeb0185760 (LWP 16308)):
[KCrash Handler]
#6  0x00007ffead70f935 in raise () from /lib64/libc.so.6
#7  0x00007ffead710cbf in abort () from /lib64/libc.so.6
#8  0x00007ffeaecb0ea4 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007ffeaecb103e in ?? () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007ffeaecb11f5 in qFatal(char const*, ...) () from /usr/lib64/qt4/libQtCore.so.4
#11 0x00007ffe9aed92ac in KisOpenGLImageTextures::recalculateCache(KisSharedPtr<KisUpdateInfo>) () from /usr/lib64/libkritaui.so.9
#12 0x00007ffe9aeda228 in KisOpenGLImageTextures::KisOpenGLImageTextures(KisWeakSharedPtr<KisImage>, KoColorProfile*) () from /usr/lib64/libkritaui.so.9
#13 0x00007ffe9aedac1d in KisOpenGLImageTextures::getImageTextures(KisWeakSharedPtr<KisImage>, KoColorProfile*) () from /usr/lib64/libkritaui.so.9
#14 0x00007ffe9ad6f998 in KisCanvas2::createOpenGLCanvas() () from /usr/lib64/libkritaui.so.9
#15 0x00007ffe9ad6fec8 in KisCanvas2::createCanvas(bool) () from /usr/lib64/libkritaui.so.9
#16 0x00007ffe9ad7012d in KisCanvas2::KisCanvas2(KisCoordinatesConverter*, KisView2*, KoShapeBasedDocumentBase*) () from /usr/lib64/libkritaui.so.9
#17 0x00007ffe9ae89e0e in KisView2::KisView2(KisDoc2*, QWidget*) () from /usr/lib64/libkritaui.so.9
#18 0x00007ffe9adfb08b in KisDoc2::createViewInstance(QWidget*) () from /usr/lib64/libkritaui.so.9
#19 0x00007ffea0f68831 in KoDocument::createView(QWidget*) () from /usr/lib64/libkomain.so.9
#20 0x00007ffea0f9633a in KoMainWindow::setRootDocument(KoDocument*) () from /usr/lib64/libkomain.so.9
#21 0x00007ffea0f6de8a in KoDocument::deleteOpenPane(bool) () from /usr/lib64/libkomain.so.9
#22 0x00007ffea0f6e0c8 in KoDocument::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkomain.so.9
#23 0x00007ffe9adfc7f5 in KisDoc2::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkritaui.so.9
#24 0x00007ffeaedc37a7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#25 0x00007ffe9af20992 in ?? () from /usr/lib64/libkritaui.so.9
#26 0x00007ffe9af213ac in ?? () from /usr/lib64/libkritaui.so.9
#27 0x00007ffeaedc37a7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#28 0x00007ffeae5cd0b2 in QAbstractButton::clicked(bool) () from /usr/lib64/qt4/libQtGui.so.4
#29 0x00007ffeae2db370 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#30 0x00007ffeae2dc960 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#31 0x00007ffeae2dcb8c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#32 0x00007ffeadf70ecd in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#33 0x00007ffeadf1aa4c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#34 0x00007ffeadf2071e in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#35 0x00007ffeafb67528 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#36 0x00007ffeaedab9eb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#37 0x00007ffeadf1ef41 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/qt4/libQtGui.so.4
#38 0x00007ffeadfa48a3 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#39 0x00007ffeadfa390f in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#40 0x00007ffeadfce337 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#41 0x00007ffeaedaa732 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#42 0x00007ffeaedaaafd in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#43 0x00007ffeaedaeb7b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#44 0x00007ffea126c97d in kdemain () from /usr/lib64/libkdeinit4_krita.so
#45 0x0000000000407566 in _start ()

Reported using DrKonqi
Comment 1 deathpyre.tarrant 2011-11-26 23:37:36 UTC
I just tried this again, and it will successfully create this image if I use 8-bit RGB, but will crash with 16-bit RGB. All other settings are defaults.
Comment 2 Sven Langkamp 2011-11-27 20:16:19 UTC
Can you start krita from the command line and post the output?
Comment 3 deathpyre.tarrant 2011-11-28 01:10:32 UTC
Here it is:

krita(21648) KoGenericRegistry<T>::add: Registry already contains item "LABA" 
krita(21648) KoGenericRegistry<T>::add: Registry already contains item "RGBA16" 
krita(21648) KoGenericRegistry<T>::add: Registry already contains item "RGBA" 
krita(21648) KoGenericRegistry<T>::add: Registry already contains item "GRAYA16HISTO" 
krita(21648) KoGenericRegistry<T>::add: Registry already contains item "PanTool" 
krita(21648)/kdecore (KLibrary) kde4Factory: The library "/usr/lib64/kde4/kritahistorydocker.so" does not offer a qt_plugin_instance function.
krita(21648)/kotext TextShapeFactory::newDocumentResourceManager: No KUndo2Stack found in the document resource manager, creating a new one 
krita(21648)/koffice (filter manager) KoFilterManager::filterAvailable: The library  ""  does not offer a check_ ""  function. 

krita(21648) KDirWatchPrivate::KDirWatchPrivate: INotify available:  true
krita(21648)/kotext TextShapeFactory::newDocumentResourceManager: No KUndo2Stack found in the document resource manager, creating a new one 
krita(21648)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a KActionCollection containing actions! 
krita(21648)/koffice: Lcms2 error:  5 Read from memory error. Got 0 bytes, block should be of 128 bytes 
krita(21648)/koffice: Lcms2 error:  5 Read from memory error. Got 0 bytes, block should be of 128 bytes 
Unknown m_imageTextureType
KCrash: Application 'krita' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/soushi/.kde4/socket-nekokaburi/kdeinit4__0

[1]+  Stopped                 krita

I should mention that this is compiled from trunk, done yesterday, and does have lcms support enabled; I have versions 1.19 and 2.2 of lcms installed.
Comment 4 deathpyre.tarrant 2011-12-01 03:25:13 UTC
Re-compiled it from trunk yesterday, and tried with all available color-spaces, and they all fail with the same console readout listed in my last post if 16-bit mode is attempted.
Comment 5 Halla Rempt 2011-12-01 09:51:41 UTC
Hm... It works here, even in opengl mode. Could you test with opengl disabled? I don't see the tell-tale signs of an llvm-gallium related crash, but then, I cannot reproduce in any case.
Comment 6 deathpyre.tarrant 2011-12-01 14:43:27 UTC
16-bit works with OpenGL disabled. I'm using Mesa and llvm-Gallium compiled from trunk as well.
Comment 7 Halla Rempt 2011-12-01 15:21:05 UTC
Okay, then I'm going to assume that it's a duplicate of 281446 -- it should be fixed with a new/patched version of opengtl.

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