Skip to content

[Bug] TypeError when Rhythm Ruler dissection exceeds maximum subdivision limit #8316

Description

@DivyanshuVortex

Description

When using the Rhythm Ruler widget, if a user attempts to dissect a note cell into a subdivision that exceeds the maximum limit (256), the application fails to display the intended error notification and instead throws an uncaught TypeError in the console. This happens because the code attempts to call this.activity.logo.errorMsg, but the correct API for displaying UI alerts is this.activity.errorMsg.

Expected Behavior

The application should gracefully catch the invalid input and display a visible UI notification banner stating "Maximum value of 256 has been exceeded." without crashing the execution context or throwing console errors.

Screenshots

Image

How to Reproduce

  1. Open the Music Blocks web application.
  2. Open the Rhythm Ruler widget.
  3. Rapidly dissect a cell (e.g., using the pie chart options) until the resulting inputNum * noteValue exceeds 256.
  4. Observe that no visual error message appears on the screen.
  5. Check the browser console to see the TypeError.

Environment:

  • Operating System: Any
  • Browser (if applicable): Any
  • Version of Software/Project: master

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugFixes a bug or incorrect behavior

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions