Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-343

FreeRTOS: Program freezes when manipulating Qul::Property<std::string> or std::stack<std::string>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt for MCUs 2.8.1
    • QUL Team
    • STM32F769I

    Description

      On STM32F769I, the attached program freezes on FreeRTOS, but not Bare Metal or Desktop 32bpp (MinGW)

       

      Code

      // customstackviewbackend.h
      struct CustomStackViewBackend : public Qul::Singleton<CustomStackViewBackend>
      {
          CustomStackViewBackend() {}
      
          void push(std::string view)
          {
              _view = view; // Works fine
              // stackViews.push(view); // Freezes the program
              // lastView.setValue(view); // Freezes the program;
          }
      
          Qul::Property<std::string> lastView;
          std::stack<std::string> stackViews;
          std::string _view;
      };
      
      // CustomStackView.qml
      pragma Singleton
      import QtQuick
      
      QtObject {
          signal screenUpdate(string screen)
      
          function push(url: string) {
              CustomStackViewBackend.push(url)
              screenUpdate(CustomStackViewBackend.lastView)
          }
      }
      

      Attachments

        1. SimpleStackView.zip
          55 kB
          Sze Howe Koh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes