Bug 290441

Summary: karbon crashes after simple drawing
Product: [Applications] karbon Reporter: Francesco Riosa <vivo75+kde>
Component: generalAssignee: Jan Hambrecht <jaham>
Status: RESOLVED WORKSFORME    
Severity: crash CC: dasaan.san, justin.zobel
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Francesco Riosa 2012-01-02 21:07:26 UTC
Version:           unspecified (using Devel) 
OS:                Linux

using default template, select calligraphy tool, draw even a simple segment the program crash at moue button release.
always at line 353 of KarbonCurveFit.cpp


(gdb) list   
348         }
349
350         /* Triangle computation */
351         for (i = 1; i <= degree; ++i) {
352             for (j = 0; j <= degree - i; ++j) {
353                 Vtemp[j].setX((1.0 - t) * Vtemp[j].x() + t * Vtemp[j+1].x());
354                 Vtemp[j].setY((1.0 - t) * Vtemp[j].y() + t * Vtemp[j+1].y());
355             }
356         }
357
(gdb) up
#1  0x00007fffe111ded6 in ComputeMaxError (points=..., first=<optimized out>, last=4, curve=0xc081e30, u=<optimized out>, splitPoint=0x7fffffffb9ac)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:379
379             P = BezierII(3, curve, u[i-first]);
(gdb) list
374         FitVector   v;          /*  Vector from point to curve  */
375
376         *splitPoint = (last - first + 1) / 2;
377         maxDist = 0.0;
378         for (i = first + 1; i < last; ++i) {
379             P = BezierII(3, curve, u[i-first]);
380             v = VectorSub(P, points.at(i));
381             dist = v.length();
382             if (dist >= maxDist) {
383                 maxDist = dist;
(gdb) up
#2  0x00007fffe111f57d in FitCubic (points=..., first=0, last=4, tHat1=..., tHat2=..., error=0.300000012, width=@0x7fffffffba3c)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:498
498         maxError = ComputeMaxError(points, first, last, curve, u, &splitPoint);
(gdb) list
493         u = ChordLengthParameterize(points, first, last);
494         curve = GenerateBezier(points, first, last, u, tHat1, tHat2);
495
496
497         /*  Find max deviation of points to fitted curve */
498         maxError = ComputeMaxError(points, first, last, curve, u, &splitPoint);
499         if (maxError < error) {
500             delete[] u;
501             width = 4;
502             return curve;



(gdb) thread apply all bt full

Thread 2 (Thread 0x7fffd63bf700 (LWP 11919)):
#0  0x00007ffff0ff01a3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
        resultvar = <optimized out>
        oldtype = 0
        result = <optimized out>
#1  0x00007fffec2d3d98 in g_main_context_poll (n_fds=2, fds=0x9b9240, timeout=-1, context=0xa35970, priority=<optimized out>) at gmain.c:3402
        poll_func = 0x7fffec2e22c0 <g_poll>
#2  g_main_context_iterate (context=0xa35970, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3084
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 2
        allocated_nfds = <optimized out>
        fds = 0x9b9240
#3  0x00007fffec2d4259 in g_main_context_iteration (context=0xa35970, may_block=1) at gmain.c:3152
        retval = <optimized out>
#4  0x00007ffff20aaea6 in QEventDispatcherGlib::processEvents (this=0x9a0b10, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
        d = 0xa358b0
        canWait = true
        savedFlags = {i = 0}
        result = <optimized out>
#5  0x00007ffff2076d62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
        d = 0x93b100
#6  0x00007ffff2076fa7 in QEventLoop::exec (this=0x7fffd63bed80, flags=...) at kernel/qeventloop.cpp:204
        d = 0x93b100
        locker = {val = 9661832}
        app = 0x7fffffffd410
        eventLoop = 0x602260
#7  0x00007ffff1f690f8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
        d = 0x936d00
        locker = {val = 9661832}
        eventLoop = {<QObject> = {_vptr.QObject = 0x7ffff23db630, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff215c880 "QObject", data = 0x7ffff215c920, 
                extradata = 0x7ffff23d8b60}}, static staticMetaObjectExtraData = {objects = 0x0, 
              static_metacall = 0x7ffff2092e50 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {d = 0x93b100}, static staticQtMetaObject = {
              d = {superdata = 0x0, stringdata = 0x7ffff2166680 "Qt", data = 0x7ffff2169fa0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff23d8b40, 
              stringdata = 0x7ffff21702c0 "QEventLoop", data = 0x7ffff21702e0, extradata = 0x7ffff23db6c0}}, static staticMetaObjectExtraData = {objects = 0x0, 
            static_metacall = 0x7ffff20e0e50 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}
        returnCode = <optimized out>
#8  0x00007ffff20548e3 in QInotifyFileSystemWatcherEngine::run (this=0x8f7da0) at io/qfilesystemwatcher_inotify.cpp:248
        sn = {<QObject> = {_vptr.QObject = 0x7ffff23db8f0, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff215c880 "QObject", data = 0x7ffff215c920, 
                extradata = 0x7ffff23d8b60}}, static staticMetaObjectExtraData = {objects = 0x0, 
              static_metacall = 0x7ffff2092e50 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {d = 0x908100}, static staticQtMetaObject = {
              d = {superdata = 0x0, stringdata = 0x7ffff2166680 "Qt", data = 0x7ffff2169fa0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff23d8b40, 
              stringdata = 0x7ffff2171520 "QSocketNotifier", data = 0x7ffff2171560, extradata = 0x7ffff23db980}}, static staticMetaObjectExtraData = {objects = 0x0, 
            static_metacall = 0x7ffff20e14a0 <QSocketNotifier::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, sockfd = 17, sntype = QSocketNotifier::Read, 
          snenabled = true}
#9  0x00007ffff1f6bfdd in QThreadPrivate::start (arg=0x8f7da0) at thread/qthread_unix.cpp:298
        __clframe = {__cancel_routine = 0x7ffff1f6ae40 <QThreadPrivate::finish(void*)>, __cancel_arg = 0x8f7da0, __do_it = 1, __cancel_type = <optimized out>}
        thr = 0x8f7da0
        data = 0x923ce0
#10 0x00007ffff1cd1c70 in start_thread (arg=0x7fffd63bf700) at pthread_create.c:301
        __res = <optimized out>
        pd = 0x7fffd63bf700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {1, 1722162053337602051, 140737488335264, 140736787642816, 140737354125312, 3, -1722075776545171453, -1722139939665848317}, 
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#11 0x00007ffff0ff7b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.

Thread 1 (Thread 0x7ffff7f8d7c0 (LWP 11916)):
#0  BezierII (degree=<optimized out>, V=0xc081e30, t=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:353
        i = 1
        Q = {xp = 0, yp = 0}
#1  0x00007fffe111ded6 in ComputeMaxError (points=..., first=<optimized out>, last=4, curve=0xc081e30, u=<optimized out>, splitPoint=0x7fffffffb9ac)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:379
        i = 1
        maxDist = <optimized out>
        P = {xp = 4.6654816563047248e-317, yp = 0}
#2  0x00007fffe111f57d in FitCubic (points=..., first=0, last=4, tHat1=..., tHat2=..., error=0.300000012, width=@0x7fffffffba3c)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:498
        u = <optimized out>
        maxError = <optimized out>
        tHatCenter = {m_X = 0, m_Y = 0}
        nPts = <optimized out>
        uPrime = 0x3
        splitPoint = <optimized out>
        curve = 0xc081e30
        w1 = <optimized out>
        cu1 = <optimized out>
        w2 = <optimized out>
        cu2 = <optimized out>
#3  0x00007fffe112019d in bezierFit (points=..., error=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:562
        tHat2 = {m_X = -0.50000022775719566, m_Y = -0.86602527228872039}
        curve = <optimized out>
        tHat1 = {m_X = 0.49999983669566789, m_Y = 0.86602549806821816}
        width = 0
        path = <optimized out>
#4  0x00007fffe112cce4 in KarbonSimplifyPath::simplifySubpath (subpath=0xb5d4d90, error=0.29999999999999999)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.cpp:242
        points = {{p = {static shared_null = {ref = {_q_value = 15806}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xc081de0}, d = 0xc081de0}}
        simplified = <optimized out>
#5  0x00007fffe112ceab in KarbonSimplifyPath::simplifySubpaths (subpaths=<optimized out>, error=0.29999999999999999)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.cpp:229
        subpath = <optimized out>
        _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 15806}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xc06bfb0}, d = 0xc06bfb0}}, 
          brk = 0, i = {i = 0xc06bfc8}, e = {i = 0xc06c040}}
#6  0x00007fffe112cfbd in karbonSimplifyPath (path=0x8b70d0, error=0.29999999999999999)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.cpp:90
        isClosed = true
        subpaths = {{p = {static shared_null = {ref = {_q_value = 15806}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xc06bfb0}, d = 0xc06bfb0}}
#7  0x00007fffe112b9a2 in KarbonCalligraphicShape::updatePath (this=0x8b70d0, size=<optimized out>)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.cpp:310
        pos = {xp = 40.866437676775774, yp = 146.08199569206943}
        handles = {{p = {static shared_null = {ref = {_q_value = 15806}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xc06c158}, d = 0xc06c158}}
#8  0x00007fffe112ac8b in KarbonCalligraphicShape::simplifyGuidePath (this=0x8b70d0)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.cpp:414
        points = {{p = {static shared_null = {ref = {_q_value = 15806}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xc0797d0}, d = 0xc0797d0}}
        widthChange = 0.020916680933553193
        directionChange = 13.867015712074881
        i = {i = 0xc06c158}
#9  0x00007fffe1123b14 in KarbonCalligraphyTool::mouseReleaseEvent (this=0xbec6570, event=<optimized out>)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp:142
        cmd = <optimized out>
#10 0x00007ffff68a7750 in KoToolProxy::mouseReleaseEvent (this=0xb604a80, event=0x7fffffffc8b0, point=...)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/libs/flake/KoToolProxy.cpp:304
        id = {d = 0xbecb420}
        ev = {point = {xp = 352.11791824644547, yp = 289.27534360189571}, m_event = 0x7fffffffc8b0, d = 0x941660}
#11 0x00007ffff79b5da7 in KarbonCanvas::mouseReleaseEvent (this=0xb6241b0, e=<optimized out>)
    at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/ui/widgets/KarbonCanvas.cpp:240
No locals.
#12 0x00007ffff2d7a268 in QWidget::event (this=0xb6241b0, event=0x7fffffffc8b0) at kernel/qwidget.cpp:8361
        d = 0xb604670
#13 0x00007ffff2d20be2 in notify_helper (e=0x7fffffffc8b0, receiver=0xb6241b0, this=0x675870) at kernel/qapplication.cpp:4550
        consumed = <optimized out>
#14 QApplicationPrivate::notify_helper (this=0x675870, receiver=0xb6241b0, e=0x7fffffffc8b0) at kernel/qapplication.cpp:4522
No locals.
#15 0x00007ffff2d272ad in QApplication::notify (this=<optimized out>, receiver=0xb6241b0, e=0x7fffffffc8b0) at kernel/qapplication.cpp:4093
        me = {<QInputEvent> = {<QEvent> = {_vptr.QEvent = 0x7ffff3899b30, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff21704e0 "QEvent", 
                  data = 0x7ffff2170ec0, extradata = 0x0}}, d = 0x0, t = 3, posted = 0, spont = 1, m_accept = 1, reserved = 7751}, modState = {i = 0}}, p = {xp = 842, yp = 315}, 
          g = {xp = 903, yp = 385}, b = Qt::LeftButton, mouseState = {i = 0}}
        w = 0xb6241b0
        mouse = 0x7fffffffc8b0
        eventAccepted = <optimized out>
        relpos = {xp = 842, yp = 315}
        pw = {o = 0xb6241b0}
        d = 0x675870
        res = <optimized out>
#16 0x00007ffff3b365dd in KApplication::notify (this=0x7fffffffd410, receiver=0xb6241b0, event=0x7fffffffc8b0)
    at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/kernel/kapplication.cpp:311
        t = <optimized out>
#17 0x00007ffff20787ac in QCoreApplication::notifyInternal (this=0x7fffffffd410, receiver=0xb6241b0, event=0x7fffffffc8b0) at kernel/qcoreapplication.cpp:876
        threadData = 0x6021f0
        returnValue = <optimized out>
        result = false
        cbdata = {0xb6241b0, 0x7fffffffc8b0, 0x7fffffffc61f}
        d = <optimized out>
#18 0x00007ffff2d220b4 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
No locals.
#19 QApplicationPrivate::sendMouseEvent (receiver=0xb6241b0, event=0x7fffffffc8b0, alienWidget=0x0, nativeWidget=0xb6241b0, buttonDown=<optimized out>, lastMouseReceiver=..., 
    spontaneous=true) at kernel/qapplication.cpp:3161
        alienGuard = {o = 0x0}
        receiverGuard = {o = 0xb6241b0}
        nativeGuard = {o = 0xb6241b0}
        activePopupWidget = {o = 0x0}
        wasLeaveAfterRelease = false
        result = <optimized out>
#20 0x00007ffff2da9968 in QETWidget::translateMouseEvent (this=0xb6241b0, event=<optimized out>) at kernel/qapplication_x11.cpp:4494
        alienWidget = 0x0
        widget = 0xb6241b0
        oldOpenPopupCount = 0
        e = {<QInputEvent> = {<QEvent> = {_vptr.QEvent = 0x7ffff3899b30, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff21704e0 "QEvent", 
                  data = 0x7ffff2170ec0, extradata = 0x0}}, d = 0x0, t = 3, posted = 0, spont = 1, m_accept = 1, reserved = 17}, modState = {i = 0}}, p = {xp = 842, yp = 315}, 
          g = {xp = 903, yp = 385}, b = Qt::LeftButton, mouseState = {i = 0}}
        type = QEvent::MouseButtonRelease
        globalPos = {xp = 903, yp = 385}
        button = Qt::LeftButton
        buttons = <optimized out>
        nextEvent = {type = 5, xany = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775}, xkey = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, y = 315, x_root = 903, y_root = 385, state = 256, keycode = 1, 
            same_screen = 1}, xbutton = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, 
            y = 315, x_root = 903, y_root = 385, state = 256, button = 1, same_screen = 1}, xmotion = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, 
            window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, y = 315, x_root = 903, y_root = 385, state = 256, is_hint = 1 '\001', same_screen = 1}, 
          xcrossing = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, y = 315, 
            x_root = 903, y_root = 385, mode = 256, detail = 1, same_screen = 1, focus = 0, state = 48}, xfocus = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, 
            window = 73400775, mode = 346, detail = 0}, xexpose = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, x = 346, y = 0, width = 0, 
            height = 0, count = 787004186}, xgraphicsexpose = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, drawable = 73400775, x = 346, y = 0, width = 0, 
            height = 0, count = 787004186, major_code = 0, minor_code = 842}, xnoexpose = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, drawable = 73400775, 
            major_code = 346, minor_code = 0}, xvisibility = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, state = 346}, xcreatewindow = {
            type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, parent = 73400775, window = 346, x = 0, y = 0, width = 787004186, height = 0, border_width = 842, 
            override_redirect = 315}, xdestroywindow = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346}, xunmap = {type = 5, 
            serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346, from_configure = 0}, xmap = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, event = 73400775, window = 346, override_redirect = 0}, xmaprequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, 
            parent = 73400775, window = 346}, xreparent = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346, parent = 0, 
            x = 787004186, y = 0, override_redirect = 842}, xconfigure = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346, x = 0, 
            y = 0, width = 787004186, height = 0, border_width = 842, above = 1653562409863, override_redirect = 256}, xgravity = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, event = 73400775, window = 346, x = 0, y = 0}, xresizerequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, 
            width = 346, height = 0}, xconfigurerequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, parent = 73400775, window = 346, x = 0, y = 0, 
            width = 787004186, height = 0, border_width = 842, above = 1653562409863, detail = 256, value_mask = 1}, xcirculate = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, event = 73400775, window = 346, place = 0}, xcirculaterequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, parent = 73400775, 
            window = 346, place = 0}, xproperty = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, atom = 346, time = 0, state = 787004186}, 
          xselectionclear = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, selection = 346, time = 0}, xselectionrequest = {type = 5, 
            serial = 7335, send_event = 0, display = 0x68bbc0, owner = 73400775, requestor = 346, selection = 0, target = 787004186, property = 1352914699082, 
            time = 1653562409863}, xselection = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, requestor = 73400775, selection = 346, target = 0, 
            property = 787004186, time = 1352914699082}, xcolormap = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, colormap = 346, c_new = 0, 
            state = 0}, xclient = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, message_type = 346, format = 0, data = {
              b = "\032\273\350.\000\000\000\000J\003\000\000;\001\000\000\207\003\000", s = {-17638, 12008, 0, 0, 842, 0, 315, 0, 903, 0}, l = {787004186, 1352914699082, 
                1653562409863, 4294967552, 1}}}, xmapping = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, request = 346, first_keycode = 0, 
            count = 0}, xerror = {type = 5, display = 0x1ca7, resourceid = 0, serial = 6863808, error_code = 199 '\307', request_code = 1 '\001', minor_code = 96 '`'}, 
          xkeymap = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, 
            key_vector = "Z\001", '\000' <repeats 14 times>, "\032\273\350.\000\000\000\000J\003\000\000;\001\000"}, xgeneric = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, extension = 73400775, evtype = 0}, xcookie = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, extension = 73400775, evtype = 0, 
            cookie = 346, data = 0x0}, pad = {140733193388037, 7335, 0, 6863808, 73400775, 346, 0, 787004186, 1352914699082, 1653562409863, 4294967552, 1, 48, 9611808, 
            4294967296, 193, 9612128, 9612432, 65, 9598704, 9772448, 32, 32, 9772448}}
        d = <optimized out>
        pos = {xp = 842, yp = 315}
        modifiers = {i = 0}
#21 0x00007ffff2da842a in QApplication::x11ProcessEvent (this=0x7fffffffd410, event=0x7fffffffcff0) at kernel/qapplication_x11.cpp:3620
        alien = <optimized out>
        enter = <optimized out>
        leave = <optimized out>
        loopLevelCounter = {threadData = 0x6021f0}
        widget = 0xb6241b0
        keywidget = <optimized out>
        grabbed = false
        d = 0x675870
#22 0x00007ffff2dd18f2 in x11EventSourceDispatch (s=0x678db0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
        event = {type = 5, xany = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775}, xkey = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, y = 315, x_root = 903, y_root = 385, state = 256, keycode = 1, 
            same_screen = 1}, xbutton = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, 
            y = 315, x_root = 903, y_root = 385, state = 256, button = 1, same_screen = 1}, xmotion = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, 
            window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, y = 315, x_root = 903, y_root = 385, state = 256, is_hint = 1 '\001', same_screen = 1}, 
          xcrossing = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, root = 346, subwindow = 0, time = 787004186, x = 842, y = 315, 
            x_root = 903, y_root = 385, mode = 256, detail = 1, same_screen = 1, focus = 0, state = 48}, xfocus = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, 
            window = 73400775, mode = 346, detail = 0}, xexpose = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, x = 346, y = 0, width = 0, 
            height = 0, count = 787004186}, xgraphicsexpose = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, drawable = 73400775, x = 346, y = 0, width = 0, 
            height = 0, count = 787004186, major_code = 0, minor_code = 842}, xnoexpose = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, drawable = 73400775, 
            major_code = 346, minor_code = 0}, xvisibility = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, state = 346}, xcreatewindow = {
            type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, parent = 73400775, window = 346, x = 0, y = 0, width = 787004186, height = 0, border_width = 842, 
            override_redirect = 315}, xdestroywindow = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346}, xunmap = {type = 5, 
            serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346, from_configure = 0}, xmap = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, event = 73400775, window = 346, override_redirect = 0}, xmaprequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, 
            parent = 73400775, window = 346}, xreparent = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346, parent = 0, 
            x = 787004186, y = 0, override_redirect = 842}, xconfigure = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, event = 73400775, window = 346, x = 0, 
            y = 0, width = 787004186, height = 0, border_width = 842, above = 1653562409863, override_redirect = 256}, xgravity = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, event = 73400775, window = 346, x = 0, y = 0}, xresizerequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, 
            width = 346, height = 0}, xconfigurerequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, parent = 73400775, window = 346, x = 0, y = 0, 
            width = 787004186, height = 0, border_width = 842, above = 1653562409863, detail = 256, value_mask = 1}, xcirculate = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, event = 73400775, window = 346, place = 0}, xcirculaterequest = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, parent = 73400775, 
            window = 346, place = 0}, xproperty = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, atom = 346, time = 0, state = 787004186}, 
          xselectionclear = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, selection = 346, time = 0}, xselectionrequest = {type = 5, 
            serial = 7335, send_event = 0, display = 0x68bbc0, owner = 73400775, requestor = 346, selection = 0, target = 787004186, property = 1352914699082, 
            time = 1653562409863}, xselection = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, requestor = 73400775, selection = 346, target = 0, 
            property = 787004186, time = 1352914699082}, xcolormap = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, colormap = 346, c_new = 0, 
            state = 0}, xclient = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, message_type = 346, format = 0, data = {
              b = "\032\273\350.\000\000\000\000J\003\000\000;\001\000\000\207\003\000", s = {-17638, 12008, 0, 0, 842, 0, 315, 0, 903, 0}, l = {787004186, 1352914699082, 
                1653562409863, 4294967552, 1}}}, xmapping = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, request = 346, first_keycode = 0, 
            count = 0}, xerror = {type = 5, display = 0x1ca7, resourceid = 0, serial = 6863808, error_code = 199 '\307', request_code = 1 '\001', minor_code = 96 '`'}, 
          xkeymap = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, window = 73400775, 
            key_vector = "Z\001", '\000' <repeats 14 times>, "\032\273\350.\000\000\000\000J\003\000\000;\001\000"}, xgeneric = {type = 5, serial = 7335, send_event = 0, 
            display = 0x68bbc0, extension = 73400775, evtype = 0}, xcookie = {type = 5, serial = 7335, send_event = 0, display = 0x68bbc0, extension = 73400775, evtype = 0, 
            cookie = 346, data = 0x0}, pad = {140733193388037, 7335, 0, 6863808, 73400775, 346, 0, 787004186, 1352914699082, 1653562409863, 4294967552, 1, 48, 9611808, 
            4294967296, 193, 9612128, 9612432, 65, 9598704, 9772448, 32, 32, 9772448}}
        source = 0x678db0
        marker = 7336
#23 0x00007fffec2d388d in g_main_dispatch (context=0x678820) at gmain.c:2441
        dispatch = 0x7ffff2dd1750 <x11EventSourceDispatch(GSource*, GSourceFunc, gpointer)>
        was_in_call = 0
        user_data = 0x0
        callback = 0
        cb_funcs = 0x0
        cb_data = 0x0
        current_source_link = {data = 0x678db0, next = 0x0}
        need_destroy = <optimized out>
        source = 0x678db0
        current = 0x677ac0
        i = <optimized out>
#24 g_main_context_dispatch (context=0x678820) at gmain.c:3011
No locals.
#25 0x00007fffec2d4088 in g_main_context_iterate (context=0x678820, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3089
        max_priority = 2147483647
        timeout = 16
        some_ready = 1
        nfds = 10
        allocated_nfds = <optimized out>
        fds = <optimized out>
#26 0x00007fffec2d4259 in g_main_context_iteration (context=0x678820, may_block=1) at gmain.c:3152
        retval = <optimized out>
#27 0x00007ffff20aae3f in QEventDispatcherGlib::processEvents (this=0x675180, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
        d = 0x676290
        canWait = true
        savedFlags = {i = 0}
        result = <optimized out>
#28 0x00007ffff2dd156e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
        d = 0x676290
        saved_flags = {i = 0}
        returnValue = 128
#29 0x00007ffff2076d62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
        d = 0x9c5300
#30 0x00007ffff2076fa7 in QEventLoop::exec (this=0x7fffffffd3d0, flags=...) at kernel/qeventloop.cpp:204
        d = 0x9c5300
        locker = {val = 6300424}
        app = 0x7fffffffd410
        eventLoop = 0x602260
#31 0x00007ffff207c4e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
        threadData = 0x6021f0
        eventLoop = {<QObject> = {_vptr.QObject = 0x7ffff23db630, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff215c880 "QObject", data = 0x7ffff215c920, 
                extradata = 0x7ffff23d8b60}}, static staticMetaObjectExtraData = {objects = 0x0, 
              static_metacall = 0x7ffff2092e50 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {d = 0x9c5300}, static staticQtMetaObject = {
              d = {superdata = 0x0, stringdata = 0x7ffff2166680 "Qt", data = 0x7ffff2169fa0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff23d8b40, 
              stringdata = 0x7ffff21702c0 "QEventLoop", data = 0x7ffff21702e0, extradata = 0x7ffff23db6c0}}, static staticMetaObjectExtraData = {objects = 0x0, 
            static_metacall = 0x7ffff20e0e50 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}
        returnCode = <optimized out>
#32 0x00007ffff7bdafe5 in kdemain (argc=<optimized out>, argv=0x7fffffffd5a8) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/main.cpp:50
        options = {d = 0x66c840}
        app = {<KApplication> = {<QApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x7ffff774b050, static staticMetaObject = {d = {superdata = 0x0, 
                      stringdata = 0x7ffff215c880 "QObject", data = 0x7ffff215c920, extradata = 0x7ffff23d8b60}}, static staticMetaObjectExtraData = {objects = 0x0, 
                    static_metacall = 0x7ffff2092e50 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {d = 0x675870}, 
                  static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff2166680 "Qt", data = 0x7ffff2169fa0, extradata = 0x0}}}, static staticMetaObject = {d = {
                    superdata = 0x7ffff23d8b40, stringdata = 0x7ffff2170380 "QCoreApplication", data = 0x7ffff2170420, extradata = 0x7ffff23db7a0}}, 
                static staticMetaObjectExtraData = {objects = 0x0, 
                  static_metacall = 0x7ffff20e0fb0 <QCoreApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, static self = 0x7fffffffd410}, 
              static staticMetaObject = {d = {superdata = 0x7ffff23db780, stringdata = 0x7ffff344d6a0 "QApplication", data = 0x7ffff344d8e0, extradata = 0x7ffff38994a0}}, 
              static staticMetaObjectExtraData = {objects = 0x0, static_metacall = 0x7ffff2d25980 <QApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}, 
            static staticMetaObject = {d = {superdata = 0x7ffff3899480, stringdata = 0x7ffff3cb0880 "KApplication", data = 0x7ffff3cb0a20, extradata = 0x7ffff3fc3f80}}, 
            static staticMetaObjectExtraData = {objects = 0x0, static_metacall = 0x7ffff3b39120 <KApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, 
            static loadedByKdeinit = false, static KApp = 0x7fffffffd410, d = 0x735e80}, static staticMetaObject = {d = {superdata = 0x7ffff3fc3f60, 
              stringdata = 0x7ffff7518cc0 "KoApplication", data = 0x7ffff7518d60, extradata = 0x7ffff774b120}}, static staticMetaObjectExtraData = {objects = 0x0, 
            static_metacall = 0x7ffff7456030 <KoApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d = 0x7d5da0, static m_starting = false}
#33 0x00007ffff0f4434d in __libc_start_main (main=0x4008b0 <main(int, char**)>, argc=1, ubp_av=0x7fffffffd5a8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffd598) at libc-start.c:226
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 1722162053337602051, 4196536, 140737488344480, 0, 0, -1722162052023691261, -1722142334209468413}, mask_was_saved = 0}}, 
          priv = {pad = {0x0, 0x0, 0x4009b0, 0x7fffffffd5a8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 4196784}}}
        not_first_call = <optimized out>
#34 0x00000000004008e1 in _start ()
No locals.


Reproducible: Always

Steps to Reproduce:
see details


Expected Results:  
should not crash
Comment 1 Francesco Riosa 2012-01-02 21:08:28 UTC
another session, same operations:

(gdb) run
Starting program: /usr/bin/karbon 
[Thread debugging using libthread_db enabled]
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
warning: the debug information found in "/usr/lib64/debug//usr/lib64/liblcms.so.1.0.19.debug" does not match "/usr/lib64/liblcms.so.1" (CRC mismatch).

warning: the debug information found in "/usr/lib64/debug/usr/lib64/liblcms.so.1.0.19.debug" does not match "/usr/lib64/liblcms.so.1" (CRC mismatch).

karbon(11984)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-vivo/ksycoca4"
karbon(11984)/kdecore (KLibrary) kde4Factory: The library "/usr/lib64/kde4/stateshape.so" does not offer a qt_plugin_instance function.
karbon(11984)/koffice (lib komain) KoOdfReadStore::loadAndParse: No store backend 
karbon(11984)/koffice (lib kopageapp) KoOdfLoadingContext::KoOdfLoadingContext: could not parse manifest document 
karbon(11984)/kotext TextShapeFactory::newDocumentResourceManager: No KUndo2Stack found in the document resource manager, creating a new one 
karbon(11984)/koffice (filter manager) KoFilterManager::filterAvailable: The library  ""  does not offer a check_ ""  function. 

karbon(11984)/kio (bookmarks) KBookmarkManager::KBookmarkManager: starting KDirWatch for  "/home/v/.local/share/user-places.xbel"
[New Thread 0x7fffd63bf700 (LWP 11987)]
karbon(11984)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("trash:/")
karbon(11984)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x962de0)
karbon(11984)/kio (Scheduler) KIO::SchedulerPrivate::protoQ: creating ProtoQueue instance for "trash"
karbon(11984)/kio (Scheduler) KIO::ProtoQueue::ProtoQueue: m_maxConnectionsTotal: 2 m_maxConnectionsPerHost: 2
karbon(11984)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x95b600)
karbon(11984)/kio (Scheduler) KIO::SchedulerPrivate::protoQ: creating ProtoQueue instance for "file"
karbon(11984)/kio (Scheduler) KIO::ProtoQueue::ProtoQueue: m_maxConnectionsTotal: 5 m_maxConnectionsPerHost: 5
karbon(11984)/kio (KDirListerCache) KDirListerCache::listDir: Entry currently being listed: KUrl("trash:/") by (KDirLister(0x97e250) )
karbon(11984)/kio (KDirListerCache) KDirListerCache::stopListingUrl: KDirLister(0xb08390)  url= KUrl("trash:/")
karbon(11984)/kio (Slave) KIO::Slave::createSlave: createSlave "trash" for KUrl("trash:/")
karbon(11984)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-vivo/karbonf11984.slave-socket"
karbon(11984)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///home/v")
karbon(11984)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-vivo/karbonJ11984.slave-socket"
karbon(11984)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::StatJob(0x95b600) KIO::Slave(0x9d6920)
karbon(11984)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::ListJob(0x962de0) KIO::Slave(0x963240)
karbon(11984)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("trash:/")
karbon(11984) KarbonPart::loadOdf: Start loading OASIS document...
karbon(11984) KarbonPart::loadOdf: Start loading OASIS document... "
 
  
   
  
 
 
  
   
  
 
"
karbon(11984) KarbonPart::loadOdf: Start loading OASIS contents... ""
karbon(11984) KarbonPart::loadOdf: Start loading OASIS contents... ""
karbon(11984) KarbonPart::loadOdf: Start loading OASIS contents... false
karbon(11984) KoGenericRegistry<T>::add: Registry already contains item "LABA" 
karbon(11984) KoGenericRegistry<T>::add: Registry already contains item "RGBA16" 
karbon(11984) KoGenericRegistry<T>::add: Registry already contains item "RGBA" 
[New Thread 0x7fffcf46b700 (LWP 11989)]
[Thread 0x7fffcf46b700 (LWP 11989) exited]
[New Thread 0x7fffcf46b700 (LWP 11990)]
[New Thread 0x7fffcec6a700 (LWP 11991)]
[Thread 0x7fffcf46b700 (LWP 11990) exited]
[Thread 0x7fffcec6a700 (LWP 11991) exited]
karbon(11984)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a KActionCollection containing actions! 
karbon(11984)/kparts KParts::Plugin::pluginInfos: found KParts Plugin :  "/usr/share/apps/karbon/kpartplugins/FlattenPathPlugin.rc"
karbon(11984)/kparts KParts::Plugin::pluginInfos: found KParts Plugin :  "/usr/share/apps/karbon/kpartplugins/RefinePathPlugin.rc"
karbon(11984)/kparts KParts::Plugin::pluginInfos: found KParts Plugin :  "/usr/share/apps/karbon/kpartplugins/RoundCornersPlugin.rc"
karbon(11984)/kparts KParts::Plugin::pluginInfos: found KParts Plugin :  "/usr/share/apps/karbon/kpartplugins/WhirlPinchPlugin.rc"
karbon(11984)/kparts KParts::Plugin::loadPlugins: load plugin  "flattenpathplugin"   "karbon_flattenpathplugin"   ""
karbon(11984)/kparts KParts::Plugin::loadPlugins: load plugin  "refinepathplugin"   "karbon_refinepathplugin"   ""
karbon(11984)/kparts KParts::Plugin::loadPlugins: load plugin  "roundcornersplugin"   "karbon_roundcornersplugin"   ""
karbon(11984)/kparts KParts::Plugin::loadPlugins: load plugin  "whirlpinchplugin"   "karbon_whirlpinchplugin"   ""
QObject::connect: Connecting from QTabBar::tabCloseRequested(int) to COMPAT slot (KTabBar::closeRequest(int))
Enchant dict for "en_US" 0xc8158e0 
Enchant dict for "en_US" 0xc8158e0 
Enchant dict for "en_US" 0xc8158e0 
Enchant dict for "en_US" 0xc8158e0 
Enchant dict for "en_US" 0xc8158e0 
Enchant dict for "en_US" 0xc8158e0 
karbon(11984)/kdeui (kdelibs): Shortcut for KAction  "object_ungroup" "Ungroup" set with QShortcut::setShortcut()! See KAction documentation. 
karbon(11984)/kdeui (kdelibs): Shortcut for KAction  "object_group" "Group" set with QShortcut::setShortcut()! See KAction documentation. 
karbon(11984)/kio (KDirListerCache) KDirListerCache::stopListingUrl: KDirLister(0x97e250)  url= KUrl("trash:/")
karbon(11984)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0x97e250) item moved into cache: KUrl("trash:/")
karbon(11984) KarbonCalligraphyOptionWidget::loadCurrentProfile: "Mouse"
karbon(11984) KarbonCalligraphyOptionWidget::loadCurrentProfile: 0 1
karbon(11984) KarbonCalligraphyOptionWidget::loadProfile: trying profile "Mouse"
karbon(11984) KarbonCalligraphyOptionWidget::loadCurrentProfile: "Mouse"
karbon(11984) KarbonCalligraphyOptionWidget::loadCurrentProfile: 1 1
karbon(11984) KarbonCalligraphyOptionWidget::removeProfile: removing profile "Current"
karbon(11984) KarbonCalligraphicShape::appendPointToPath: Adding caps!!!!!!!!!!!!!!!! 4
karbon(11984) KarbonCalligraphicShape::appendPointToPath: Adding caps!!!!!!!!!!!!!!!! 6

Program received signal SIGSEGV, Segmentation fault.
BezierII (degree=<optimized out>, V=0xcc1cf30, t=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:353
353                 Vtemp[j].setX((1.0 - t) * Vtemp[j].x() + t * Vtemp[j+1].x());
(gdb) bt
#0  BezierII (degree=<optimized out>, V=0xcc1cf30, t=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:353
#1  0x00007fffe111ded6 in ComputeMaxError (points=..., first=<optimized out>, last=22, curve=0xcc1cf30, u=<optimized out>, splitPoint=0x7fffffffb9ac) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:379
#2  0x00007fffe111f57d in FitCubic (points=..., first=0, last=22, tHat1=..., tHat2=..., error=0.300000012, width=@0x7fffffffba3c) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:498
#3  0x00007fffe112019d in bezierFit (points=..., error=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/KarbonCurveFit.cpp:562
#4  0x00007fffe112cce4 in KarbonSimplifyPath::simplifySubpath (subpath=0xbd6ee90, error=0.29999999999999999) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.cpp:242
#5  0x00007fffe112ceab in KarbonSimplifyPath::simplifySubpaths (subpaths=<optimized out>, error=0.29999999999999999) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.cpp:229
#6  0x00007fffe112cfbd in karbonSimplifyPath (path=0xc33ba0, error=0.29999999999999999) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonSimplifyPath.cpp:90
#7  0x00007fffe112b9a2 in KarbonCalligraphicShape::updatePath (this=0xc33ba0, size=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.cpp:310
#8  0x00007fffe112ac8b in KarbonCalligraphicShape::simplifyGuidePath (this=0xc33ba0) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.cpp:414
#9  0x00007fffe1123b14 in KarbonCalligraphyTool::mouseReleaseEvent (this=0xc9fe0e0, event=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp:142
#10 0x00007ffff68a7750 in KoToolProxy::mouseReleaseEvent (this=0xbd3c190, event=0x7fffffffc8b0, point=...) at /usr/src/debug/app-office/calligra-9999/calligra-9999/libs/flake/KoToolProxy.cpp:304
#11 0x00007ffff79b5da7 in KarbonCanvas::mouseReleaseEvent (this=0xbd5b8a0, e=<optimized out>) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/ui/widgets/KarbonCanvas.cpp:240
#12 0x00007ffff2d7a268 in QWidget::event (this=0xbd5b8a0, event=0x7fffffffc8b0) at kernel/qwidget.cpp:8361
#13 0x00007ffff2d20be2 in notify_helper (e=0x7fffffffc8b0, receiver=0xbd5b8a0, this=0x675870) at kernel/qapplication.cpp:4550
#14 QApplicationPrivate::notify_helper (this=0x675870, receiver=0xbd5b8a0, e=0x7fffffffc8b0) at kernel/qapplication.cpp:4522
#15 0x00007ffff2d272ad in QApplication::notify (this=<optimized out>, receiver=0xbd5b8a0, e=0x7fffffffc8b0) at kernel/qapplication.cpp:4093
#16 0x00007ffff3b365dd in KApplication::notify (this=0x7fffffffd410, receiver=0xbd5b8a0, event=0x7fffffffc8b0) at /usr/src/debug/kde-base/kdelibs-9999/kdelibs-9999/kdeui/kernel/kapplication.cpp:311
#17 0x00007ffff20787ac in QCoreApplication::notifyInternal (this=0x7fffffffd410, receiver=0xbd5b8a0, event=0x7fffffffc8b0) at kernel/qcoreapplication.cpp:876
#18 0x00007ffff2d220b4 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#19 QApplicationPrivate::sendMouseEvent (receiver=0xbd5b8a0, event=0x7fffffffc8b0, alienWidget=0x0, nativeWidget=0xbd5b8a0, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3161
#20 0x00007ffff2da9968 in QETWidget::translateMouseEvent (this=0xbd5b8a0, event=<optimized out>) at kernel/qapplication_x11.cpp:4494
#21 0x00007ffff2da842a in QApplication::x11ProcessEvent (this=0x7fffffffd410, event=0x7fffffffcff0) at kernel/qapplication_x11.cpp:3620
#22 0x00007ffff2dd18f2 in x11EventSourceDispatch (s=0x678db0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#23 0x00007fffec2d388d in g_main_dispatch (context=0x678820) at gmain.c:2441
#24 g_main_context_dispatch (context=0x678820) at gmain.c:3011
#25 0x00007fffec2d4088 in g_main_context_iterate (context=0x678820, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3089
#26 0x00007fffec2d4259 in g_main_context_iteration (context=0x678820, may_block=1) at gmain.c:3152
#27 0x00007ffff20aae3f in QEventDispatcherGlib::processEvents (this=0x675180, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#28 0x00007ffff2dd156e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007ffff2076d62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007ffff2076fa7 in QEventLoop::exec (this=0x7fffffffd3d0, flags=...) at kernel/qeventloop.cpp:204
#31 0x00007ffff207c4e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#32 0x00007ffff7bdafe5 in kdemain (argc=<optimized out>, argv=0x7fffffffd5a8) at /usr/src/debug/app-office/calligra-9999/calligra-9999/karbon/main.cpp:50
#33 0x00007ffff0f4434d in __libc_start_main (main=0x4008b0 <main(int, char**)>, argc=1, ubp_av=0x7fffffffd5a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd598) at libc-start.c:226
#34 0x00000000004008e1 in _start ()
(gdb)
Comment 2 Francesco Riosa 2012-01-02 21:14:49 UTC
I cannot reproduce Bug 290398 with a straigh line, but the "free hand" tool crash at the same place as the "calligraphy tool"
Comment 3 dasaan.san 2013-11-02 22:00:25 UTC
Unable to replicate with Karbon 2.6.4 in KDE 4.10.5
Comment 4 Justin Zobel 2020-12-13 03:58:06 UTC
Thank you for the crash report, Francesco.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 5 Francesco Riosa 2020-12-14 12:11:09 UTC
cannot reproduce