Bug 380927 - Krita quits each time I try to insert any shape
Summary: Krita quits each time I try to insert any shape
Status: RESOLVED DUPLICATE of bug 378328
Alias: None
Product: krita
Classification: Applications
Component: Layers/Vector (show other bugs)
Version: 3.1.4
Platform: openSUSE Linux
: NOR critical
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-07 08:06 UTC by Rafael Linux User
Modified: 2017-06-09 17:33 UTC (History)
3 users (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 Rafael Linux User 2017-06-07 08:06:26 UTC
In an empty image (for example) if I try to insert a shape (arrow, circle, star ... anyone) just after drag and release the mouse button, Krita quits. Even if you are working with a saved image, Krita can't recover your work after this point.

Please, it needs a fix.

Thank you
Comment 1 Halla Rempt 2017-06-07 08:19:18 UTC
Hi Rafael,

This has been reported already. I could reproduce it, but only in the master branch, not with the 3.1.4 appimage, so I'm not sure what's up there. It could be useful if you'd install the debug packages, reproduce and attach the backtrace the bug 378328

*** This bug has been marked as a duplicate of bug 378328 ***
Comment 2 Rafael Linux User 2017-06-07 08:39:49 UTC
Sorry, I didn't consider it a duplicate error, cause the bug 378328 is under "Text tools" and I considered this bug is a "Vector objects" one.
I'm sorry.

I'll try to get a backtrace (but not sure how to do it apart of installing debug files).
Comment 3 Halla Rempt 2017-06-07 08:44:26 UTC
You should automatically get a backtrace in a dr konqui crash window. If that doesn't work, start on the command line with gdb:

gdb krita
run
reproduce crash
type "thread apply all bt"
and scroll until the end, then copy/paste
Comment 4 Halla Rempt 2017-06-07 08:44:41 UTC
Oh -- and could you confirm that the appimage doesn't crash for you?
Comment 5 Rafael Linux User 2017-06-07 09:54:06 UTC
(In reply to Boudewijn Rempt from comment #3)
> You should automatically get a backtrace in a dr konqui crash window. If
> that doesn't work, start on the command line with gdb:
> 
> gdb krita
> run
> reproduce crash
> type "thread apply all bt"
> and scroll until the end, then copy/paste

I didn't hear about Dr Konqui in last 2 versions of OpenSUSE. I think it's not installed (or even exist) in newer versions.

About gdb, I launch "gdb krita" and then:
GNU gdb (GDB; openSUSE Tumbleweed) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from krita...Missing separate debuginfo for /usr/bin/krita
Try: zypper install -C "debuginfo(build-id)=5a9e9021f136a7356d5d616da8d8c281b099bd28"
(no debugging symbols found)...done.

But  zypper install -C "debuginfo(build-id)=5a9e9021f136a7356d5d616da8d8c281b099bd28" doesn't work (that kind of command NEVER works in my experiencie). So I installed "krita-devel" and ... same results.

About appimage, I'll try later.
Comment 6 Rafael Linux User 2017-06-07 09:59:18 UTC
In the appimage the issue is not present, it's working.

What's the matter now? Must I wait for a new version in OpenSUSE repos?

Regards
Comment 7 mvowada 2017-06-07 10:24:57 UTC
(In reply to Rafael from comment #6)
> In the appimage the issue is not present, it's working.
> 
> What's the matter now? Must I wait for a new version in OpenSUSE repos?
> 
> Regards

Hi Rafael and Boudewijn,
Is it working well for you even with the rectangle shape?
Apparently, I'm able to reproduce the crash with that.

GDB report and video example here: https://bugs.kde.org/show_bug.cgi?id=380436#c1
Comment 8 Halla Rempt 2017-06-07 11:18:50 UTC
Yes -- no problem at all. I wonder if the problem is the version of Qt in opensuse or something like that. Which repo does Krita 3.1.4 come from?
Comment 9 mvowada 2017-06-07 13:45:44 UTC
(In reply to Boudewijn Rempt from comment #8)
> Which repo does Krita 3.1.4 come from?

Thank you.
I'm guessing you asked Rafael about the OpenSUSE repo...
Me, I'm testing on Ubuntu 14.04 with Krita 3.1.4 appimage, Linux (x86_64) release 3.13.0-39-generic
Comment 10 Rafael Linux User 2017-06-07 23:17:19 UTC
(In reply to mvowada from comment #7)
> (In reply to Rafael from comment #6)
> > In the appimage the issue is not present, it's working.
> > 
> > What's the matter now? Must I wait for a new version in OpenSUSE repos?
> > 
> > Regards
> 
> Hi Rafael and Boudewijn,
> Is it working well for you even with the rectangle shape?
> Apparently, I'm able to reproduce the crash with that.
> 
> GDB report and video example here:
> https://bugs.kde.org/show_bug.cgi?id=380436#c1

Yes, the appimage is working with any shape.
Comment 11 Rafael Linux User 2017-06-07 23:18:46 UTC
(In reply to Boudewijn Rempt from comment #8)
> Yes -- no problem at all. I wonder if the problem is the version of Qt in
> opensuse or something like that. Which repo does Krita 3.1.4 come from?

The repo is http://download.opensuse.org/tumbleweed/repo/oss/
Comment 12 Halla Rempt 2017-06-08 07:26:41 UTC
Ah, tumbleweed.  I cannot use that on my desktop because it breaks virtualbox, but I guess I should install a vm, install krita and the debug symbols.

On opensuse, to get debug symbols, you need to enable the -Debug repositories in Yast/Software Repositories, btw -- they are disabled by default.
Comment 13 Rafael Linux User 2017-06-08 22:15:55 UTC
(In reply to Boudewijn Rempt from comment #3)
> type "thread apply all bt"
After this, terminal requires me to press "return" too much times, so part of the text is lost. There must be some other way to get that text.
> and scroll until the end, then copy/paste
Comment 14 Halla Rempt 2017-06-09 09:46:53 UTC
Ah, that sounds like the bug I fixed yesterday, though, that also had an infinite recursions. Could you paste the first page?
Comment 15 Rafael Linux User 2017-06-09 17:33:34 UTC
(In reply to Boudewijn Rempt from comment #14)
> Ah, that sounds like the bug I fixed yesterday, though, that also had an
> infinite recursions. Could you paste the first page?

These are the last lines AFTER "run" but BEFORE crashing (I think there are errors in there):

KConfigIni: In file /usr/share/pci.ids, line 29056: " Invalid entry (missing '=')
"KConfigIni: In file /usr/share/pci.ids, line 29057: " Invalid entry (missing '=')
"KConfigIni: In file /usr/share/pci.ids, line 29058: " Invalid entry (missing '=')
[New Thread 0x7fffab36a700 (LWP 23829)]
[Thread 0x7fffab36a700 (LWP 23829) exited]
[New Thread 0x7fffab36a700 (LWP 23830)]
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
Missing separate debuginfo for /usr/lib64/libcurl.so.4
Try: zypper install -C "debuginfo(build-id)=0ab1a9ff834c649d1151de890215c929ccae1093"
Missing separate debuginfo for /usr/lib64/libgomp.so.1
Try: zypper install -C "debuginfo(build-id)=13c8f565d3fb913fe54fd59763c32ac782bf043a"
Missing separate debuginfo for /usr/lib64/libnghttp2.so.14
Try: zypper install -C "debuginfo(build-id)=fe98016066fb5cb389ca322ecd35399b7d03528c"
Missing separate debuginfo for /usr/lib64/libidn2.so.0
Try: zypper install -C "debuginfo(build-id)=50911ac84863cc239d1ef2064b6ae3e8cb0c7064"
Missing separate debuginfo for /usr/lib64/libssh2.so.1
Try: zypper install -C "debuginfo(build-id)=7666ac5befba7792ccc6481d8f43a005a5ef1054"
Missing separate debuginfo for /usr/lib64/libpsl.so.5
Try: zypper install -C "debuginfo(build-id)=13f3d8c4f990e7f4ef47e5f8b5dba912edb4e25f"
Missing separate debuginfo for /usr/lib64/libgssapi_krb5.so.2
Try: zypper install -C "debuginfo(build-id)=57d166ef6752c77bdba07868658458c5c0996b14"
Missing separate debuginfo for /usr/lib64/liblber-2.4.so.2
Try: zypper install -C "debuginfo(build-id)=4818338af5510370793cf8696c78a395edacb103"
Missing separate debuginfo for /usr/lib64/libldap-2.4.so.2
Try: zypper install -C "debuginfo(build-id)=433343ff4464cf44f1f4ee60f149b93ff622a7f1"
Missing separate debuginfo for /usr/lib64/libunistring.so.2
Try: zypper install -C "debuginfo(build-id)=108ebd5db1e8b08d4c2672e73322006f5c22859c"
Missing separate debuginfo for /usr/lib64/libkrb5.so.3
Try: zypper install -C "debuginfo(build-id)=d8853a396063b24f3dd83337a5257e17569bd8ae"
Missing separate debuginfo for /usr/lib64/libk5crypto.so.3
Try: zypper install -C "debuginfo(build-id)=e90b756197bea351dafd747d53acf2249a146b90"
Missing separate debuginfo for /lib64/libcom_err.so.2
Try: zypper install -C "debuginfo(build-id)=cfc341326dc2321327f9519e8b9a3c4b3c28a3a6"
Missing separate debuginfo for /usr/lib64/libkrb5support.so.0
Try: zypper install -C "debuginfo(build-id)=1d9059d1a77e708cbca7149a93812b94f51705ce"
Missing separate debuginfo for /usr/lib64/libsasl2.so.3
Try: zypper install -C "debuginfo(build-id)=68d62b407e52f23e0004330be0bf0e8a3e7a0c50"
Missing separate debuginfo for /usr/lib64/libkeyutils.so.1
Try: zypper install -C "debuginfo(build-id)=e5410c27330fed0e9e88095d7bc25caad40b643a"
[Thread 0x7fffc77dd700 (LWP 23825) exited]
[Thread 0x7fffc7fde700 (LWP 23824) exited]
[Thread 0x7fffc87df700 (LWP 23823) exited]
[Thread 0x7fffc8fe0700 (LWP 23822) exited]

This are the new lines AFTER crash but BEFORE "thread apply all bt":
krita.lib.widgets: KoToolBox::setActiveTool( 9 ): no such button found
[Thread 0x7fffc77dd700 (LWP 23909) exited]
[Thread 0x7fffc87df700 (LWP 23908) exited]
[Thread 0x7fffc7fde700 (LWP 23906) exited]
[Thread 0x7fffc8fe0700 (LWP 23907) exited]
[New Thread 0x7fffc8fe0700 (LWP 24982)]
[New Thread 0x7fffc7fde700 (LWP 24983)]
[New Thread 0x7fffc87df700 (LWP 24984)]
[New Thread 0x7fffc77dd700 (LWP 24985)]

Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007ffff3271347 in ?? () from /usr/lib64/libxcb.so.1
(gdb) 

And here are the first large page after 
(gdb) thread apply all bt

Thread 27 (Thread 0x7fffc77dd700 (LWP 24985)):
#0  0x00007fffeeb2a91c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffff561aa08 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff5615ebc in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff56197cc in ?? () from /usr/lib64/libQt5Core.so.5
#4  0x00007fffeeb244e7 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff4d10a2f in clone () from /lib64/libc.so.6

Thread 26 (Thread 0x7fffc87df700 (LWP 24984)):
#0  0x00007fffeeb2a91c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffff561aa08 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff5615ebc in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff56197cc in ?? () from /usr/lib64/libQt5Core.so.5
#4  0x00007fffeeb244e7 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff4d10a2f in clone () from /lib64/libc.so.6

Thread 25 (Thread 0x7fffc7fde700 (LWP 24983)):
#0  0x00007fffeeb2a91c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffff561aa08 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff5615ebc in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff56197cc in ?? () from /usr/lib64/libQt5Core.so.5
#4  0x00007fffeeb244e7 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff4d10a2f in clone () from /lib64/libc.so.6

Thread 24 (Thread 0x7fffc8fe0700 (LWP 24982)):
#0  0x00007fffeeb2a91c in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffff561aa08 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff5615ebc in ?? () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff56197cc in ?? () from /usr/lib64/libQt5Core.so.5
#4  0x00007fffeeb244e7 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff4d10a2f in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7fffab36a700 (LWP 23830)):
#0  0x00007fffeeb2a5ed in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffff561ab4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff671b075 in ?? () from /usr/lib64/libQt5Widgets.so.5
#3  0x00007ffff56197cc in ?? () from /usr/lib64/libQt5Core.so.5
#4  0x00007fffeeb244e7 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff4d10a2f in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7fffabf6c700 (LWP 23828)):
#0  0x00007fffeeb2a5ed in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ffff561ab4b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff5613853 in QSemaphore::tryAcquire(int, int) () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff2b48a43 in KisTileDataSwapper::waitForWork (this=<optimized out>)
    at /usr/src/debug/krita-3.1.4/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007ffff2b48c6a in KisTileDataSwapper::run (this=0x7ffff3010a60 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder+64>)
    at /usr/src/debug/krita-3.1.4/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:92
---Type <return> to continue, or q <return> to quit---

That's all