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

Line: 1: Qt Quick emulation layer crashed on the simplest QML app

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/Wayland, Linux/X11, Windows

      Description

      When simplest Qt Quick application is created without even any modifications then Qt Quick emulation layer crashed.

       

      Qt 6.0.0 / 6.0.1
      Qt Creator 4.14
      OS: Ubuntu 20.04.1 LTS

      1. Open Qt Creator
      2. File -> New File or Project
      3. Application (Qt Quick) -> Qt Quick Application Empty
      4. Build System CMake
      5. Minimal required Qt version: Qt 5.15 // Why I can't choose 6.0??
      6. Open main.qml in Designer
      7. Select Form Editor tab in the Designer
      8. Error window shows "Line: 1: Qt Quick emulation layer crashed"

       

      Console output:

      user@user-Standard:~$ ~/Qt/Tools/QtCreator/bin/qtcreator
      Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
      si_init_perfcounters: max_sh_per_se = 2 not supported (inaccurate performance counters)
      QFileSystemWatcher::removePaths: list is empty
      QFileSystemWatcher::removePaths: list is empty
      Process crashed: QObject(0x0) exitCode: 11
      QProcess: Destroyed while process ("/home/daniel/Qt/Tools/QtCreator/libexec/qtcreator/qml2puppet") is still running.
      

      strace logs of issue are attached also. 

      What is interesting, when I change line 4 in main.qml from Window to Rectangle then the Designer seems to work fine but then extra weird logs are visible in a terminal:

      user@user-Standard:~$ ~/Qt/Tools/QtCreator/bin/qtcreator
      Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
      si_init_perfcounters: max_sh_per_se = 2 not supported (inaccurate performance counters)
      QFileSystemWatcher::removePaths: list is empty
      QFileSystemWatcher::removePaths: list is empty
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      SOFT ASSERT: "qmlItemNode.modelNode().isValid()" in file /home/qt/work/build/qt-creator/src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp, line 897
      QFileSystemWatcher::removePaths: list is empty
      QProcess: Destroyed while process ("/home/daniel/Qt/Tools/QtCreator/libexec/qtcreator/qml2puppet") is still running.
      QProcess: Destroyed while process ("/home/daniel/Qt/Tools/QtCreator/libexec/qtcreator/qml2puppet") is still running.
      QProcess: Destroyed while process ("/home/daniel/Qt/Tools/QtCreator/libexec/qtcreator/qml2puppet") is still running.
      

      Please check attached application examples.

      -------------------------------------- QtCreator INFO
      Qt Creator 4.14.0 based on Qt 5.15.2
      
        Android 4.14.0 Support for deployment to and execution on Android Devices.
        AutoTest 4.14.0 Auto Test plugin.
        AutotoolsProjectManager 4.14.0 Autotools project integration.
        BareMetal 4.14.0 This plugin adds a target for bare metal development.
        Bazaar 4.14.0 Bazaar integration.
        Beautifier 4.14.0 Format source files with the help of beautifiers like AStyle, uncrustify or clang-format.
        BinEditor 4.14.0 Binary editor component.
        Bookmarks 4.14.0 Bookmarks in text editors.
        Boot2Qt 4.14.0 Support for the Boot2Qt Device access using the Qt Debug Bridge.
        CMakeProjectManager 4.14.0 CMake support.
        CVS 4.14.0 CVS integration.
        ClangCodeModel 4.14.0 Clang Code Model plugin.
        ClangFormat 4.14.0 clang-format indentation plugin.
        ClangTools 4.14.0 ClangTools Plugin.
        ClassView 4.14.0 Class View component.
        ClearCase 4.14.0 ClearCase integration.
        CodePaster 4.14.0 Codepaster plugin for pushing/fetching diff from server.
        CompilationDatabaseProjectManager 4.14.0 Compilation Database project support.
        Conan 4.14.0 Conan integration.
        Core 4.14.0 The core plugin for the Qt IDE.
        CppEditor 4.14.0 C/C++ editor component.
        CppTools 4.14.0 Tools for analyzing C/C++ code.
        Cppcheck 4.14.0 Cppcheck static analyzer tool integration. See http://cppcheck.sourceforge.net.
        CtfVisualizer 4.14.0 Chrome Trace Format Visualizer Plugin.
        Debugger 4.14.0 Debugger integration.
        Designer 4.14.0 Qt Designer integration.
        DiffEditor 4.14.0 Diff editor component.
        EmacsKeys 4.14.0 The main idea behind this plugin is to provide additional actions a typical emacs user would expect. It doesn't claim to provide full emacs emulation. The following actions are available:
       - Movement [C-f, C-b, C-n, C-p, M-f, M-b, C-a, C-e, M-<, M->]
       - Mark-based selection [C-SPC, C-x C-x]
       - Cut/copy/yank (doesn't provide kill ring feature) [M-w, C-w, C-y]
       - Kill actions, which interact properly with clipboard [C-k, M-d, C-d]
       - Scrolling (half of the screen, keeps cursor visible) [C-v, M-v]
       - Insert new line and indent [C-j]
      
      IMPORTANT: Actions are not bound to any key combinations by default. You can find them under 'EmacsKeys' section in keyboard shortcuts settings.
      
      Also it's worth mentioning that EmacsKeys plugin forces disabling of menu mnemonics by calling Qt's qt_set_sequence_auto_mnemonic function with false argument. Many of the english menu mnemonics get into the way of typical emacs keys, this includes: Alt+F (File), Alt+B (Build), Alt+W (Window). It's a temporary solution, it remains until there is a better one.
        FakeVim 4.14.0 VI-style keyboard navigation.
        GLSLEditor 4.14.0 Editor for GLSL.
        GenericProjectManager 4.14.0 Generic support.
        Git 4.14.0 Git integration.
        HelloWorld 4.14.0 Hello World sample plugin.
        Help 4.14.0 Help system.
        ImageViewer 4.14.0 Image Viewer component.
        IncrediBuild 4.14.0 Support for Incredibuild.
        Ios 4.14.0 Support for deployment to and execution on iOS Devices.
        LanguageClient 4.14.0 Language Server Protocol client component. See https://microsoft.github.io/language-server-protocol/overview for an overview on Language Servers.
        Macros 4.14.0 Macros in text editors.
        Marketplace 4.14.0 Qt Marketplace plugin.
        McuSupport 4.14.0 Helper for MCU related projects.
        Mercurial 4.14.0 Mercurial integration.
        MesonProjectManager 4.14.0 Meson support.
        ModelEditor 4.14.0 Graphical modeling with structured diagrams.
        Nim 4.14.0 Plugin for supporting the Nim programming language.
        PerfProfiler 4.14.0 Perf Profiler Plugin.
        Perforce 4.14.0 Perforce integration.
        ProjectExplorer 4.14.0 ProjectExplorer framework that can be extended with different kind of project types.
        Python 4.14.0 Plugin for supporting the Python language.
        QbsProjectManager 4.14.0 QBS support.
        QmakeProjectManager 4.14.0 Provides project type for Qt/QMake .pro files and tools.
        QmlDesigner 4.14.0 Visual Designer for QML files.
        QmlJSEditor 4.14.0 Editor for QML and JavaScript.
        QmlJSTools 4.14.0 Tools for analyzing Qml/JS code.
        QmlPreview 4.14.0 Qml Preview Plugin.
        QmlProfiler 4.14.0 Qml Profiler Plugin.
        QmlProjectManager 4.14.0 Qt Quick support
        Qnx 4.14.0 Adds support for QNX to Qt Creator.
        QtSupport 4.14.0 Provides support code for build systems.
        RemoteLinux 4.14.0 Support for deployment to and execution on a remote Linux host.
        ResourceEditor 4.14.0 Editor for qrc files.
        ScxmlEditor 4.14.0 Visual Editor for SCXML (State Chart XML) files.
        SerialTerminal 4.14.0 Serial Port Terminal
        SilverSearcher 4.14.0 Adds possibility to use SilverSearcher tool as an alternative mechanism of 'find in files'
        StudioWelcome 4.14.0 Qt Design Studio Welcome Page.
        Subversion 4.14.0 Subversion integration.
        TaskList 4.14.0 Use .tasks-files to populate the Issues view.
        TextEditor 4.14.0 Text editor framework and the implementation of the basic text editor.
        Todo 4.14.0 Adds pane that lists all TODO, FIXME, etc. entries in comments.
        UpdateInfo 4.14.0 Displays Update-Infos for Qt Installer Framework-based Updaters.
        Valgrind 4.14.0 Valgrind Plugin.
        VcsBase 4.14.0 Version Control System Base Plugin.
        WebAssembly 4.14.0 Helper for WebAssembly projects.
        Welcome 4.14.0 Secondary Welcome Screen Plugin.
        WinRt 4.14.0 Helper for Windows Runtime projects.
      
      ------------------------------------ OS INFO
       OS: Ubuntu 20.04 focal
       Kernel: x86_64 Linux 5.10.1-051001-generic
       Packages: 2020
       Shell: bash 5.0.17
       DE: GNOME 3.36.4
       WM: Mutter
      
      -------------------------------------- HW INFO
      cpu:                                                            
                             AMD Ryzen 7 4800H with Radeon Graphics, 2200 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 3125 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1606 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1839 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1728 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1833 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1669 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1840 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1950 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1789 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1733 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1750 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 3111 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 3063 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1775 MHz
                             AMD Ryzen 7 4800H with Radeon Graphics, 1760 MHz
      keyboard:
        /dev/input/event4    AT Translated Set 2 keyboard
      mouse:
        /dev/input/mice      UNIW0001:00 093A:0255 Mouse
        /dev/input/mice      UNIW0001:00 093A:0255 Touchpad
      monitor:
                             LQ156M1JW01
      graphics card:
                             ATI Renoir
      sound:
                             ATI Audio device
                             AMD Family 17h (Models 10h-1fh) HD Audio Controller
      storage:
                             Samsung Electronics NVMe SSD Controller SM981/PM981
                             AMD FCH SATA Controller [AHCI mode]
                             AMD FCH SATA Controller [AHCI mode]
      network:
        eno1                 Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
        wlp1s0               Intel WLAN controller
      network interface:
        eno1                 Ethernet network interface
        lo                   Loopback network interface
        wlp1s0               Ethernet network interface
      disk:
        /dev/nvme0n1         Samsung Electronics NVMe SSD Controller SM981/PM981
        /dev/sda             SanDisk Cruzer Fit
      partition:
        /dev/nvme0n1p1       Partition
        /dev/nvme0n1p2       Partition
        /dev/nvme0n1p3       Partition
        /dev/nvme0n1p4       Partition
        /dev/nvme0n1p5       Partition
        /dev/nvme0n1p6       Partition
        /dev/nvme0n1p7       Partition
        /dev/sda1            Partition
      usb controller:
                             AMD Renoir USB 3.1
                             AMD Renoir USB 3.1
      bios:
                             BIOS
      bridge:
                             AMD Renoir PCIe Dummy Host Bridge
                             AMD Renoir Device 24: Function 3
                             AMD Renoir PCIe GPP Bridge
                             AMD Renoir Device 24: Function 1
                             AMD Renoir PCIe Dummy Host Bridge
                             AMD FCH LPC Bridge
                             AMD Renoir Device 24: Function 6
                             AMD Renoir Root Complex
                             AMD Renoir Internal PCIe GPP Bridge to Bus
                             AMD Renoir Device 24: Function 4
                             AMD Renoir PCIe GPP Bridge
                             AMD Renoir Device 24: Function 2
                             AMD Renoir PCIe GPP Bridge
                             AMD Renoir Device 24: Function 0
                             AMD Renoir PCIe Dummy Host Bridge
                             AMD Renoir Device 24: Function 7
                             AMD Renoir Internal PCIe GPP Bridge to Bus
                             AMD Renoir Device 24: Function 5
      hub:
                             Linux Foundation 2.0 root hub
                             Linux Foundation 3.0 root hub
                             Linux Foundation 2.0 root hub
                             Genesys Logic Hub
                             Linux Foundation 3.0 root hub
      memory:
                             Main Memory
      bluetooth:
                             Intel Bluetooth Device
      unknown:
                             FPU
                             DMA controller
                             PIC
                             Keyboard controller
                             AMD Raven/Raven2/FireFlight/Renoir Audio Processor
                             AMD Renoir IOMMU
                             AMD Family 17h (Models 10h-1fh) Platform Security Processor
                             AMD FCH SMBus Controller
        /dev/input/event9    Chicony Electronics HD Webcam
                             Realtek RTS5129 Card Reader Controller
      

        Attachments

        1. strace.zip
          415 kB
        2. test_app_issue.zip
          5 kB
        3. test_app_no_issue.zip
          5 kB

          Issue Links

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

            Activity

              People

              Assignee:
              thohartm Thomas Hartmann
              Reporter:
              szefoski Szefoski Szef
              Votes:
              7 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes