Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


QuickApp unstoppable (if export 5.150 and import 5.153 beta)


Recommended Posts

Posted (edited)

I have a strange issue with a QuickApp that I exported from firmware 5.150 and imported on an other HC3 with beta firmware 5.153. The QuickApp is unstoppable. 

 

In the beta firmware the QuickApp can’t be disabled. It keeps on running, even with in the onInit():

 

Please login or register to see this code.

 

If I delete the QuickApp, it keeps on running 🤔

If I reboot after deleting the QuickApp, the QuickApp is gone 🥲

 

(If I disable the same QuickApp in firmware 5.150, it stops working)

 

 

 

Edited by SmartHomeEddy
Posted (edited)
52 minutes ago, SmartHomeEddy said:

I have a strange issue with a QuickApp that I exported from firmware 5.150 and imported on an other HC3 with beta firmware 5.153. The QuickApp is unstoppable. 

 

In the beta firmware the QuickApp can’t be disabled. It keeps on running, even with in the onInit():

 

Please login or register to see this code.

 

If I delete the QuickApp, it keeps on running 🤔

If I reboot after deleting the QuickApp, the QuickApp is gone 🥲

(If I disable the same QuickApp in firmware 5.150, it stops working)

Yep, we seen these "ghost QAs" too. ( @Neo Andersson, @ChristianSogaard)

Sometimes when QA is updated the old version continue to run too, causing much confusion.

 

So the question is what you are seeing. Not sure it has to do with different firmwares.

If it logs that the "Device X is disabled", but continue to run, it could be that you have an older copy that still runs.

(This is consistent with you seeing the QA running after being deleted)

Note that the check in "onInit" only disables what is done in onInit. Button handlers are still called when pressing buttons. If your button handler starts a loop it will still run.

 

To get rid of these "ghost QAs", a reboot seems to always work.

 

So, I have not been able to create a minimal reproducible example that always create these "ghosts". Would be nice if we could come up with such an example. 

My feeling is that it is partly some race bug in the QA installation/code update logic, combined with the condition of the system in general.

Edited by jgab
  • Topic Author
  • Posted

    I reproduced the issue.
     

    I deleted the quickapp and rebooted. It was gone. I imported a new quickapp (with the image from 5.150) and there it goes again. Like a maniac 😁

     

     

    (I just started a new kind of test. The Quickapp is still disabled and not deleted. Rebooted the HC3. And around the whole hour I will see if the QuickApp still runs.)

     

    BTW I don’t use the buttons, or don’t use calls from outside the QuickApp, so the QuickApp stays within the onInit(). 

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...