Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1492

QML ValueSpacePublisher always starts valuespace server, leading to asserts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.2.0
    • 1.2.0, 1.3.0
    • Publish & Subscribe
    • None
    • ubuntu 32bit
    • fcc73172b6c3331e02300ac8a7192cd9f0e295ff

    Description

      Using master (and possibly older versions too), you can easily make pub/sub assert with the following setup:

      1) create a c++/qml project
      2) call QValueSpace::initValueSpaceServer(); in c++ code
      3) create one ValueSpacePublisher

      { path:"/stuff" }

      QML element in your qml code

      The code will assert because the QDeclarativeValueSpacePublisher element will force-start the server, but it's already running, so the program will assert to qvaluespacemanager.cpp:66.

      I could also imagine that if you have more than one QML publisher element in a pure qml application, the same assert would still occur.

      Attachments

        Activity

          People

            xizzhu Xizhi Zhu (Steven)
            holmsted Lasse Holmstedt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: