Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106120

Segmentation Fault, while debugging qml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.3.1
    • None
    • Linux x86(Linux Mint 20.2 Cinnamon 5.0.7)
    • Linux/X11

    Description

      Hi, I ran into the following problem. When using QML debugging, segmentation fault occurs immediately with the following stack

      1 QFont::family() const 0x7ffff7585a55
      2 QQuickFontValueType::family() const 0x7ffff0da2b12
      3 QQuickFontValueType::qt_static_metacall(QObject *, QMetaObject::Call, int, void * *) 0x7ffff0da31a0
      4 QMetaProperty::read(QObject const *) const 0x7ffff6cbe8ea
      5 QQmlWatchProxy::notifyValueChanged() 0x7ffff10b812f
      6 QQmlWatcher::addPropertyWatch(int, QObject *, unsigned int, QMetaProperty const&) 0x7ffff10b93c7
      7 QQmlWatcher::addWatch(int, unsigned int) 0x7ffff10b9755
      8 QQmlEngineDebugServiceImpl::processMessage(QByteArray const&) 0x7ffff10b2e41
      9 QObject::event(QEvent *) 0x7ffff6d01097
      10 QCoreApplication::notifyInternal2(QObject *, QEvent *) 0x7ffff6caf0fa
      11 QCoreApplicationPrivate::sendPostedEvents(QObject *, int, QThreadData *) 0x7ffff6cb2384
      12 postEventSourceDispatch(_GSource *, int ( *)(void *), void *) 0x7ffff6f6bc67
      13 g_main_context_dispatch 0x7ffff617417d
      14 ?? 0x7ffff6174400
      15 g_main_context_iteration 0x7ffff61744a3
      16 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 0x7ffff6f6b578
      17 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) 0x7ffff6cbaf1b
      18 QCoreApplication::exec() 0x7ffff6cb69e6
      19 main main.cpp 19 0x555555556779

       

      If I remove "font.bold: true"(in main.qml) error does not occur. Moreover, if you set any property for fonts, segfault also crashes. There are no such errors during the release build.

      Source code in attachments

       

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              artgus Artem Gusev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes