Bug 315026 - Changing brush size with May + click crash
Summary: Changing brush size with May + click crash
Status: RESOLVED DUPLICATE of bug 310310
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-12 23:25 UTC by sinozzuke
Modified: 2013-02-13 09:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sinozzuke 2013-02-12 23:25:13 UTC
Application: krita (2.7 Pre-Alpha)
KDE Platform Version: 4.9.00
Qt Version: 4.8.2
Operating System: Linux 3.2.0-37-generic x86_64
Distribution: Ubuntu 12.04.2 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Painting over a image layer with the sketch brush, try to change size and get the crash

-- Backtrace:
Application: Krita (kdeinit4), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff15ea47780 (LWP 7546))]

Thread 7 (Thread 0x7ff137cde700 (LWP 7547)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff15d59a58b in wait (time=18446744073709551615, this=0x5d4f310) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x5d4f2c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007ff15d5963c4 in QSemaphore::acquire (this=0x5d4f010, n=1) at thread/qsemaphore.cpp:144
#4  0x00007ff140b3611e in KisTileDataPooler::waitForWork (this=0x5d4f000) at /home/sinozzuke/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:162
#5  0x00007ff140b36874 in KisTileDataPooler::run (this=0x5d4f000) at /home/sinozzuke/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:184
#6  0x00007ff15d59a07b in QThreadPrivate::start (arg=0x5d4f000) at thread/qthread_unix.cpp:307
#7  0x00007ff159c60e9a in start_thread (arg=0x7ff137cde700) at pthread_create.c:308
#8  0x00007ff15c283cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7ff1374dd700 (LWP 7548)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff15d59a58b in wait (time=18446744073709551615, this=0x5d4f6a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x5d4f650, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007ff15d596809 in QSemaphore::tryAcquire (this=0x5d4f380, n=1, timeout=-1) at thread/qsemaphore.cpp:221
#4  0x00007ff140b53b6a in KisTileDataSwapper::run (this=0x5d4f038) at /home/sinozzuke/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007ff15d59a07b in QThreadPrivate::start (arg=0x5d4f038) at thread/qthread_unix.cpp:307
#6  0x00007ff159c60e9a in start_thread (arg=0x7ff1374dd700) at pthread_create.c:308
#7  0x00007ff15c283cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7ff13568f700 (LWP 7553)):
#0  0x00007ff15c27d023 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ff15d6c5926 in qt_safe_select (nfds=23, fdread=0x7ff124000aa8, fdwrite=0x7ff124000d40, fdexcept=0x7ff124000fd8, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007ff15d6cad72 in QEventDispatcherUNIXPrivate::doSelect (this=0x7ff1240008f0, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007ff15d6cb263 in QEventDispatcherUNIX::processEvents (this=0x7ff124615ee0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007ff15d697f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ff15d698177 in QEventLoop::exec (this=0x7ff13568edd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ff15d597057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007ff15d677c2f in QInotifyFileSystemWatcherEngine::run (this=0x62ddb50) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007ff15d59a07b in QThreadPrivate::start (arg=0x62ddb50) at thread/qthread_unix.cpp:307
#9  0x00007ff159c60e9a in start_thread (arg=0x7ff13568f700) at pthread_create.c:308
#10 0x00007ff15c283cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff135e90700 (LWP 7559)):
#0  0x00007fff9a1ff8de in ?? ()
#1  0x00007ff15963b15d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007ff15d5f0c64 in do_gettime (frac=0x7ff135e8fc68, sec=0x7ff135e8fc60) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007ff15d6c914d in QTimerInfoList::updateCurrentTime (this=0x7ff120001178) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007ff15d6c9483 in QTimerInfoList::timerWait (this=0x7ff120001178, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007ff15d6cb2f1 in QEventDispatcherUNIX::processEvents (this=0x7ff1200008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:913
#7  0x00007ff15d697f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007ff15d698177 in QEventLoop::exec (this=0x7ff135e8fdd0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007ff15d597057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007ff15d677c2f in QInotifyFileSystemWatcherEngine::run (this=0x650bd90) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007ff15d59a07b in QThreadPrivate::start (arg=0x650bd90) at thread/qthread_unix.cpp:307
#12 0x00007ff159c60e9a in start_thread (arg=0x7ff135e90700) at pthread_create.c:308
#13 0x00007ff15c283cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff134e8e700 (LWP 7632)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff15d59a58b in wait (time=18446744073709551615, this=0xa5dc270) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xa5dbdf0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007ff15cf24634 in QFileInfoGatherer::run (this=0xa5dbde0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007ff15d59a07b in QThreadPrivate::start (arg=0xa5dbde0) at thread/qthread_unix.cpp:307
#5  0x00007ff159c60e9a in start_thread (arg=0x7ff134e8e700) at pthread_create.c:308
#6  0x00007ff15c283cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff136691700 (LWP 7633)):
#0  0x00007ff15c27d023 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ff15d6c5926 in qt_safe_select (nfds=39, fdread=0x7ff12f8cba38, fdwrite=0x7ff12f8cbcd0, fdexcept=0x7ff12f8cbf68, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007ff15d6cad72 in QEventDispatcherUNIXPrivate::doSelect (this=0x7ff12f8cb880, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007ff15d6cb263 in QEventDispatcherUNIX::processEvents (this=0x7ff12c037920, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007ff15d697f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ff15d698177 in QEventLoop::exec (this=0x7ff136690dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ff15d597057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007ff15d677c2f in QInotifyFileSystemWatcherEngine::run (this=0xa5dc510) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007ff15d59a07b in QThreadPrivate::start (arg=0xa5dc510) at thread/qthread_unix.cpp:307
#9  0x00007ff159c60e9a in start_thread (arg=0x7ff136691700) at pthread_create.c:308
#10 0x00007ff15c283cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff15ea47780 (LWP 7546)):
[KCrash Handler]
#6  0x00007ff153075414 in KParts::ReadWritePart::isModified (this=0x859daa0) at ../../kparts/part.cpp:1029
#7  0x00007ff14a3eadc1 in KoDocument::slotAutoSave (this=0xcba6a90) at /home/sinozzuke/calligra/calligra-src/libs/main/KoDocument.cpp:477
#8  0x00007ff14a3eb135 in KoDocument::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/sinozzuke/calligra/calligra-build/libs/main/KoDocument.moc:97
#9  0x00007ff15d6ad841 in QMetaObject::activate (sender=0xb6cf210, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#10 0x00007ff15d6b2739 in QObject::event (this=0xb6cf210, e=<optimized out>) at kernel/qobject.cpp:1157
#11 0x00007ff15ca1a7b4 in notify_helper (e=0x7fff9a074fe0, receiver=0xb6cf210, this=0x1377690) at kernel/qapplication.cpp:4556
#12 QApplicationPrivate::notify_helper (this=0x1377690, receiver=0xb6cf210, e=0x7fff9a074fe0) at kernel/qapplication.cpp:4528
#13 0x00007ff15ca1f583 in QApplication::notify (this=0x7fff9a075380, receiver=0xb6cf210, e=0x7fff9a074fe0) at kernel/qapplication.cpp:4417
#14 0x00007ff14a3dbe9e in KoApplication::notify (this=<optimized out>, receiver=0xb6cf210, event=0x7fff9a074fe0) at /home/sinozzuke/calligra/calligra-src/libs/main/KoApplication.cpp:555
#15 0x00007ff15d6993ec in QCoreApplication::notifyInternal (this=0x7fff9a075380, receiver=0xb6cf210, event=0x7fff9a074fe0) at kernel/qcoreapplication.cpp:915
#16 0x00007ff15d6ca7b2 in sendEvent (event=0x7fff9a074fe0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#17 QTimerInfoList::activateTimers (this=0x13782d8) at kernel/qeventdispatcher_unix.cpp:611
#18 0x00007ff15d6cb274 in QEventDispatcherUNIX::processEvents (this=0x12067d0, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#19 0x00007ff15cac3b78 in QEventDispatcherX11::processEvents (this=0x12067d0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#20 0x00007ff15d697f22 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#21 0x00007ff15d698177 in QEventLoop::exec (this=0x7fff9a075340, flags=...) at kernel/qeventloop.cpp:204
#22 0x00007ff15d69d4c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#23 0x00007ff14a930a6d in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/sinozzuke/calligra/calligra-src/krita/main.cc:80
#24 0x00000000004086a4 in launch (argc=1, _name=0x12ba3a8 "/home/sinozzuke/calligra/calligra-inst/bin/krita", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x12ba3f4 "sinozzuke-X600;1360710200;866920;1972_TIME44036240") at ../../kinit/kinit.cpp:746
#25 0x0000000000409a16 in handle_launcher_request (sock=8, who=<optimized out>) at ../../kinit/kinit.cpp:1238
#26 0x0000000000409f47 in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1431
#27 0x000000000040532f in main (argc=4, argv=0x7fff00000001, envp=0x7fff9a076730) at ../../kinit/kinit.cpp:1919

Possible duplicates by query: bug 312307, bug 310310.

Reported using DrKonqi
Comment 1 Halla Rempt 2013-02-13 08:56:33 UTC
Git commit ed9e369d34c92b88514ebb2f5b06285cab39a986 by Boudewijn Rempt.
Committed on 13/02/2013 at 09:54.
Pushed by rempt into branch 'master'.

Catch the lack of a parentpart earlier

I suspect bugs like 315026 are caused by us passing a 0 parentPart sometimes,
so make sure that asserts.

However, I'm still rather puzzled because the autosave doesn't crash
Krita here.

M  +1    -0    libs/main/KoDocument.cpp

http://commits.kde.org/calligra/ed9e369d34c92b88514ebb2f5b06285cab39a986
Comment 2 Halla Rempt 2013-02-13 08:57:34 UTC

*** This bug has been marked as a duplicate of bug 310310 ***
Comment 3 sinozzuke 2013-02-13 09:09:27 UTC
I can't replicate the crash, so maybe is another cause, not the changing
size of the brush
El 13/02/2013 09:57, "Boudewijn Rempt" <boud@valdyas.org> escribió:

> https://bugs.kde.org/show_bug.cgi?id=315026
>
> Boudewijn Rempt <boud@valdyas.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |RESOLVED
>                  CC|                            |boud@valdyas.org
>          Resolution|---                         |DUPLICATE
>
> --- Comment #2 from Boudewijn Rempt <boud@valdyas.org> ---
>
>
> *** This bug has been marked as a duplicate of bug 310310 ***
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 4 Halla Rempt 2013-02-13 09:32:38 UTC
It's definitely something with autosave.