Version: (using Devel) Compiler: gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2 OS: Linux Installed from: Compiled sources Open a relatively large jpeg (I used kubuntu-leaflet.jpg in the examples directory that comes with ubuntu image is 1748x2480 pixels); pick the crop tool and drag out an area (relatively small area - just the kubuntu logo) from tool properties select crop; crash backtrace: Application: Krita (krita), signal SIGFPE Thread 1 (Thread 0xb4db26c0 (LWP 8804)): [KCrash Handler] #5 0xb56f9f7e in QImageScale::qimageCalcXPoints (sw=<value optimized out>, dw=0) at /home/kdev/kde/src/kdesupport/qimageblitz/blitz/scale.cpp:192 #6 0xb56fa1f5 in QImageScale::qimageCalcScaleInfo (img=@0xbffef6ac, sw=1, sh=1, dw=0, dh=0, aa=1 '\001') at /home/kdev/kde/src/kdesupport/qimageblitz/blitz/scale.cpp:284 #7 0xb56fa472 in Blitz::smoothScale (src=@0xbffef6ac, sz=@0xbffef6e8, aspectRatio=Qt::IgnoreAspectRatio) at /home/kdev/kde/src/kdesupport/qimageblitz/blitz/scale.cpp:117 #8 0xb7e2cd93 in KisPrescaledProjection::drawScaledImage (this=0xd51e850, rc=@0xbffef950, gc=@0xbffef8dc, isDeferredAction=false) at /home/kdev/kde/src/koffice/krita/ui/canvas/kis_prescaled_projection.cpp:592 #9 0xb7e2e076 in KisPrescaledProjection::preScale (this=0xd51e850, rc=@0xbffef950) at /home/kdev/kde/src/koffice/krita/ui/canvas/kis_prescaled_projection.cpp:375 #10 0xb7e2f463 in KisPrescaledProjection::updateCanvasProjection (this=0xd51e850, rc=@0xd4c981c) at /home/kdev/kde/src/koffice/krita/ui/canvas/kis_prescaled_projection.cpp:340 #11 0xb7e1fcb4 in KisCanvas2::updateCanvasProjection (this=0xd51da80, rc=@0xd4c981c) at /home/kdev/kde/src/koffice/krita/ui/canvas/kis_canvas2.cpp:304 #12 0xb7e2115d in KisCanvas2::qt_metacall (this=0xd51da80, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbffefb7c) at /home/kdev/kde/build/koffice/krita/ui/kis_canvas2.moc:78 #13 0xb6f18788 in QMetaObject::activate (sender=0x9fbfa00, from_signal_index=8, to_signal_index=8, argv=0xbffefb7c) at kernel/qobject.cpp:3031 #14 0xb6f18d3b in QMetaObject::activate (sender=0x9fbfa00, m=0xb7dbbb28, local_signal_index=4, argv=0xbffefb7c) at kernel/qobject.cpp:3101 #15 0xb7ce4d33 in KisImage::sigImageUpdated (this=0x9fbfa00, _t1=@0xd4c981c) at /home/kdev/kde/build/koffice/krita/image/kis_image.moc:150 #16 0xb7ce4d64 in KisImage::slotProjectionUpdated (this=0x9fbfa00, rc=@0xd4c981c) at /home/kdev/kde/src/koffice/krita/image/kis_image.cc:1143 #17 0xb7d49dae in KisTopDownUpdateStrategy::setDirty (this=0x9fe58c8, rc=@0xd4c981c) at /home/kdev/kde/src/koffice/krita/image/kis_top_down_update_strategy.cpp:330 #18 0xb7cfd3ae in KisNode::setDirty (this=0xb377690, rc=@0xd4c981c) at /home/kdev/kde/src/koffice/krita/image/kis_node.cpp:115 #19 0xb7d49d7b in KisTopDownUpdateStrategy::setDirty (this=0xa896848, rc=@0xd4c981c) at /home/kdev/kde/src/koffice/krita/image/kis_top_down_update_strategy.cpp:327 #20 0xb7cfd3ae in KisNode::setDirty (this=0x9f189f0, rc=@0xd4c981c) at /home/kdev/kde/src/koffice/krita/image/kis_node.cpp:115 #21 0xb7ca685c in KisNodeMoveCommand::moveTo (this=0xd4c9810, pos=@0xd4c9834) at /home/kdev/kde/src/koffice/krita/image/commands/kis_node_commands.cc:56 #22 0xb7ca6c14 in KisNodeMoveCommand::redo (this=0xd4c9810) at /home/kdev/kde/src/koffice/krita/image/commands/kis_node_commands.cc:43 #23 0xb6709980 in QUndoStack::push (this=0xaea6c18, cmd=0xd4c9810) at util/qundostack.cpp:539 #24 0xb711e911 in KoDocument::addCommand (this=0x9fac800, command=0xd4c9810) at /home/kdev/kde/src/koffice/libs/main/KoDocument.cpp:2675 #25 0xb7d55d8e in KisUndoAdapter::addCommand (this=0xae66de8, command=0xd4c9810) at /home/kdev/kde/src/koffice/krita/image/kis_undo_adapter.cc:60 #26 0xb7cf20e6 in KisCropVisitor::cropPaintDeviceLayer (this=0xbffeff90, layer=0x9f189f0) at /home/kdev/kde/src/koffice/krita/image/kis_crop_visitor.h:115 #27 0xb7d0e3f8 in KisPaintLayer::accept (this=0x9f189f0, v=@0xbffeff90) at /home/kdev/kde/src/koffice/krita/image/kis_paint_layer.cc:176 #28 0xb7cf1665 in KisCropVisitor::visit (this=0xbffeff90, layer=0xb377690) at /home/kdev/kde/src/koffice/krita/image/kis_crop_visitor.h:76 #29 0xb7cdda18 in KisGroupLayer::accept (this=0xb377690, v=@0xbffeff90) at /home/kdev/kde/src/koffice/krita/image/kis_group_layer.cc:180 #30 0xb7ce677c in KisImage::resize (this=0x9fbfa00, w=448, h=337, x=1122, y=20, cropLayers=true) at /home/kdev/kde/src/koffice/krita/image/kis_image.cc:397 #31 0xb7ce6972 in KisImage::resize (this=0x9fbfa00, rc=@0xbfff0074, cropLayers=<value optimized out>) at /home/kdev/kde/src/koffice/krita/image/kis_image.cc:373 #32 0xb2df8acf in KisToolCrop::crop (this=0xd57fad8) at /home/kdev/kde/src/koffice/krita/plugins/tools/tool_crop/kis_tool_crop.cc:419 #33 0xb2dfa853 in KisToolCrop::qt_metacall (this=0xd57fad8, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfff020c) at /home/kdev/kde/build/koffice/krita/plugins/tools/tool_crop/kis_tool_crop.moc:121 #34 0xb6f18788 in QMetaObject::activate (sender=0xd7a0390, from_signal_index=29, to_signal_index=30, argv=0xbfff020c) at kernel/qobject.cpp:3031 #35 0xb6f18aa0 in QMetaObject::activate (sender=0xd7a0390, m=0xb6925324, from_local_signal_index=2, to_local_signal_index=3, argv=0xbfff020c) at kernel/qobject.cpp:3121 #36 0xb6713c88 in QAbstractButton::clicked (this=0xd7a0390, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:185 #37 0xb63f7d76 in QAbstractButtonPrivate::emitClicked (this=0xd714188) at widgets/qabstractbutton.cpp:538 #38 0xb63f91b1 in QAbstractButtonPrivate::click (this=0xd714188) at widgets/qabstractbutton.cpp:531 #39 0xb63f94aa in QAbstractButton::mouseReleaseEvent (this=0xd7a0390, e=0xbfff08c8) at widgets/qabstractbutton.cpp:1110 #40 0xb60603b1 in QWidget::event (this=0xd7a0390, event=0xbfff08c8) at kernel/qwidget.cpp:7163 #41 0xb63f7d0f in QAbstractButton::event (this=0xd7a0390, e=0xbfff08c8) at widgets/qabstractbutton.cpp:1072 #42 0xb64c591f in QPushButton::event (this=0xd7a0390, e=0xbfff08c8) at widgets/qpushbutton.cpp:652 #43 0xb5ff54bf in QApplicationPrivate::notify_helper (this=0x9d52ad0, receiver=0xd7a0390, e=0xbfff08c8) at kernel/qapplication.cpp:3803 #44 0xb5ff5fcc in QApplication::notify (this=0xbfff115c, receiver=0xd7a0390, e=0xbfff08c8) at kernel/qapplication.cpp:3528 #45 0xb7811fdd in KApplication::notify (this=0xbfff115c, receiver=0xd7a0390, event=0xbfff08c8) at /home/kdev/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307 #46 0xb6efff07 in QCoreApplication::notifyInternal (this=0xbfff115c, receiver=0xd7a0390, event=0xbfff08c8) at kernel/qcoreapplication.cpp:587 #47 0xb6003703 in QCoreApplication::sendSpontaneousEvent (receiver=0xd7a0390, event=0xbfff08c8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212 #48 0xb5ffa88f in QApplicationPrivate::sendMouseEvent (receiver=0xd7a0390, event=0xbfff08c8, alienWidget=0xd7a0390, nativeWidget=0xa04a018, buttonDown=0xb69329e0, lastMouseReceiver=@0xb69329e4) at kernel/qapplication.cpp:2793 #49 0xb6087f31 in QETWidget::translateMouseEvent (this=0xa04a018, event=0xbfff0e9c) at kernel/qapplication_x11.cpp:4042 #50 0xb6088f63 in QApplication::x11ProcessEvent (this=0xbfff115c, event=0xbfff0e9c) at kernel/qapplication_x11.cpp:3038 #51 0xb60b834a in x11EventSourceDispatch (s=0x9d55a50, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142 #52 0xb52216f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #53 0xb5224da3 in ?? () from /usr/lib/libglib-2.0.so.0 #54 0xb5224f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #55 0xb6f35f9a in QEventDispatcherGlib::processEvents (this=0x9d51cb0, flags={i = -1073803180}) at kernel/qeventdispatcher_glib.cpp:319 #56 0xb60b79bc in QGuiEventDispatcherGlib::processEvents (this=0x9d51cb0, flags={i = -1073803132}) at kernel/qguieventdispatcher_glib.cpp:198 #57 0xb6efc588 in QEventLoop::processEvents (this=0xbfff1108, flags={i = -1073803072}) at kernel/qeventloop.cpp:143 #58 0xb6efc7c6 in QEventLoop::exec (this=0xbfff1108, flags={i = -1073802992}) at kernel/qeventloop.cpp:194 #59 0xb6f00881 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845 #60 0xb5ff51d8 in QApplication::exec () at kernel/qapplication.cpp:3331 #61 0xb7fd2726 in kdemain (argc=1, argv=0xbfff1254) at /home/kdev/kde/src/koffice/krita/main.cc:56 #62 0x080487f2 in main (argc=0, argv=0x0) at /home/kdev/kde/build/koffice/krita/krita_dummy.cpp:3
i can confirm
SVN commit 882375 by berger: don't crash when cropping a very very big image into a very very small area BUG:174718 M +17 -14 kis_prescaled_projection.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=882375
You need to log in before you can comment on or make changes to this bug.