Bug 342220 - Extending a perspective grid dragging a midpoint of its edges, freezes Krita (version: 2+git20141225+r73488-51-dk)
Summary: Extending a perspective grid dragging a midpoint of its edges, freezes Krita ...
Status: RESOLVED DUPLICATE of bug 342101
Alias: None
Product: krita
Classification: Applications
Component: Tools (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-26 12:25 UTC by mvowada
Modified: 2014-12-29 08:50 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mvowada 2014-12-26 12:25:20 UTC
The perspective grid can't be extended by clicking and dragging a midpoint of one of its edges.
Extending a perspective grid, dragging a midpoint of its edges, freezes Krita.

Reproducible: Always

Steps to Reproduce:
1. Draw a 4 point grid (Tools > Ruler assistant editor tool > Tool Options > Perspective)
2. Try to drag a midpoint of its edges (once or several time)

Actual Results:  
Soon, at some point, Krita freezes and doesn't respond. 
Then it's necessary to click the close window button to exit the program.

Expected Results:  
One should be allowed to extend the grid.
Comment 1 Sven Langkamp 2014-12-26 12:39:33 UTC
Looks like it gets stuck in the drawing code

0x00007fffcc0916b2 in qRound (d=<optimized out>) at /usr/include/qt4/QtCore/qglobal.h:1206
1206    { return d >= qreal(0.0) ? int(d + qreal(0.5)) : int(d - int(d-1) + qreal(0.5)) + int(d-1); }
(gdb) bt
#0  0x00007fffcc0916b2 in qRound (d=<optimized out>) at /usr/include/qt4/QtCore/qglobal.h:1206
#1  toPoint (this=0x7fffffffc4a0) at /usr/include/qt4/QtCore/qpoint.h:378
#2  PerspectiveAssistant::drawAssistant (this=0x8364e60, gc=..., updateRect=..., converter=0x3058530, cached=<optimized out>, canvas=0x2fcad20, assistantVisible=true, previewVisible=true)
    at /home/sven/kde/src/calligra/krita/plugins/assistants/RulerAssistant/PerspectiveAssistant.cc:223
#3  0x00007fffcc0a44dc in KisRulerAssistantTool::paint (this=0x6d3dc10, _gc=..., _converter=...) at /home/sven/kde/src/calligra/krita/plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc:480
#4  0x00007ffff6dff232 in KisCanvasWidgetBase::drawDecorations (this=0x47f1d68, gc=..., updateWidgetRect=...) at /home/sven/kde/src/calligra/krita/ui/canvas/kis_canvas_widget_base.cpp:138
#5  0x00007ffff704d2ed in KisOpenGLCanvas2::renderDecorations (this=this@entry=0x47f1d40, painter=painter@entry=0x7fffffffcd90) at /home/sven/kde/src/calligra/krita/ui/opengl/kis_opengl_canvas2.cpp:646
#6  0x00007ffff7051f3f in KisOpenGLCanvas2::paintGL (this=0x47f1d40) at /home/sven/kde/src/calligra/krita/ui/opengl/kis_opengl_canvas2.cpp:251
#7  0x00007ffff2c83760 in QGLWidget::glDraw() () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#8  0x00007ffff2c818e9 in QGLWidget::paintEvent(QPaintEvent*) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#9  0x00007ffff616d2f0 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff2c8c6b1 in QGLWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#11 0x00007ffff611de2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007ffff61244a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007ffff717be87 in KisApplication::notify (this=<optimized out>, receiver=0x47f1d40, event=0x7fffffffd290) at /home/sven/kde/src/calligra/krita/ui/KisApplication.cpp:523
#14 0x00007ffff572b4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007ffff6167a11 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007ffff6328afb in QWidgetPrivate::repaint_sys(QRegion const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007ffff615ce47 in QWidgetPrivate::syncBackingStore() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007ffff616ce6a in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007ffff2c8c6b1 in QGLWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#20 0x00007ffff611de2c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00007ffff61244a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007ffff717be87 in KisApplication::notify (this=<optimized out>, receiver=0x47f1d40, event=0x6f3ced0) at /home/sven/kde/src/calligra/krita/ui/KisApplication.cpp:523
#23 0x00007ffff572b4dd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x00007ffff572eb3d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007ffff61c032c in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007ffff572a0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007ffff572a3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007ffff572fb79 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007ffff7ae4fa4 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/sven/kde/src/calligra/krita/main.cc:110
#30 0x00007ffff7699ec5 in __libc_start_main (main=0x4006c0 <main(int, char**)>, argc=1, argv=0x7fffffffdce8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdcd8)
    at libc-start.c:287
#31 0x00000000004006ee in _start ()
Comment 2 pcchou 2014-12-26 14:44:04 UTC
Hello, I'm a Google code-in student who is trying to do bug-triaging task.
Can you provide which version of krita are you using?
Comment 3 mvowada 2014-12-26 15:03:58 UTC
Hello, Krita version is: 2+git20141225+r73488-51-dk
Comment 4 Dmitry Kazakov 2014-12-29 08:50:01 UTC
It seems like we already have this bug reported. Now we just need to ping Wolthera :)

*** This bug has been marked as a duplicate of bug 342101 ***