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

QML freezes when using enum type where component type is expected

    XMLWordPrintable

Details

    Description

      Likely relating to inline component support:

      import QtQuick 2.15
      
      Item {
           enum Status {
               Heating, Cooling, Off
           }
           property Test.Status freeze
      }

      Causes qmlscene to freeze using 100% of one CPU. The backtrace:

      (gdb) info thre
        Id   Target Id         Frame 
      * 1    Thread 0x7f68655b8780 (LWP 26351) "qmlscene" 0x00007f685e3bf644 in g_mutex_unlock ()
         from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
        2    Thread 0x7f685794f700 (LWP 26352) "QXcbEventQueue" 0x00007f6861cf2bf9 in __GI___poll (fds=0x7f685794ed08, nfds=1, 
          timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        3    Thread 0x7f684f6e9700 (LWP 26353) "QQmlThread" 0x00007f6861cf2bf9 in __GI___poll (fds=0x7f6848002de0, nfds=1, timeout=-1)
          at ../sysdeps/unix/sysv/linux/poll.c:29
      (gdb) bt
      #0  0x00007f685e3bf644 in g_mutex_unlock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #1  0x00007f685e378fd9 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #2  0x00007f685e379570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #3  0x00007f685e3796dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #4  0x00007f68629eb7bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
         from /home/kamm/QtSDK/5.15.0/gcc_64/lib/libQt5Core.so.5
      #5  0x000056376955df0d in ?? ()
      #6  0x00007f6861bffb97 in __libc_start_main (main=0x56376955c659, argc=4, argv=0x7ffddc86ba88, init=<optimized out>, 
          fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffddc86ba78) at ../csu/libc-start.c:310
      #7  0x000056376955acba in ?? ()
       

      As far as I can tell this is currently invalid QML, so there should be an error instead.

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            ckamm Christian Kamm
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes