https://bugs.kde.org/show_bug.cgi?id=456508

            Bug ID: 456508
           Summary: Kate crashes when invoking print preview for file
           Product: kate
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: nicolas.fe...@gmx.de
  Target Milestone: ---

STEPS TO REPRODUCE
1. Open a file 
2. In the left sidebar go to 'Documents'
3. right click on the file
4. Hit 'Print Preview'

#0  KTextEditor::ViewPrivate::selectionRange (this=0x0) at
/home/nico/kde/src/ktexteditor/src/view/kateview.cpp:4035
#1  0x00007ffff7c6a5dd in KateRenderer::decorationsForLine
(this=this@entry=0x1362c10, textLine=..., line=<optimized out>,
selectionsOnly=selectionsOnly@entry=false)
    at /home/nico/kde/src/ktexteditor/src/render/katerenderer.cpp:563
#2  0x00007ffff7c6b1be in KateRenderer::layoutLine (this=0x1362c10,
lineLayout=..., maxwidth=745, cacheLayout=cacheLayout@entry=false) at
/home/nico/kde/usr/include/QtCore/qshareddata.h:160
#3  0x00007ffff7c5f7fe in KatePrinter::PrintPainter::paintLine
(this=0x7fffffffbb10, painter=..., line=0, y=@0x7fffffffb6f0: 0,
remainder=@0x7fffffffb6f4: 0, pl=...)
    at /home/nico/kde/src/ktexteditor/src/printing/printpainter.cpp:632
#4  0x00007ffff7c603a1 in KatePrinter::PrintPainter::paint
(this=0x7fffffffbb10, printer=0x7fffffffba90) at
/home/nico/kde/src/ktexteditor/src/printing/printpainter.cpp:206
#5  0x00007ffff5a053a4 in QtPrivate::QSlotObjectBase::call (a=0x7fffffffb890,
r=0x7fffffffbaf0, this=0x12c4f20) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#6  doActivate<false> (sender=0x7fffffffbac0, signal_index=10,
argv=0x7fffffffb890) at kernel/qobject.cpp:3886
#7  0x00007ffff59fec1f in QMetaObject::activate (sender=<optimized out>,
m=m@entry=0x7ffff4ce30c0 <QPrintPreviewDialog::staticMetaObject>,
local_signal_index=local_signal_index@entry=0, 
    argv=argv@entry=0x7fffffffb890) at kernel/qobject.cpp:3946
#8  0x00007ffff4cc4fbf in QPrintPreviewDialog::paintRequested (this=<optimized
out>, _t1=<optimized out>) at .moc/moc_qprintpreviewdialog.cpp:184
#9  0x00007ffff5a053d4 in doActivate<false> (sender=0x13642d0, signal_index=7,
argv=0x7fffffffb970) at kernel/qobject.cpp:3898
#10 0x00007ffff59fec1f in QMetaObject::activate (sender=sender@entry=0x13642d0,
m=m@entry=0x7ffff4ce19a0 <QPrintPreviewWidget::staticMetaObject>,
local_signal_index=local_signal_index@entry=0, 
    argv=argv@entry=0x7fffffffb970) at kernel/qobject.cpp:3946
#11 0x00007ffff4cab30f in QPrintPreviewWidget::paintRequested
(this=this@entry=0x13642d0, _t1=<optimized out>) at
.moc/moc_qprintpreviewwidget.cpp:246
#12 0x00007ffff4cad111 in QPrintPreviewWidgetPrivate::generatePreview
(this=this@entry=0xd988f0) at widgets/qprintpreviewwidget.cpp:399
#13 0x00007ffff4cad274 in QPrintPreviewWidget::updatePreview (this=<optimized
out>) at widgets/qprintpreviewwidget.cpp:799
#14 0x00007ffff4cc8119 in QPrintPreviewDialog::setVisible (this=0x7fffffffbac0,
visible=<optimized out>) at dialogs/qprintpreviewdialog.cpp:730
#15 0x00007ffff6889e21 in QDialog::exec (this=this@entry=0x7fffffffbac0) at
dialogs/qdialog.cpp:593
#16 0x00007ffff7c5b314 in KatePrinter::printPreview (doc=<optimized out>) at
/home/nico/kde/src/ktexteditor/src/printing/kateprinter.cpp:208
#17 0x00007ffff5a053a4 in QtPrivate::QSlotObjectBase::call (a=0x7fffffffbcc0,
r=0x96e9f0, this=0x9b1ec0) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#18 doActivate<false> (sender=0x9b2070, signal_index=4, argv=0x7fffffffbcc0) at
kernel/qobject.cpp:3886
#19 0x00007ffff59fec1f in QMetaObject::activate (sender=sender@entry=0x9b2070,
m=m@entry=0x7ffff6b80c00 <QAction::staticMetaObject>,
local_signal_index=local_signal_index@entry=1, 
    argv=argv@entry=0x7fffffffbcc0) at kernel/qobject.cpp:3946
#20 0x00007ffff66963d2 in QAction::triggered (this=this@entry=0x9b2070,
_t1=<optimized out>) at .moc/moc_qaction.cpp:376
#21 0x00007ffff6698dbb in QAction::activate (this=0x9b2070, event=<optimized
out>) at kernel/qaction.cpp:1161
#22 0x00007ffff680b4c2 in QMenuPrivate::activateCausedStack
(this=this@entry=0xe06860, causedStack=..., action=action@entry=0x9b2070,
action_e=action_e@entry=QAction::Trigger, self=self@entry=true)
    at widgets/qmenu.cpp:1384
#23 0x00007ffff6812e34 in QMenuPrivate::activateAction (this=0xe06860,
action=0x9b2070, action_e=QAction::Trigger, self=<optimized out>) at
widgets/qmenu.cpp:1461
#24 0x00007ffff66da928 in QWidget::event (this=0x7fffffffc8d0,
event=0x7fffffffc1b0) at kernel/qwidget.cpp:9033
#25 0x00007ffff669c2de in QApplicationPrivate::notify_helper
(this=this@entry=0x43d9f0, receiver=receiver@entry=0x7fffffffc8d0,
e=e@entry=0x7fffffffc1b0) at kernel/qapplication.cpp:3637
#26 0x00007ffff66a4262 in QApplication::notify (this=<optimized out>,
receiver=0x7fffffffc8d0, e=<optimized out>) at kernel/qapplication.cpp:3081
#27 0x00007ffff59d0508 in QCoreApplication::notifyInternal2
(receiver=0x7fffffffc8d0, event=0x7fffffffc1b0) at
kernel/qcoreapplication.cpp:1064
#28 0x00007ffff66a240b in QApplicationPrivate::sendMouseEvent
(receiver=0x7fffffffc8d0, event=event@entry=0x7fffffffc1b0,
alienWidget=<optimized out>, nativeWidget=0x7fffffffc8d0, 
    buttonDown=buttonDown@entry=0x7ffff6bafa10 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at
kernel/qapplication.cpp:2619
#29 0x00007ffff66f2ff1 in QWidgetWindow::handleMouseEvent (this=0x1305b00,
event=0x7fffffffc440) at kernel/qwidgetwindow.cpp:580
#30 0x00007ffff66f5d19 in QWidgetWindow::event (this=0x1305b00,
event=0x7fffffffc440) at kernel/qwidgetwindow.cpp:300
#31 0x00007ffff669c2de in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x1305b00, e=0x7fffffffc440) at kernel/qapplication.cpp:3637
#32 0x00007ffff59d0508 in QCoreApplication::notifyInternal2
(receiver=0x1305b00, event=0x7fffffffc440) at kernel/qcoreapplication.cpp:1064
#33 0x00007ffff5f9c6b4 in QGuiApplicationPrivate::processMouseEvent
(e=0xdf40e0) at kernel/qguiapplication.cpp:2282
#34 0x00007ffff5f7136c in QWindowSystemInterface::sendWindowSystemEvents
(flags=...) at kernel/qwindowsysteminterface.cpp:1169
#35 0x00007ffff2421640 in userEventSourceDispatch (source=<optimized out>) at
qeventdispatcher_glib.cpp:74

Kate + Frameworks from master branch

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to