Skip to content

[BUG] Mastodon app crashes when a poll with identical answers reaches the screen #1332

@blockofdynamite

Description

@blockofdynamite

Is there an existing issue for this?

  • I have searched the issues (both open and closed)

Current Behavior

A user has somehow posted a poll with identical answers. When I scroll my timeline, the app crashes to home screen right before that post reaches the viewable area. Now that we double checked and retested to make sure that's what's causing it, I can no longer open the app at all since an offending poll is at the top of my timeline.

Expected Behavior

The app should not crash when viewing any polls, even if they are posted with identical answers.

Steps To Reproduce

  1. Have someone post a poll with two identical answers (we have not tested with more than two, or with two identical plus more unique answers)
  2. Open the Mastodon iOS app and scroll to try to view the poll that has been created
  3. Crash

Environment

- Device: iPhone 13 Mini
- OS: iOS 17.5.1 and 17.6
- Version: 2024.7 (Unknown, but fully up to date as of the posting of this bug report)
- Build: (Unknown, but fully up to date as of the posting of this bug report)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions