Git Product home page Git Product logo

Comments (12)

WardBrian avatar WardBrian commented on June 20, 2024 1

The code that crashed is only in the emulator, not the actual board (I wrote it, I’m pretty sure) so I think it would need to be a different error

from mlb-led-scoreboard.

WardBrian avatar WardBrian commented on June 20, 2024

Do you know which team’s news feed lead to the headline appearing?

from mlb-led-scoreboard.

swemoney avatar swemoney commented on June 20, 2024

I'm finding a play button ▶️ emoji starting to appear for "game story" articles. Just checked the astros feed

from mlb-led-scoreboard.

swemoney avatar swemoney commented on June 20, 2024

I'm also seeing the play buttons on the cubs feed though. I'm testing the feed on my board now and haven't experienced a crash yet

from mlb-led-scoreboard.

swemoney avatar swemoney commented on June 20, 2024

Not seeing a crash on board. Just saw the Game Story article and it ended with a play icon and then a ? symbol (like it didn't understand the character)

from mlb-led-scoreboard.

ty-porter avatar ty-porter commented on June 20, 2024

from mlb-led-scoreboard.

randolph-gravely avatar randolph-gravely commented on June 20, 2024

@ty-porter how do I find the emulator version?

from mlb-led-scoreboard.

randolph-gravely avatar randolph-gravely commented on June 20, 2024

I am pretty new to programming, so I am not sure if this is the best way to fix the issue, but I did resolve it by removing emojis from headlines.

I did so by adding the following to the scrollingtext.py in the renderers folder:

from cleantext import clean

And then at line 28:
clean_text = clean(text,normalize_whitespace=False, no_emoji=True, lower=False)

from mlb-led-scoreboard.

randolph-gravely avatar randolph-gravely commented on June 20, 2024

@WardBrian it was the Braves headlines that were causing the issue. It was the same thing that @swemoney described with the Astro's: it had the play emoji ("▶️ ") present in several article headlines

from mlb-led-scoreboard.

ty-porter avatar ty-porter commented on June 20, 2024

@ty-porter how do I find the emulator version?

python3 -m pip show RGBMatrixEmulator

from mlb-led-scoreboard.

ty-porter avatar ty-porter commented on June 20, 2024

I can reproduce this in emulator v0.8.3

Steps to trigger the bug:

  1. Character not in font
  2. Missing character is the first character in the string
  3. Text origin is < 0 (off matrix to the left)

For this specific trigger that would mean the string needs an emoji as the first character of a string that's large enough to scroll. The error will happen when the scrolling goes offscreen

I will fix this upstream in RGBME, however the fix there will be to gracefully handle 0 width characters. Missing characters will still show a (?) icon. If that's something we want to fix as well, we would need work in this project.

from mlb-led-scoreboard.

ty-porter avatar ty-porter commented on June 20, 2024

Resolved in #465.

from mlb-led-scoreboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.