🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    UiFlow 2.0 discuss(how-to, bug, feature request or sometings)

    UiFlow 2.0
    72
    185
    316.7k
    Loading More Posts
    • 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.
    • H
      hacxx Banned
      last edited by

      Thanks for sharing the UiFlow 2.0 resources! I appreciate having a dedicated space for bugs, how-tos, and feature requests. Does anyone have tips on avoiding common firmware burning errors, especially with account binding? Also curious if there’s a timeline for the full API docs release. Looking forward to seeing how this evolves!

      1 Reply Last reply Reply Quote 0
      • T
        thecuri
        last edited by

        I recently los all my private cloud projects....is there a way to get them back from your servers?

        1 Reply Last reply Reply Quote 0
        • Z
          zhumingqi
          last edited by

          I used UIFlow2 to devleop a simple UI demo, and I monitor the free memory with gc.mem_free(). I found the free memory reduced continiously though I called gc.collect() every loop. Finally, the UI can not update again, but the loop still was running.

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zhumingqi @zhumingqi
            last edited by

            I tested more UI design. And I found that the memory leak only happens when I use image component and switch images frequently. Is that a UIFlow2.3.3 bug or my design is incorrect?

            1 Reply Last reply Reply Quote 0
            • Z
              zhumingqi
              last edited by

              Today, I updated the UIFlow to V2.3.4, and burned V2.3.4 firmware as well. Then I tested that image component again with M5GFX in UIFlow 2.3.4. But the issue still exists. After I switch two JPG pics with one image component for sometime, the memory will reduced continiously. Finally, the system will break out. And I try to use gc.collect() after every drawImage(), but it's not useful.
              Here is my design and python code:
              import os, sys, io, gc
              import M5
              from M5 import *

              ImageSwitchFlag = None

              def GcCollectAndPrint():
              global ImageSwitchFlag
              gc.collect()
              print(gc.mem_free())
              pass

              def btnA_wasClicked_event(state):
              global ImageSwitchFlag
              if ImageSwitchFlag == 0:
              M5.Lcd.drawImage("/flash/res/img/RotaryBGBacklight.jpg", 0, 0)
              GcCollectAndPrint()
              ImageSwitchFlag = 1
              elif ImageSwitchFlag == 1:
              M5.Lcd.drawImage("/flash/res/img/RotaryBGBT.jpg", 0, 0)
              GcCollectAndPrint()
              ImageSwitchFlag = 0

              def setup():
              global ImageSwitchFlag

              M5.begin()
              Widgets.fillScreen(0x000000)

              BtnA.setCallback(type=BtnA.CB_TYPE.WAS_CLICKED, cb=btnA_wasClicked_event)

              ImageSwitchFlag = 0

              def loop():
              global ImageSwitchFlag
              M5.update()

              if name == 'main':
              try:
              setup()
              while True:
              loop()
              except (Exception, KeyboardInterrupt) as e:
              try:
              from utility import print_error_msg
              print_error_msg(e)
              except ImportError:
              print("please update to latest firmware")******

              b442ffec-d9ce-4445-898c-4b8ffc3caa82-image.png

              1 Reply Last reply Reply Quote 0
              • First post
                Last post