Skip to content

Commit 92bb4b0

Browse files
authored
Merge pull request #203 from winnerspiros/copilot/fix-game-crash-on-startup
Remove EnableLLVM to fix plt_entry AOT crash on Android startup
2 parents 5e38da1 + d798b81 commit 92bb4b0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

osu.Android.props

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@
4747
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
4848
<RunAOTCompilation>true</RunAOTCompilation>
4949
<AndroidEnableProfiledAot>true</AndroidEnableProfiledAot>
50-
<!-- Use LLVM backend for AOT — produces higher-quality native code than the default
51-
Mono AOT compiler. Critical for a rhythm game where frame-level timing matters. -->
52-
<EnableLLVM>true</EnableLLVM>
50+
<!-- Do NOT use EnableLLVM with profiled AOT on .NET 10.
51+
The LLVM backend generates internally-inconsistent PLT (Procedure Linkage Table)
52+
entries when only a subset of methods is AOT-compiled (profiled AOT). This causes
53+
'plt_entry not met' assertions in aot-runtime.c at startup (SIGABRT on SDLThread).
54+
The default Mono AOT compiler handles partial-image PLT generation correctly. -->
5355
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
5456
<PublishTrimmed>true</PublishTrimmed>
5557
<TrimMode>partial</TrimMode>

0 commit comments

Comments
 (0)