Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtQuick 2 unreliable, breaking and showing "anonymous" error messages ?!?

QtQuick 2 unreliable, breaking and showing "anonymous" error messages ?!?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 600 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    utcenter
    wrote on last edited by
    #1

    I am getting "anonymous" error messages from QML, bindings breaking in automated testing environment. Note that all code works perfectly well when the user interacts with it, but as soon as I run automated testing to simulate prolonged user experience, I begin getting those "errors" as well as breakage of bindings. It is curious that the breakage seems to be entirely arbitrary, I could not find any specific condition that causes it and in 99% of the time it works... except when it doesn't...

    !http://i59.tinypic.com/64gt2f.png(errors)!

    Tools.js line 6 is:
    @return component.createObject(parent, options)@

    used for the dynamic instantiation of elements. The other error in GroupUI.qml is a byproduct of the failure to create an object. But oddly enough, it is still not including any valid error message, just file and line.

    This leads me to believe there is buggy behavior in the process of dynamic instantiation of QML objects. It seems to break when occurring at high speed, in my case, loading/restoring the state of a serialized project file, which I have to manually slow down so it doesn't fail. And due to the nature of the operation, it is not possible to detach this process from the main thread using a worker script since it needs to work in the QML engine context.

    The same process works perfectly fine using C++ and the QGS GUI stack.

    Any ideas why it might be breaking?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved