Bug 424514 - Guaranteed crash when opening 2 G'MIC-qt
Summary: Guaranteed crash when opening 2 G'MIC-qt
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: G'Mic for Krita (show other bugs)
Version: 4.3.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: amyspark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-21 18:39 UTC by Mindaugas
Modified: 2021-01-29 10:40 UTC (History)
3 users (show)

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


Attachments
backtrace of the crash, when first gmic window is closed (3-1); Linux, git master (14.31 KB, text/plain)
2020-07-23 20:46 UTC, Anna Medonosova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mindaugas 2020-07-21 18:39:37 UTC
SUMMARY
Open the G'Mic-qt interface then open another G'Mic-qt interface without closing the first one. Apply a layer from the first interface or close the first interface and krita.exe will crash.

STEPS TO REPRODUCE
1. Open the first G'Mic-qt interface
2. Open a second G'Mic-qt interface
3-1. Close the first G'Mic-qt interface 
3-2. Apply a filter from the first G'Mic-qt interface 

OBSERVED RESULT
Krita.exe crashes and the first G'Mic-qt interface crashes. The second remains open. 

EXPECTED RESULT
The interface should close without any problems or a filter would be applied

SOFTWARE/OS VERSIONS
Windows: used and tested on windows 10
macOS: no data
Linux/KDE Plasma: no data
(available in About System)
KDE Plasma Version: no data
KDE Frameworks Version: no data
Qt Version: 2.7.1 64bit

ADDITIONAL INFORMATION
I use the G'Mic-qt interface very often and sometimes accidentally open 2. From my experience the second one works fine but the issue happens 100% of the time.
Comment 1 Mindaugas 2020-07-21 18:43:06 UTC
To clarify: G'MIC-qt Version is 2.7.1 64bit (what it says at the top). Not the linux version
Comment 2 Ahab Greybeard 2020-07-23 06:58:02 UTC
I can confirm this for appimages 4.2.9 to the latest 5.0.0 prealpha.

Except that if I apply a filter from the first G'MIC window, it locks up with no crash. Then the operating system reports that it has stopped working and offers to 'Force Quit' or 'Wait'. Force Quit will make krita crash.

For the case of opening two G'MIC windows and closing the first one, this is the terminal output:
------------------------------------------------
gmic-qt: socket Key: "{5a5f6e09-9e45-4ea8-845d-deb9fbc25d98}"
QObject::startTimer: Timers cannot have negative intervals
gmic-qt: socket Key: "{b93c8632-b67b-4f1a-97f7-8b1a7f4ee46b}"
QObject::startTimer: Timers cannot have negative intervals
QProcess: Destroyed while process ("/opt/krita/gmiclink") is still running.
Segmentation fault
----------------------------------------------
Comment 3 Anna Medonosova 2020-07-23 20:46:38 UTC
Created attachment 130349 [details]
backtrace of the crash, when first gmic window is closed (3-1); Linux, git master
Comment 4 amyspark 2021-01-29 10:40:16 UTC
Fixed with the plugin-i-fication of GMic done in https://invent.kde.org/graphics/krita/-/merge_requests/581.