OpenRCT2 / OpenRCT2/OpenRCT2

Find out why using GameActionResult::GetData throws std::bad_any_cast on Android

Open
#17,016 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Android (OS) investigate
Dominant language
C++
Stars
16.2k
Forks
1.9k
Avg merge
1d 20h
Merged PRs (30d)
80

Description

Android used to crash whenever GameActionResult::GetData() is called. https://github.com/OpenRCT2/OpenRCT2/pull/16843 introduced a workaround, but it would be better to find out why it does that and fix it properly.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with GameActionResult::GetData() and inspect pull request 16843 to understand the Android workaround. Trace why the call produces std::bad_any_cast on Android, then verify that the underlying cause is fixed properly without relying on the workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.