Find out why using GameActionResult::GetData throws std::bad_any_cast on Android
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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