Skip to content

fix(android): add osu.Android to AndroidLinkSkip to fix JNI activation crash - #326

Merged
winnerspiros merged 3 commits into
masterfrom
copilot/fix-apk-crash-issue-189b4fad-6ba5-45bf-93ba-88957ef2a842
May 9, 2026
Merged

fix(android): add osu.Android to AndroidLinkSkip to fix JNI activation crash#326
winnerspiros merged 3 commits into
masterfrom
copilot/fix-apk-crash-issue-189b4fad-6ba5-45bf-93ba-88957ef2a842

Conversation

Copilot AI commented May 9, 2026

Copy link
Copy Markdown
  • Identified CI failure: CodeFileSanity failing on ./new_content.cs (leftover temp file from previous agent session)
  • Removed new_content.cs and github-cookies.db from repo root

Copilot AI and others added 2 commits May 9, 2026 14:31
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/a6d33ec1-71f4-441e-b6b0-8423692a44c1

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
…ation constructor trimming

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/a6d33ec1-71f4-441e-b6b0-8423692a44c1

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
@gitar-bot

gitar-bot Bot commented May 9, 2026

Copy link
Copy Markdown

Gitar is working

Gitar

…evious agent

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/e690eae3-823f-4fa4-b283-71c67ce38c1b

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
Copilot AI requested a review from winnerspiros May 9, 2026 14:43
@winnerspiros
winnerspiros marked this pull request as ready for review May 9, 2026 15:06
Copilot AI review requested due to automatic review settings May 9, 2026 15:06
@winnerspiros
winnerspiros merged commit 6222605 into master May 9, 2026
22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the Android Release linker configuration by extending AndroidLinkSkip to include the osu.Android assembly, alongside an expanded comment explaining JNI activation crash context.

Changes:

  • Add osu.Android to the AndroidLinkSkip list in osu.Android.props.
  • Expand inline documentation describing why specific assemblies are excluded from ILLink trimming.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread osu.Android.props
Comment on lines +127 to +131
osu.Android: contains OsuGameActivity whose build-generated (IntPtr, JniHandleOwnership)
JNI activation constructor (emitted by .NET Android build tooling for every [Activity]
subclass) has no managed callers and is trimmed by ILLink, causing the "Could not
activate JNI Handle … as managed type OsuGameActivity" crash at startup. -->
<AndroidLinkSkip>$(AndroidLinkSkip);osu.Android;osu.Framework.Android;SDL3-CS</AndroidLinkSkip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants