dotnet / dotnet/android

JnienvArrayMarshaling.GetObjectArray fails on CoreCLR with emulator 36.4.10

Open
#10,973 6 comments 0 reactions 0 assignees View on GitHub
Area: Unit Tests flaky-ci flaky-tests needs-triage
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 21h
Merged PRs (30d)
257

Description

## Description

`Android.RuntimeTests.JnienvArrayMarshaling.GetObjectArray` consistently fails on CoreCLR (Release) when running on Android emulator 36.4.10 (previously passing on emulator 32.1.9).

The test passes on MonoVM and NativeAOT — only CoreCLR is affected.

## Error
```
Expected: True
But was: False
```

The assertion comes from `AssertArrays` which lacks diagnostic output, so we don't know what values CoreCLR returns.

## Repro
- Emulator: 36.4.10 (package 15004761)
- Runtime: CoreCLR
- Test: `tests/Mono.Android-Tests/Mono.Android-Tests/Android.Runtime/JnienvArrayMarshaling.cs` line 267

## Context
Discovered in #10971 (emulator bump PR). The test was ignored on CoreCLR to unblock the emulator update.

## Next Steps
1. Add diagnostic output to `GetObjectArray` / `AssertArrays` to understand what values come back
2. Investigate CoreCLR-specific JNI array marshaling difference with newer ART runtime

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.