Bug 371463 - error at new document using template
Summary: error at new document using template
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 3.0.1.1
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 371462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-21 21:05 UTC by ryujang88
Modified: 2016-10-24 01:25 UTC (History)
2 users (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 ryujang88 2016-10-21 21:05:11 UTC
error at new document using templete.
type 
'ctrl+N -> enter key'
make error and krita shutdown.
only use 'Use This Templete' button, not have error
i think it relate to empty or crash error. because there code differ from 'Use this Templete' button

i did'nt live at the English-speaking world. and i'm not good english. plz using easy word.

Reproducible: Always

Steps to Reproduce:
1.ctrl+N 
2.if you view templete gui, type 'enter'. not going 'Use This Templete' button using to 'tab key'
3.krita program shutdown

Actual Results:  
krita shutdown by error

Expected Results:  
if not saving other file. all is garbage.

i show shell vewing state
<<<<<<<<<<<<<<<<<<<<<<<<<this is not using "Use This Templete" button>>>>>>>>>>>>>>>>>
initTemplates(); "templates/"
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+["
세그멘테이션 오류



<<<<<<<<<<<<<<<< this is using 'Use This Templete' button>>>>>>>>>>>>>>>>>>>>>>
initTemplates(); "templates/"
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+["
krita.lib.flake: "InteractionTool" : action "object_order_raise" conflicts with canvas action "rotate_canvas_right" shortcut: "Ctrl+]"
QLayout: Attempting to add QLayout "" to KisShortcutsDialog "", which already has a layout
krita.general: Action without text! "composite_actions"
krita.general: Action without text! "format_textcolor"
krita.general: Action without text! "format_backgroundcolor"
krita.general: Action without text! "edit_paste_text"
QLayout: Attempting to add QLayout "" to KisShortcutsDialog "", which already has a layout
Comment 1 wolthera 2016-10-22 15:59:39 UTC
Does this also happen with the latest beta?
Comment 2 wolthera 2016-10-22 15:59:55 UTC
*** Bug 371462 has been marked as a duplicate of this bug. ***
Comment 3 ryujang88 2016-10-22 21:24:19 UTC
yes. it's heppen
Comment 4 ryujang88 2016-10-22 21:25:35 UTC
(In reply to ryujang88 from comment #3)
> beta... i'm not check
Comment 5 ryujang88 2016-10-22 21:48:08 UTC
you mean that i'm using krita3-testing. that's yes. if mouse use, it's not happen. but keyboard use, it's heppen.
Comment 6 ryujang88 2016-10-22 21:53:49 UTC
(In reply to ryujang88 from comment #5)
> you mean that i'm using krita3-testing. that's yes. if using mouse, it's not
> happen. but useing keyboard, it's heppen.

(In reply to wolthera from comment #1)
> Does this also happen with the latest beta?

(In reply to wolthera from comment #1)
> Does this also happen with the latest beta?
Comment 7 ryujang88 2016-10-22 22:02:19 UTC
(In reply to ryujang88 from comment #6)
> (In reply to ryujang88 from comment #5)
> > you mean that i'm using krita3-testing. that's yes. if using mouse, it's not
> > happen. but useing keyboard, it's heppen.
> 
> (In reply to wolthera from comment #1)
> > Does this also happen with the latest beta?
> 
> (In reply to wolthera from comment #1)
> > Does this also happen with the latest beta?

additional say. window version is not happened that. only linux version is happened.
Comment 8 wolthera 2016-10-22 22:59:47 UTC
Are you using the PPA, or the appimage/snap?

If you are using the PPA, then you've been using an outdated version of Krita as we do not maintain the PPA anymore, We recommend you instead use the snap package or the appimage.
Comment 9 ryujang88 2016-10-22 23:12:55 UTC
(In reply to wolthera from comment #8)
> Are you using the PPA, or the appimage/snap?
> 
> If you are using the PPA, then you've been using an outdated version of
> Krita as we do not maintain the PPA anymore, We recommend you instead use
> the snap package or the appimage.

PPA and appimage same.
i download krita-3.0.1.1-x86_64.appimage. it's happend.
Comment 10 ryujang88 2016-10-22 23:19:12 UTC
(In reply to ryujang88 from comment #9)
> (In reply to wolthera from comment #8)
> > Are you using the PPA, or the appimage/snap?
> > 
> > If you are using the PPA, then you've been using an outdated version of
> > Krita as we do not maintain the PPA anymore, We recommend you instead use
> > the snap package or the appimage.
> 
> PPA and appimage same.
> i download krita-3.0.1.1-x86_64.appimage. it's happend.

and testing krita-3.0.91-x86_64.appimage. same this.
Comment 11 ryujang88 2016-10-22 23:29:45 UTC
krita2.9 version that is stable mintos apt-get repository is not happen this error.
Comment 12 ryujang88 2016-10-22 23:30:36 UTC
(In reply to ryujang88 from comment #10)
> (In reply to ryujang88 from comment #9)
> > (In reply to wolthera from comment #8)
> > > Are you using the PPA, or the appimage/snap?
> > > 
> > > If you are using the PPA, then you've been using an outdated version of
> > > Krita as we do not maintain the PPA anymore, We recommend you instead use
> > > the snap package or the appimage.
> > 
> > PPA and appimage same.
> > i download krita-3.0.1.1-x86_64.appimage. it's happend.
> 
> and testing krita-3.0.91-x86_64.appimage. same this.

krita2.9 version that is stable mintos apt-get repository is not happen this error.
Comment 13 Halla Rempt 2016-10-23 09:36:39 UTC
I've also seen this happen, though I cannot reproduce it reliably.
Comment 14 Halla Rempt 2016-10-23 09:37:55 UTC
What I've seen is that at some point, the new image dialog opens with a template page selected by default, and if I then select a template, a crash happens.
Comment 15 Halla Rempt 2016-10-23 09:39:24 UTC
Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x0000000007fc7c60 in ?? ()
Missing separate debuginfos, use: zypper install libICE6-debuginfo-1.0.9-3.1.x86_64 libSM6-debuginfo-1.2.2-5.1.x86_64 libX11-6-debuginfo-1.6.3-3.1.x86_64 libX11-xcb1-debuginfo-1.6.3-3.1.x86_64 libXau6-debuginfo-1.0.8-6.1.x86_64 libXcursor1-debuginfo-1.1.14-6.1.x86_64 libXext6-debuginfo-1.3.3-3.1.x86_64 libXfixes3-debuginfo-5.0.1-5.1.x86_64 libXi6-debuginfo-1.7.5-1.1.x86_64 libXrender1-debuginfo-0.9.9-1.1.x86_64 libbz2-1-debuginfo-1.0.6-32.1.x86_64 libdbus-1-3-debuginfo-1.8.16-7.1.x86_64 libffi4-debuginfo-5.3.1+r233831-6.1.x86_64 libfreetype6-debuginfo-2.5.5-8.2.x86_64 libgcc_s1-debuginfo-5.3.1+r233831-6.1.x86_64 libglib-2_0-0-debuginfo-2.44.1-2.3.x86_64 libgobject-2_0-0-debuginfo-2.44.1-2.3.x86_64 libgomp1-debuginfo-5.3.1+r233831-6.1.x86_64 libgthread-2_0-0-debuginfo-2.44.1-2.3.x86_64 libicu52_1-debuginfo-52.1-10.3.x86_64 liblzma5-debuginfo-5.0.5-3.5.x86_64 libpcre1-debuginfo-8.33-3.5.x86_64 libstdc++6-debuginfo-5.3.1+r233831-6.1.x86_64 libuuid1-debuginfo-2.25-15.2.x86_64 libxcb-keysyms1-debuginfo-0.4.0-1.1.x86_64 libxcb-util1-debuginfo-0.4.0-1.1.x86_64 libxcb1-debuginfo-1.11.1-1.1.x86_64
(gdb) bt
#0  0x0000000007fc7c60 in  ()
#1  0x00007ffff128adec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#2  0x00007ffff128f380 in QApplication::notify(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#3  0x00007ffff78e97b7 in KisApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x7eef380, event=0x7fffffffc330) at /home/boud/dev/impex/libs/ui/KisApplication.cpp:511
#4  0x00007ffff049e8e5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#5  0x00007ffff12e7d6b in  () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#6  0x00007ffff128adec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#7  0x00007ffff128f44a in QApplication::notify(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#8  0x00007ffff78e97b7 in KisApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x7fd0ec0, event=0x7fffffffc330) at /home/boud/dev/impex/libs/ui/KisApplication.cpp:511
#9  0x00007ffff049e8e5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#10 0x00007ffff0a4e160 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#11 0x00007ffff0a52ad5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#12 0x00007ffff0a34bbb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#13 0x00007fffe78fd860 in  () at /home/boud/dev/deps/plugins/platforms/../../lib/libQt5XcbQpa.so.5
#14 0x00007fffeba70c84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#15 0x00007fffeba70ed8 in  () at /usr/lib64/libglib-2.0.so.0
#16 0x00007fffeba70f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#17 0x00007ffff04eed5c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#18 0x00007ffff049ca8b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#19 0x00007ffff147bcdc in QDialog::exec() () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#20 0x00007ffff791048f in KisMainWindow::slotFileNew() (this=<optimized out>) at /home/boud/dev/impex/libs/ui/KisMainWindow.cpp:1352
#21 0x00007ffff792005a in KisMainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x6fd3680, _c=<optimized out>, _id=<optimized out>, _a=0x7fffffffc9e0)
    at /home/boud/dev/b-impex/libs/ui/moc_KisMainWindow.cpp:304
#22 0x00007ffff04c8441 in QMetaObject::activate(QObject*, int, int, void**) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#23 0x00007ffff1281842 in QAction::triggered(bool) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#24 0x00007ffff12843dd in QAction::activate(QAction::ActionEvent) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#25 0x00007ffff12845a4 in QAction::event(QEvent*) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#26 0x00007ffff128adec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#27 0x00007ffff128f44a in QApplication::notify(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Widgets.so.5
#28 0x00007ffff78e97b7 in KisApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x795fc90, event=0x7fffffffcd20) at /home/boud/dev/impex/libs/ui/KisApplication.cpp:511
#29 0x00007ffff049e8e5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#30 0x00007ffff0a7d02f in QShortcutMap::dispatchEvent(QKeyEvent*) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#31 0x00007ffff0a7d0f4 in QShortcutMap::tryShortcut(QKeyEvent*) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#32 0x00007ffff0a39a4b in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) ()
    at /home/boud/dev/deps/lib/libQt5Gui.so.5
#33 0x00007ffff0a4e1a7 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#34 0x00007ffff0a52ad5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#35 0x00007ffff0a34bbb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/boud/dev/deps/lib/libQt5Gui.so.5
#36 0x00007fffe78fd860 in  () at /home/boud/dev/deps/plugins/platforms/../../lib/libQt5XcbQpa.so.5
#37 0x00007fffeba70c84 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#38 0x00007fffeba70ed8 in  () at /usr/lib64/libglib-2.0.so.0
#39 0x00007fffeba70f7c in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#40 0x00007ffff04eed5c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#41 0x00007ffff049ca8b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/boud/dev/deps/lib/libQt5Core.so.5
#42 0x00007ffff04a47c6 in QCoreApplication::exec() () at /home/boud/dev/deps/lib/libQt5Core.so.5
#43 0x000000000040536f in main(int, char**) (argc=1, argv=<optimized out>) at /home/boud/dev/impex/krita/main.cc:261
(gdb)
Comment 16 Halla Rempt 2016-10-23 09:57:01 UTC
Git commit e032da163eb1134adf140e947ee79b4d55f4262a by Boudewijn Rempt.
Committed on 23/10/2016 at 09:56.
Pushed by rempt into branch 'master'.

Sometimes, if the dialog would open by default on a template
page, and you'd create an image from a template, the dialog
and pane would be deleted too early. We said, when creating
the slots, that deleteLater would be used to delete the dialog,
but we didn't do that... Now we do.

M  +1    -3    libs/ui/KisMainWindow.cpp
M  +2    -2    libs/ui/KisPart.cpp

http://commits.kde.org/krita/e032da163eb1134adf140e947ee79b4d55f4262a
Comment 17 Halla Rempt 2016-10-23 09:57:07 UTC
Git commit 157379e962373db07c53da0fae7785a4a3460e78 by Boudewijn Rempt.
Committed on 23/10/2016 at 09:55.
Pushed by rempt into branch 'rempt/impex-refactoring'.

Sometimes, if the dialog would open by default on a template
page, and you'd create an image from a template, the dialog
and pane would be deleted too early. We said, when creating
the slots, that deleteLater would be used to delete the dialog,
but we didn't do that... Now we do.

M  +1    -3    libs/ui/KisMainWindow.cpp
M  +2    -2    libs/ui/KisPart.cpp

http://commits.kde.org/krita/157379e962373db07c53da0fae7785a4a3460e78
Comment 18 ryujang88 2016-10-24 01:25:06 UTC
(In reply to Boudewijn Rempt from comment #17)
> Git commit 157379e962373db07c53da0fae7785a4a3460e78 by Boudewijn Rempt.
> Committed on 23/10/2016 at 09:55.
> Pushed by rempt into branch 'rempt/impex-refactoring'.
> 
> Sometimes, if the dialog would open by default on a template
> page, and you'd create an image from a template, the dialog
> and pane would be deleted too early. We said, when creating
> the slots, that deleteLater would be used to delete the dialog,
> but we didn't do that... Now we do.
> 
> M  +1    -3    libs/ui/KisMainWindow.cpp
> M  +2    -2    libs/ui/KisPart.cpp
> 
> http://commits.kde.org/krita/157379e962373db07c53da0fae7785a4a3460e78

i download from git server. and checking it. error is fixed and good well. 
thank your works. very thank you.