[krita] [Bug 420612] Krita: Segmentation fault when closing

2021-04-22 Thread Tiar
https://bugs.kde.org/show_bug.cgi?id=420612

Tiar  changed:

   What|Removed |Added

 CC||tamtamy.tym...@gmail.com

--- Comment #11 from Tiar  ---
@kd3 
@Lynx3D 
@kevin

Can you please check if e7bd37c699944a fixes the crash on startup for you? I
have the same Qt version and I was getting the same backtrace, so I hope it did
fix/prevent it.

If you don't build your own Krita, please check Krita Next #1228, which should
contain this change. You can run it from the terminal or bst, through gdb, to
see the crash.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2021-04-22 Thread Tiar
https://bugs.kde.org/show_bug.cgi?id=420612

Tiar  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/grap
   ||hics/krita/commit/e7bd37c69
   ||9944a78cde620b52118d254a254
   ||b708
 Resolution|--- |FIXED
 Status|CONFIRMED   |RESOLVED

--- Comment #10 from Tiar  ---
Git commit e7bd37c699944a78cde620b52118d254a254b708 by Agata Cacko.
Committed on 22/04/2021 at 14:13.
Pushed by tymond into branch 'master'.

Fix crash on exit by setting styleSheet only on QTabBar

Before this commit, Krita would crash on exit on Qt 5.12.8
with segfault in the destructor for the Python plugin
widgets. It turned out that this crash was introduced in
8a7bae681a1f992, and the reason turned out to be
a method setStyleSheet() with non-empty string.
Setting empty stylesheet later (on closing) didn't make a difference.
However setting the stylesheet on just the widget
that needs it (QTabBar that keeps the document tabs)
fixes/prevents the crash.

Alternative fix would be to find the widget for the Python plugin
and explicitely set empty stylesheet after every non-empty
stylesheet set for the whole application. It wasn't tested,
but in case more widgets need non-empty stylesheet, it sounds
like it should work.
Related: bug 427137

M  +10   -6libs/ui/KisMainWindow.cpp

https://invent.kde.org/graphics/krita/commit/e7bd37c699944a78cde620b52118d254a254b708

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-07-30 Thread Lynx3d
https://bugs.kde.org/show_bug.cgi?id=420612

Lynx3d  changed:

   What|Removed |Added

 CC||d...@dccathome.com

--- Comment #9 from Lynx3d  ---
*** Bug 424840 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-07-27 Thread Klim
https://bugs.kde.org/show_bug.cgi?id=420612

Klim  changed:

   What|Removed |Added

 CC||klimr...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-07-11 Thread Lynx3d
https://bugs.kde.org/show_bug.cgi?id=420612

Lynx3d  changed:

   What|Removed |Added

 CC||scal...@gmail.com

--- Comment #8 from Lynx3d  ---
*** Bug 424105 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-04-30 Thread Lynx3d
https://bugs.kde.org/show_bug.cgi?id=420612

--- Comment #7 from Lynx3d  ---
For me it is krita built from source with all dependencies from Ubuntu
packages.

Since using system-wide Qt seems the only practical way to have the Breeze
style engine, I don't really know any alternative to test besides Ubuntu
packages and compiles that should be equivalent to those.

However I just went through all the Python plugins, and the "Comics Project
Managment Tools" seems to cause the crash for me, after disabling this plugin I
can use the Breeze style without crashes.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-04-30 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=420612

--- Comment #6 from kevinmathieu2...@outlook.com ---
yes, I just tried appimage, the app close without giving errors

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-04-30 Thread Boudewijn Rempt
https://bugs.kde.org/show_bug.cgi?id=420612

Boudewijn Rempt  changed:

   What|Removed |Added

 CC||b...@valdyas.org

--- Comment #5 from Boudewijn Rempt  ---
This is all with the distribution packages, right? The appimages don't crash
like this for anyone?

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-04-30 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=420612

kevinmathieu2...@outlook.com changed:

   What|Removed |Added

 CC||kevinmathieu2...@outlook.co
   ||m

--- Comment #4 from kevinmathieu2...@outlook.com ---
hello, I have a similar bug, except that unlike my friends above, I have no
script installed and my installation is totally new, the bug exists on virtual
machine and also live on kubuntu 20.04, I didn't try the other distributions.
I'm pretty new on linux, I don't want to venture too much in dark places.

I get the same error message at closing, segmentation fault.

The terminal gives me its information here:

[ QBasicTimer::start: QBasicTimer can only be used with threads started with
QThread
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = krita path = /usr/bin pid = 1080
KCrash: Arguments: /usr/bin/krita 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from
kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 16 and type 'Read', disabling...
QSocketNotifier: Invalid socket 14 and type 'Read', disabling...
Unable to start Dr. Konqi
Re-raising signal for core dump handling. ]

Dr.Konqi this : 

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

Thread 3 (Thread 0x7fbdc5b39700 (LWP 1136)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x7fbde206f0b0 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x7fbde206ef16 in QSemaphore::tryAcquire(int, int) () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x7fbde35329aa in KisTileDataSwapper::run() () from
/lib/x86_64-linux-gnu/libkritaimage.so.18
#4  0x7fbde206c9d2 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x7fbde0043609 in start_thread (arg=) at
pthread_create.c:477
#6  0x7fbde1ce2103 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fbdcfdb0700 (LWP 1108)):
#0  0x7fbde228c57c in
QEventDispatcherGlib::processEvents(QFlags) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x7fbde22334db in
QEventLoop::exec(QFlags) () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x7fbde206b785 in QThread::exec() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x7fbde0076efa in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#4  0x7fbde206c9d2 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x7fbde0043609 in start_thread (arg=) at
pthread_create.c:477
#6  0x7fbde1ce2103 in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fbddd17c800 (LWP 1103)):
[KCrash Handler]
#6  0x7fbde2c96b1a in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x7fbde2ca644e in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x7fbde2ca6474 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x7fbde2ca6509 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x7fbde2c9b3dc in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x7fbde2c8a908 in QWidget::~QWidget() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x7fbde2c8ae1d in QWidget::~QWidget() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x7fbde225e01e in QObjectPrivate::deleteChildren() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x7fbde2c8ac29 in QWidget::~QWidget() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x7fbde2d5e931 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x7fbde225e01e in QObjectPrivate::deleteChildren() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x7fbde2c8ac29 in QWidget::~QWidget() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x7fbde2d60df8 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x7fbde225e01e in QObjectPrivate::deleteChildren() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x7fbde2c8ac29 in QWidget::~QWidget() () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x7fbdb7ddc25d in ?? () from
/usr/lib/python3/dist-packages/PyQt5/QtWidgets.cpython-38-x86_64-linux-gnu.so
#22 0x7fbdc475c3f5 in ?? () from
/usr/lib/python3/dist-packages/PyQt5/QtCore.cpython-38-x86_64-linux-gnu.so
#23 0x7fbdc4978b60 in ?? () from
/usr/lib/python3/dist-packages/sip.cpython-38-x86_64-linux-gnu.so
#24 0x7fbdc475c0a0 in ?? () from
/usr/lib/python3/dist-packages/PyQt5/QtCore.cpython-38-x86_64-linux-gnu.so
#25 0x7fbdc4e11d16 in ?? () from /lib/x86_64-linux-gnu/libpython3.8.so.1.0
#26 0x7fbdc4e5a3cc in PyVectorcall_Call () from
/lib/x86_64-linux-gnu/libpython3.8.so.1.0
#27 0x7fbdc4cc2cf7 in ?? () from /lib/x86_64-linux-gnu/libpython3.8.so.1.0
#28 

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-04-26 Thread Lynx3d
https://bugs.kde.org/show_bug.cgi?id=420612

--- Comment #3 from Lynx3d  ---
Should have read the above backtrace more carefully, it always seems to happen
when unloading pykrita plugin, the other threads don't matter.

And after plenty of tries, it always crashes with the Breeze style here, and
never with the Fusion style.

Since tiar had a hard time finding a crash that turned out to be caused by
incorrectly usage of a style object in KisColorFilterCombo I tested if that fix
also works for this crash, but unfortunately not...I don't really have a clue
what might be happening here, I couldn't find similar mistakes elsewhere (yet).

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-04-26 Thread Lynx3d
https://bugs.kde.org/show_bug.cgi?id=420612

--- Comment #2 from Lynx3d  ---
Created attachment 127904
  --> https://bugs.kde.org/attachment.cgi?id=127904=edit
krita master with ubuntu 20.04 libs + breeze theme

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 420612] Krita: Segmentation fault when closing

2020-04-26 Thread Lynx3d
https://bugs.kde.org/show_bug.cgi?id=420612

Lynx3d  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED
 CC||lynx.mw+...@gmail.com

--- Comment #1 from Lynx3d  ---
Interesting, I just upgraded to 20.04 too and compiled krita master with system
Qt, and got exactly the same crash. Then I built my own Qt again and no crash.

I have a feeling it has to do with the breeze theme, running krita (built with
system Qt) with -style=fusion gave me no crash on a few tries, with the default
breeze it seems to crash every time, either with this backtrace or when
unloading pykrita.

-- 
You are receiving this mail because:
You are watching all bug changes.