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. Qml List View Crash
Forum Updated to NodeBB v4.3 + New Features

Qml List View Crash

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 4.7k 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.
  • B Offline
    B Offline
    bundickt
    wrote on last edited by
    #1

    I am able to crash my qml program by destroying a listview while its items are still animating/moving. I get the following error:

    @
    QML Component: Delegate component must be Item type.
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    QDeclarativeContext: Cannot set property on invalid context.
    QDeclarativeContext: Cannot set context object on invalid context.
    QDeclarativeComponent: Cannot create a component in an invalid context
    <Unknown File>: QML VisualDataModel: Error creating delgate
    *** glibc detected *** /usr/local/Trolltech/Qt-4.7.0/bin/qmlviewer: double free or corruption (out): 0x088f4760 ***

    ... Stack dump
    @

    The listview is destroyed because it is a sub item of another listview item, when that listview item goes off the screen the item gets destroyed. That's what causes the crash. It there a work around for this?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bundickt
      wrote on last edited by
      #2

      A work around could be to stop the list view from animating/moving. Is there a proper way of doing this. At the moment i'm doing this by setting interactive property to false and back to true. But the problem is this only works if the list view was changed by the user swiping the list view. If I set the current index to some number and this causes the list view to animate changing the interactive property will not stop the animation. With that in mind is there a proper way of stopping a list view from animating.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrasser
        wrote on last edited by
        #3

        Hi,

        Could you please add a bug report for this using the "bug tracker":bugreports.qt.nokia.com (preferably with an example so we can reproduce the crash)?

        Thanks,
        Michael

        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