Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with icons in custom applications #404

Closed
luebbe opened this issue Nov 17, 2023 · 19 comments
Closed

Problem with icons in custom applications #404

luebbe opened this issue Nov 17, 2023 · 19 comments
Labels
bug Something isn't working

Comments

@luebbe
Copy link
Contributor

luebbe commented Nov 17, 2023

Bug report

Describe the bug

While working on #354, I noticed that the current head revision has a problem displaying the icons of custom applications. They appear or disappear and the behaviour can be reproduced consistently.
It doesn't matter if auto transition is on or off. Manual transition has the same effect.

Additional information

  • Devices involved:
    • Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
    • AWTRIX-LIGHT version: main head revision

To Reproduce

This is the observed behaviour:

  • When the custom application is shown, the icon disappears after a moment (half a second, whatever) and doesn't appear again.
  • When I manually toggle next and then previous app, the custom app is initially shown without icon, the icon appears after a moment and stays.
  • A following next/prev toggle shows the app initially with icon again, which disappears after a moment.

Screenshots

Attached is a gif which shows the behaviour. Manual next/prev toggle.

awtrix

@luebbe luebbe added the bug Something isn't working label Nov 17, 2023
@Blueforcer
Copy link
Owner

That's weird.
Mine running without such glitches and never heard about this from my beta testers.
Did you tried to turn the device off and on ? 🤪

@luebbe
Copy link
Contributor Author

luebbe commented Nov 18, 2023

Did you tried to turn the device off and on ? 🤪
More than once :)

I'm running my version with the fix for #354, which you can find here: https://github.com/luebbe/awtrix-light. Since you know your code better than me, maybe you can spot a problem that I have missed. I wouldn't expect such a side effect. And why only for custom apps?

@Blueforcer
Copy link
Owner

I I haven't looked at it yet.
But to be sure if you have built in the bug, you might want to test my main first.
At the moment I don't have the time to fix the bugs of others 😅

@luebbe
Copy link
Contributor Author

luebbe commented Nov 18, 2023

I'll test with your main withour my changes :)
I also noticed something else which is strange with all official versions from Awtrix since 0.84. Sometimes the bottom left pixel of the matrix turns yellow. This isn't reproducible, but when this happens, the web interface doesn't work anymore. MQTT ist still working.
It is like an early indicator of an incoming severe failure.

@Blueforcer
Copy link
Owner

This fading yellow pixel means the mqtt connection is lost. Top edge red pixel means lost wifi connection

@luebbe
Copy link
Contributor Author

luebbe commented Nov 18, 2023

Ok, so the yellow pixel is no accident. Haven't seen the red one yet. Is this documented anywhere?

I have the same graphic glitches with the icons in custom apps using your main without my changes. The gif would look the same, so I didn't shoot a new one. So this bug must have been introduced somewhere since the 0.90 release.

@Blueforcer
Copy link
Owner

So there must be something in your config, automation or anything else special wich cause this.
Since today I never heard about such effect, and I'm also unable to reproduce it.

@luebbe
Copy link
Contributor Author

luebbe commented Nov 18, 2023

I just flashed the official 0.90 binary and the problem is gone. So it's definitely a problem in the head revision.

@Blueforcer
Copy link
Owner

Good to know, but weird it doesn't happen to my ulanzis

@Blueforcer
Copy link
Owner

Can you check this one?
firmware.zip

@luebbe
Copy link
Contributor Author

luebbe commented Nov 18, 2023

The glitches are still there.

Is there a possibility to uniquely identify the firmware that is currently on the ulanzi? Upon boot they all report 0.90 right now. Maybe show the git hash in one of the info pages?

@Blueforcer
Copy link
Owner

🤷

Can you give me all your JSONs you sent to awtrix?

@luebbe
Copy link
Contributor Author

luebbe commented Nov 18, 2023

On my way:

dev.json:
{
  "min_battery" : 600,
  "temp_dec_places" : 1,
  "temp_offset" : -11.0
}

mqtt:
custom/outsidetemperature
{
  "icon": "2355a",
  "text": "8.1°C"
}

mqtt:
custom/powertotal
{
  "icon": "40828",
  "text": "758W"
}

Icons:
2355a
40828

The behaviour is not erratic. It's systematic. Assume we have auto transition on.
In loop N the icon is shown and disappears after a split second.
In loop N+1 the icon is missing and appears after a split second.
In loop N+2 the icon is shown and disappears after a split second.
In loop N+3 the icon is missing and appears after a split second.
and so on...

@Blueforcer
Copy link
Owner

Mhh no glitches for me... need to dig deeper i guess at some point
awtrix (1)

@nerdtechse
Copy link

I tried the beta 0.91B2 and some icons works al the time and some isnt showing up or shows for 1 sec and the disapears. Icon 21256 from lametric is showing for 1 sec then disappears for example.
awtrix(2)

@luebbe
Copy link
Contributor Author

luebbe commented Nov 19, 2023

I tried different transition effects. It doesn't play a role. So I think we can rule this out. The icons for custom applications (dis)appear.

@Blueforcer
Copy link
Owner

please try current main, according to some discord testers it works now

@luebbe
Copy link
Contributor Author

luebbe commented Nov 20, 2023

Just upgraded to current main and it looks good. Thank you!

@luebbe
Copy link
Contributor Author

luebbe commented Dec 2, 2023

For me it is fixed. I think we can close this issue.

@luebbe luebbe closed this as completed Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants