Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26366

Crash when trying to select encoding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 6.0.0-beta1
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:

      Description

      To reproduce:
      1. Open a project attached to the QTCREATORBUG-26028 task (QTCREATORBUG-26028.zip)
      2. Double click on "dialog.ui".
      3. The message dialog "An encoding error was encountered." appears. Select "Open" button and choose "Plain Text Editor".
      4. The text editor should be opened with the yellow bar on top, informing about the encoding issue. Click the "Select encoding" button there. After a while Creator crashes.

      The call stack:

      Thread 1 (Thread 0x7f925dc15940 (LWP 9171)):
      #0  0x00007f92619402a2 in raise () from /lib64/libc.so.6
      #1  0x00007f92619298a4 in abort () from /lib64/libc.so.6
      #2  0x00007f9261f39423 in qt_message_fatal (context=..., message=...) at /home/jarek/dev/qt-62/qtbase/src/corelib/global/qlogging.cpp:1898
      #3  0x00007f9261f35598 in QMessageLogger::fatal (this=0x7ffc3f1e4450, msg=0x7f92623bab28 "ASSERT: \"%s\" in file %s, line %d") at /home/jarek/dev/qt-62/qtbase/src/corelib/global/qlogging.cpp:890
      #4  0x00007f9261f2a5f0 in qt_assert (assertion=0x7f926245a5f8 "end - ba.constData() == length", file=0x7f926245a540 "/home/jarek/dev/qt-62/qtbase/src/corelib/text/qstringconverter.cpp", line=1030) at /home/jarek/dev/qt-62/qtbase/src/corelib/global/qglobal.cpp:3281
      #5  0x00007f9262176df8 in QUtf32::convertFromUnicode (in=..., state=0x7ffc3f1e4520, endian=DetectEndianness) at /home/jarek/dev/qt-62/qtbase/src/corelib/text/qstringconverter.cpp:1030
      #6  0x00007f926411f475 in QUtf32Codec::convertFromUnicode (this=0x4fba360, uc=0x50f7d00, len=901, state=0x7ffc3f1e4520) at /home/jarek/dev/qt-62/qt5compat/src/core5/codecs/qutfcodec.cpp:167
      #7  0x00007f9264183e89 in QTextCodec::fromUnicode (this=0x4fba360, str=...) at /home/jarek/dev/qt-62/qt5compat/src/core5/codecs/qtextcodec.cpp:839
      #8  0x00007f9245a94b49 in Core::CodecSelector::CodecSelector (this=0x7ffc3f1e4a40, parent=0x5009d50, doc=0x7f9248009c30) at /home/jarek/dev/creator-6/src/plugins/coreplugin/dialogs/codecselector.cpp:93
      #9  0x00007f9245712315 in TextEditor::TextEditorWidget::selectEncoding (this=0x5009d50) at /home/jarek/dev/creator-6/src/plugins/texteditor/texteditor.cpp:1352
      #10 0x00007f92457127dd in operator() (__closure=0x4fd8008) at /home/jarek/dev/creator-6/src/plugins/texteditor/texteditor.cpp:1422
      #11 0x00007f924573ec3a in std::__invoke_impl<void, TextEditor::Internal::TextEditorWidgetPrivate::updateCannotDecodeInfo()::<lambda()>&>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/11/bits/invoke.h:61
      #12 0x00007f924573d05d in std::__invoke_r<void, TextEditor::Internal::TextEditorWidgetPrivate::updateCannotDecodeInfo()::<lambda()>&>(struct {...} &) (__fn=...) at /usr/include/c++/11/bits/invoke.h:111
      #13 0x00007f924573bcf9 in std::_Function_handler<void(), TextEditor::Internal::TextEditorWidgetPrivate::updateCannotDecodeInfo()::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/11/bits/std_function.h:291
      #14 0x00007f926441c4dc in std::function<void ()>::operator()() const (this=0x4fd8008) at /usr/include/c++/11/bits/std_function.h:560
      #15 0x00007f92644192fa in operator() (__closure=0x4fd7fd0) at /home/jarek/dev/creator-6/src/libs/utils/infobar.cpp:323
      #16 0x00007f926441b173 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, Utils::InfoBarDisplay::update()::<lambda()> >::call(struct {...} &, void **) (f=..., arg=0x7ffc3f1e4e20) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qobjectdefs_impl.h:146
      #17 0x00007f926441b05f in QtPrivate::Functor<Utils::InfoBarDisplay::update()::<lambda()>, 0>::call<QtPrivate::List<>, void>(struct {...} &, void *, void **) (f=..., arg=0x7ffc3f1e4e20) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qobjectdefs_impl.h:256
      #18 0x00007f926441af86 in QtPrivate::QFunctorSlotObject<Utils::InfoBarDisplay::update()::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x4fd7fc0, r=0x5098f00, a=0x7ffc3f1e4e20, ret=0x0) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qobjectdefs_impl.h:420
      #19 0x00007f926202dc91 in QtPrivate::QSlotObjectBase::call (this=0x4fd7fc0, r=0x5098f00, a=0x7ffc3f1e4e20) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qobjectdefs_impl.h:375
      #20 0x00007f9262093443 in doActivate<false> (sender=0x5098f00, signal_index=9, argv=0x7ffc3f1e4e20) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qobject.cpp:3904
      #21 0x00007f926208bda9 in QMetaObject::activate (sender=0x5098f00, m=0x7f926403e880 <QAbstractButton::staticMetaObject>, local_signal_index=2, argv=0x7ffc3f1e4e20) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qobject.cpp:3964
      #22 0x00007f9263906042 in QAbstractButton::clicked (this=0x5098f00, _t1=false) at qtbase/src/widgets/Widgets_autogen/include/moc_qabstractbutton.cpp:290
      #23 0x00007f92639038c8 in QAbstractButtonPrivate::emitClicked (this=0x507c900) at /home/jarek/dev/qt-62/qtbase/src/widgets/widgets/qabstractbutton.cpp:414
      #24 0x00007f926390385a in QAbstractButtonPrivate::click (this=0x507c900) at /home/jarek/dev/qt-62/qtbase/src/widgets/widgets/qabstractbutton.cpp:407
      #25 0x00007f9263904d83 in QAbstractButton::mouseReleaseEvent (this=0x5098f00, e=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/widgets/widgets/qabstractbutton.cpp:1011
      #26 0x00007f9263a89bf3 in QToolButton::mouseReleaseEvent (this=0x5098f00, e=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/widgets/widgets/qtoolbutton.cpp:619
      #27 0x00007f92637be849 in QWidget::event (this=0x5098f00, event=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qwidget.cpp:8693
      #28 0x00007f9263904b89 in QAbstractButton::event (this=0x5098f00, e=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/widgets/widgets/qabstractbutton.cpp:968
      #29 0x00007f9263a8b291 in QToolButton::event (this=0x5098f00, event=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/widgets/widgets/qtoolbutton.cpp:1017
      #30 0x00007f926373f388 in QApplicationPrivate::notify_helper (this=0x8b5b70, receiver=0x5098f00, e=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qapplication.cpp:3401
      #31 0x00007f926373d16e in QApplication::notify (this=0x7ffc3f1e7210, receiver=0x5098f00, e=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qapplication.cpp:2865
      #32 0x00007f926200fc28 in QCoreApplication::notifyInternal2 (receiver=0x5098f00, event=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063
      #33 0x00007f9262010634 in QCoreApplication::sendSpontaneousEvent (receiver=0x5098f00, event=0x7ffc3f1e5bb0) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qcoreapplication.cpp:1483
      #34 0x00007f926373baf6 in QApplicationPrivate::sendMouseEvent (receiver=0x5098f00, event=0x7ffc3f1e5bb0, alienWidget=0x5098f00, nativeWidget=0xbc4610, buttonDown=0x7f9264072fe0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qapplication.cpp:2402
      #35 0x00007f92637f16f6 in QWidgetWindow::handleMouseEvent (this=0xd82970, event=0x7ffc3f1e6910) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qwidgetwindow.cpp:678
      #36 0x00007f92637efc8e in QWidgetWindow::event (this=0xd82970, event=0x7ffc3f1e6910) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qwidgetwindow.cpp:295
      #37 0x00007f926373f388 in QApplicationPrivate::notify_helper (this=0x8b5b70, receiver=0xd82970, e=0x7ffc3f1e6910) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qapplication.cpp:3401
      #38 0x00007f926373c935 in QApplication::notify (this=0x7ffc3f1e7210, receiver=0xd82970, e=0x7ffc3f1e6910) at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qapplication.cpp:2760
      #39 0x00007f926200fc28 in QCoreApplication::notifyInternal2 (receiver=0xd82970, event=0x7ffc3f1e6910) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063
      #40 0x00007f9262010634 in QCoreApplication::sendSpontaneousEvent (receiver=0xd82970, event=0x7ffc3f1e6910) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qcoreapplication.cpp:1483
      #41 0x00007f9262c2be64 in QGuiApplicationPrivate::processMouseEvent (e=0x50d0b40) at /home/jarek/dev/qt-62/qtbase/src/gui/kernel/qguiapplication.cpp:2246
      #42 0x00007f9262c2b2cd in QGuiApplicationPrivate::processWindowSystemEvent (e=0x50d0b40) at /home/jarek/dev/qt-62/qtbase/src/gui/kernel/qguiapplication.cpp:1997
      #43 0x00007f9262ca18c7 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /home/jarek/dev/qt-62/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1166
      #44 0x00007f925062f4af in xcbSourceDispatch (source=0x908020) at /home/jarek/dev/qt-62/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:93
      #45 0x00007f925eceb4cf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
      #46 0x00007f925ed3f4f8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
      #47 0x00007f925ece8c03 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
      #48 0x00007f926237a4aa in QEventDispatcherGlib::processEvents (this=0x900970, flags=...) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:429
      #49 0x00007f925062f6ec in QXcbGlibEventDispatcher::processEvents (this=0x900970, flags=...) at /home/jarek/dev/qt-62/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:132
      #50 0x00007f9262022313 in QEventLoop::processEvents (this=0x7ffc3f1e6e20, flags=...) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qeventloop.cpp:139
      #51 0x00007f9262022643 in QEventLoop::exec (this=0x7ffc3f1e6e20, flags=...) at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qeventloop.cpp:232
      #52 0x00007f926201043f in QCoreApplication::exec () at /home/jarek/dev/qt-62/qtbase/src/corelib/kernel/qcoreapplication.cpp:1378
      #53 0x00007f9262c2abc6 in QGuiApplication::exec () at /home/jarek/dev/qt-62/qtbase/src/gui/kernel/qguiapplication.cpp:1860
      #54 0x00007f926373c30f in QApplication::exec () at /home/jarek/dev/qt-62/qtbase/src/widgets/kernel/qapplication.cpp:2610
      #55 0x000000000040e0d0 in main (argc=3, argv=0x7ffc3f1e8448) at /home/jarek/dev/creator-6/src/app/main.cpp:771
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              jkobus Jarek Kobus
              Reporter:
              jkobus Jarek Kobus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes