Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
6.8.0
-
None
Description
This might be caused by https://codereview.qt-project.org/c/qt/qtdeclarative/+/537920/2/src/quick/items/qquicktextedit.cpp
This didn't happen with Qt 6.6.0 but happen with Qt 6.8 (dev) that I built yesterday and the code in question is https://invent.kde.org/office/marknote/-/blob/6d77234c21002637cedd441a32324c5eda0051be/src/qml/EditPage.qml#L295 and it always crash at startup.
More surprisingly this seems to fix the issue in my case: https://invent.kde.org/office/marknote/-/commit/c780d459c764295de79bbee71e41cdf9700a8c6a
Here is the backtrace:
{{#0 0x00007f2f0bb4bbd7 in QFixed::toReal (this=<optimized out>) at /home/carl/kde6/src/qtbase/src/gui/painting/qfixed_p.h:42
#1 QTextLine::ascent (this=this@entry=0x7ffc13308110) at /home/carl/kde6/src/qtbase/src/gui/text/qtextlayout.cpp:1503
#2 0x00007f2f0d8783c6 in QQuickTextEdit::updateSize (this=this@entry=0x2601650) at /home/carl/kde6/src/qtdeclarative/src/quick/items/qquicktextedit.cpp:3063
#3 0x00007f2f0d87b02d in QQuickTextEdit::q_textChanged (this=0x2601650) at /home/carl/kde6/src/qtdeclarative/src/quick/items/qquicktextedit.cpp:2851
#4 0x00007f2f0d87fd58 in QQuickTextEdit::qt_metacall (this=this@entry=0x2601650, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=59, _a=_a@entry=0x7ffc133082a8)
at /home/carl/kde6/build/qtdeclarative/src/quick/Quick_autogen/include/moc_qquicktextedit_p.cpp:1490
#5 0x00007f2f09b6883b in QQuickTextArea::qt_metacall (this=0x2601650, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7ffc133082a8)
at /home/carl/kde6/build/qtdeclarative/src/quicktemplates/QuickTemplates2_autogen/include/moc_qquicktextarea_p.cpp:527
#6 0x00007f2f0a5ea285 in doActivate<false> (sender=0x2605950, signal_index=3, argv=0x7ffc133082a8) at /home/carl/kde6/src/qtbase/src/corelib/kernel/qobject.cpp:4137
#7 0x00007f2f0d86e533 in QQuickTextControl::qt_metacall (this=0x2605950, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffc133083b8)
at /home/carl/kde6/build/qtdeclarative/src/quick/Quick_autogen/include/moc_qquicktextcontrol_p.cpp:461
#8 0x00007f2f0a5ea285 in doActivate<false> (sender=0x21f9de0, signal_index=4, argv=0x7ffc133083b8) at /home/carl/kde6/src/qtbase/src/corelib/kernel/qobject.cpp:4137
#9 0x00007f2f0a5e0207 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f2f0bf28000 <QTextDocument::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0)
at /home/carl/kde6/src/qtbase/src/corelib/kernel/qobject.cpp:4171
#10 0x00007f2f0bac96a7 in QTextDocument::contentsChanged (this=<optimized out>) at /home/carl/kde6/build/qtbase/src/gui/Gui_autogen/include/moc_qtextdocument.cpp:468
#11 0x00007f2f0bae4dfc in QTextDocumentPrivate::finishEdit (this=0x21f9e00) at /home/carl/kde6/src/qtbase/src/gui/text/qtextdocument_p.cpp:1218
#12 0x00007f2f0bae5ad6 in QTextDocumentPrivate::changeObjectFormat (this=0x21f9e00, obj=obj@entry=0x2605480, format=<optimized out>) at /home/carl/kde6/src/qtbase/src/gui/text/qtextdocument_p.cpp:1392
#13 0x00007f2f0bb5bdc5 in QTextObject::setFormat (this=this@entry=0x2605480, format=...) at /home/carl/kde6/src/qtbase/src/gui/text/qtextobject.cpp:114
#14 0x00007f2f0bacda6c in QTextFrame::setFrameFormat (aformat=..., this=0x2605480) at /home/carl/kde6/src/qtbase/src/gui/text/qtextobject.h:149
#15 QTextDocument::setDocumentMargin (this=<optimized out>, margin=59) at /home/carl/kde6/src/qtbase/src/gui/text/qtextdocument.cpp:782
#16 0x00007f2f0d8754dc in QQuickTextEdit::setTextMargin (this=0x2601650, margin=<optimized out>) at /home/carl/kde6/src/qtdeclarative/src/quick/items/qquicktextedit.cpp:1623
#17 0x00007f2f0b10e558 in QQmlPropertyData::writeProperty (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=<error reading variable: Cannot access memory at address 0x0>)
at /home/carl/kde6/src/qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:336
}}