Bug 402097 - New G'MIC filter "Artistic / Stylize" generates an error on exit
Summary: New G'MIC filter "Artistic / Stylize" generates an error on exit
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: G'Mic for Krita (show other bugs)
Version: unspecified
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: amyspark
URL: https://github.com/dtschump/gmic/issu...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-13 16:14 UTC by David Tschumperlé
Modified: 2020-10-26 13:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Error dialog appearing (30.60 KB, image/png)
2018-12-13 16:14 UTC, David Tschumperlé
Details
With latest G'MIC 2.5.6 and latest Krita Appimage (nightly build) (230.94 KB, image/jpeg)
2019-04-09 07:35 UTC, David Tschumperlé
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Tschumperlé 2018-12-13 16:14:02 UTC
Created attachment 116901 [details]
Error dialog appearing

SUMMARY


STEPS TO REPRODUCE
1. Open Krita, open an image. Choose "Filter / Start G'MIC-Qt".
2. Select filter 'Artistic / Stylize' (If not already available, update filters by pressing the 'Update filters' button). Choose one of the pre-defined style (not "Custom"), and press the "Apply" button.
3. The filter is working well until it returns. An error message appear, and the outcome is not transferred back from the G'MIC-Qt plug-in to Krita.

OBSERVED RESULT

Here is the full log on the console window:

dtschump@elara:~/Downloads$ ./krita-4.1.7-x86_64.appimage 
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
/tmp/.mount_krita-FWHZ65/usr/lib/krita-python-libs/krita added to PYTHONPATH
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Bold")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Light")
krita.general: Could not find font QVariant(QString, "Source Sans Pro") with style QVariant(QString, "Regular")
>>> true QUrl("file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora") "file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora" "/home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora"
>>> true QUrl("file:///home/dtschump/work/img/portraits/portrait24.jpg") "file:///home/dtschump/work/img/portraits/portrait24.jpg" "/home/dtschump/work/img/portraits/portrait24.jpg"
>>> true QUrl("file:///home/dtschump/work/img/fish.jpg") "file:///home/dtschump/work/img/fish.jpg" "/home/dtschump/work/img/fish.jpg"
>>> true QUrl("file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora") "file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora" "/home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora"
>>> true QUrl("file:///home/dtschump/work/img/portraits/portrait24.jpg") "file:///home/dtschump/work/img/portraits/portrait24.jpg" "/home/dtschump/work/img/portraits/portrait24.jpg"
>>> true QUrl("file:///home/dtschump/work/img/fish.jpg") "file:///home/dtschump/work/img/fish.jpg" "/home/dtschump/work/img/fish.jpg"
>>> true QUrl("file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora") "file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora" "/home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora"
>>> true QUrl("file:///home/dtschump/work/img/fish.jpg") "file:///home/dtschump/work/img/fish.jpg" "/home/dtschump/work/img/fish.jpg"
>>> true QUrl("file:///home/dtschump/work/img/portraits/portrait24.jpg") "file:///home/dtschump/work/img/portraits/portrait24.jpg" "/home/dtschump/work/img/portraits/portrait24.jpg"
>>> true QUrl("file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora") "file:///home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora" "/home/dtschump/work/src/gmic/html/img/gmicky_deevad.ora"
>>> true QUrl("file:///home/dtschump/work/img/fish.jpg") "file:///home/dtschump/work/img/fish.jpg" "/home/dtschump/work/img/fish.jpg"
>>> true QUrl("file:///home/dtschump/work/img/portraits/portrait24.jpg") "file:///home/dtschump/work/img/portraits/portrait24.jpg" "/home/dtschump/work/img/portraits/portrait24.jpg"
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-decrease
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/opacity-increase
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-increase
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/lightness-decrease
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-in
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-left
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotation-reset
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/rotate-canvas-right
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/zoom-out
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-decrease
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/brushsize-increase
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/preset-switcher
file:///tmp/.mount_krita-FWHZ65/usr/lib/qml/org/krita/sketch/components/Button.qml:84:9: QML Image: Failed to get image from provider: image://icon/edit-clear
krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"
krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["
krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"
krita.lib.flake: "InteractionTool" : action "object_order_lower" conflicts with canvas action "rotate_canvas_left" shortcut: "Ctrl+["
QObject::connect: No such signal KisViewManager::destroyed(QObject *o)
gmic-qt: socket Key: "{00dbfc05-615b-4768-948b-8830fea995ce}"
QObject::startTimer: Timers cannot have negative intervals

[gmic_krita_qt]./preview/ v -99 fx_stylize_preview 0,4,0,1,0.5,2,3,0.5,0.1,2,5,0,0.7,100,0,1,0,5,5,7,1,30,1000,2,0

[gmic_krita_qt]./preview/ v -99 fx_stylize_preview 15,4,0,1,0.5,2,3,0.5,0.1,2,5,0,0.7,100,0,1,0,5,5,7,1,30,1000,2,0

[gmic_krita_qt]./apply/ v -99 fx_stylize 15,4,0,1,0.5,2,3,0.5,0.1,2,5,0,0.7,100,0,1,0,5,5,7,1,30,1000,2,0
SAFE ASSERT (krita): "parts.size() == 5" in file /home/appimage/workspace/Krita_Release_Appimage_Build/krita/plugins/extensions/qmic/QMic.cpp, line 340
Aborted (core dumped)

EXPECTED RESULT

Filter returns its result as a modified image in Krita.


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

Using the latest Linux64bits AppImage downloaded from the Krita website (v. 4.1.7). Attached is the screenshot of the error dialog that appears when the Stylize filter returns.
Comment 1 wolthera 2019-04-08 16:00:05 UTC
I cannot find the filter, can you check if it still happens with the latest Krita nightly builds?
Comment 2 David Tschumperlé 2019-04-09 07:35:06 UTC
Created attachment 119314 [details]
With latest G'MIC 2.5.6 and latest Krita Appimage (nightly build)
Comment 3 David Tschumperlé 2019-04-09 07:35:40 UTC
Yes this does happen with the latest build (appimage : krita-4.2.0-pre-alpha-4022dda-x86_64.appimage, downloaded this morning).
I'm using Ubuntu 18.10 (64bits).

In the G'MIC plug-in, the 'Stylize' filter is located under 'Artistic / Stylize' (with latest filter updates, so having file `$HOME/.config/gmic/update256.gmic`).

Filter selection work, the filter is running correctly (progress of the preview window is visible). The problem comes when the plug-in sends back the image data to Krita.
Comment 4 Bug Janitor Service 2019-04-10 04:33:16 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 5 linuxmarc 2019-09-11 20:54:51 UTC
same crash behavior with the gmic-qt 2.7.1 version in Ubuntu 18.04.
Comment 6 amyspark 2020-10-26 13:16:27 UTC
Marking as RESOLVED UPSTREAM because this is a bug in GMic: https://github.com/dtschump/gmic/issues/260 .

tl; dr: the fx_stylize command sets the layer name to an uninitialized variable.