Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: ee43633

Hitting F5 in Visual Studio for a dotnet new maui app produces a loop such as:

08-25 09:40:36.759 32259 32293 D monodroid-assembly: monodroid_dlopen: hash match found, DSO name is 'libSystem.Security.Cryptography.Native.Android.so'
08-25 09:40:36.759 32259 32293 D monodroid-assembly: Trying to load loading shared JNI library /data/user/0/com.companyname.testgrendel/files/.__override__/arm64-v8a/libSystem.Security.Cryptography.Native.Android.so with System.loadLibrary
08-25 09:40:36.759 32259 32293 D monodroid-assembly: Running DSO loader on thread 32293, dispatching to main thread

This does not happen for:

  • dotnet new android project
  • At the command-line
  • Using Ctrl+F5 in Visual Studio

I was able to also reproduce this issue in a static MainActivity constructor that uses HttpClient, adding a test doing the same thing.

dotnet-maestro bot and others added 2 commits August 25, 2025 14:26
…820.9 (#10440)

This pull request updates the following dependencies

## From https://github.com/dotnet/dotnet
- **Subscription**: [58e8279d-a615-4b62-adba-499b6c5c9d3e](https://maestro.dot.net/subscriptions?search=58e8279d-a615-4b62-adba-499b6c5c9d3e)
- **Build**: [20250820.9](https://dev.azure.com/dnceng/internal/_build/results?buildId=2776321)
- **Date Produced**: August 20, 2025 6:33:29 PM UTC
- **Commit**: [619d5633513d1b31c528db4360833fce52f51829](dotnet/dotnet@619d563)
- **Branch**: [release/10.0.1xx](https://github.com/dotnet/dotnet/tree/release/10.0.1xx)

- **Updates**:
  - From [10.0.0-beta.25416.105 to 10.0.0-beta.25420.109][1]
    - Microsoft.DotNet.Build.Tasks.Feed
  - From [0.11.5-alpha.25416.105 to 0.11.5-alpha.25420.109][1]
    - Microsoft.DotNet.Cecil
  - From [10.0.0-rc.2.25416.105 to 10.0.0-rc.2.25420.109][1]
    - Microsoft.NET.ILLink.Tasks
    - Microsoft.NETCore.App.Ref
  - From [10.0.100-rc.2.25416.105 to 10.0.100-rc.2.25420.109][1]
    - Microsoft.NET.Sdk
    - Microsoft.TemplateEngine.Authoring.Tasks

[1]: dotnet/dotnet@a01724d...619d563
Context: ee43633

Hitting F5 in Visual Studio for a `dotnet new maui` app produces a loop such as:

    08-25 09:40:36.759 32259 32293 D monodroid-assembly: monodroid_dlopen: hash match found, DSO name is 'libSystem.Security.Cryptography.Native.Android.so'
    08-25 09:40:36.759 32259 32293 D monodroid-assembly: Trying to load loading shared JNI library /data/user/0/com.companyname.testgrendel/files/.__override__/arm64-v8a/libSystem.Security.Cryptography.Native.Android.so with System.loadLibrary
    08-25 09:40:36.759 32259 32293 D monodroid-assembly: Running DSO loader on thread 32293, dispatching to main thread

This does not happen for:

* `dotnet new android` project
* At the command-line
* Using Ctrl+F5 in Visual Studio

I was able to also reproduce this issue in a `static MainActivity`
constructor that uses `HttpClient`, adding a test doing the same
thing.
@jonathanpeppers jonathanpeppers changed the base branch from main to dev/grendel/dso-preload-cache-fix August 25, 2025 18:39
@jonathanpeppers jonathanpeppers marked this pull request as ready for review August 25, 2025 18:39
@jonathanpeppers jonathanpeppers merged commit 51af2cc into dev/grendel/dso-preload-cache-fix Aug 25, 2025
52 of 59 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/debugger-test branch August 25, 2025 18:40
grendello pushed a commit that referenced this pull request Aug 26, 2025
Context: ee43633

Hitting F5 in Visual Studio for a `dotnet new maui` app produces a loop such as:

    08-25 09:40:36.759 32259 32293 D monodroid-assembly: monodroid_dlopen: hash match found, DSO name is 'libSystem.Security.Cryptography.Native.Android.so'
    08-25 09:40:36.759 32259 32293 D monodroid-assembly: Trying to load loading shared JNI library /data/user/0/com.companyname.testgrendel/files/.__override__/arm64-v8a/libSystem.Security.Cryptography.Native.Android.so with System.loadLibrary
    08-25 09:40:36.759 32259 32293 D monodroid-assembly: Running DSO loader on thread 32293, dispatching to main thread

This does not happen for:

* `dotnet new android` project
* At the command-line
* Using Ctrl+F5 in Visual Studio

I was able to also reproduce this issue in a `static MainActivity`
constructor that uses `HttpClient`, adding a test doing the same
thing.
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants