Skip to content

App is unresponsive when launched on An Android physical device #23304

Closed

Description

@khaskoul

Current behavior 🐛

App remains unresponsive when launched on an Android phone

Android_Debug.txt

Expected behavior 🎯

The app is responsive on physical devices

How to reproduce it (as minimally and precisely as possible) 🔬

  1. Create a new uno app
  2. Build and launch the app onto a physical Android device
  3. Observe that the app is unresponsive

Workaround 🛠️

No response

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

No response

Uno.Sdk version (and other relevant versions) 📦

6.7.0-dev.54

IDE version 🧑‍💻

VS 2026 18.4.3

Anything else we need to know? 💬

No response

Activity

  1. added theissue type on May 21, 2026
  2. added
    triage/untriaged
    on May 21, 2026
  3. carldebilly commented on May 21, 2026

    @carldebilly
    Member

    Investigation update

    We've reproduced this on Desktop, WebAssembly, and Android (emulator and physical device), all running Uno.Sdk 6.7.0-dev.54+ against a recent Uno.WinUI.DevServer (6.7.0-dev.197 in our repro). The "app is unresponsive" symptom on Android is the visible side of a deeper DevServer issue: the Uno Platform Studio overlay never finishes initializing because two server-side add-in processors fail to instantiate during host startup. The overlay stays opaque and blocks all input.

    Host log signature (panel "Uno Platform" in VS):

    fail: Uno.UI.RemoteControl.Host.RemoteControlServer
      Failed to create server processor Uno.UI.App.Mcp.Server.McpServerProcessor ...
      System.IO.FileNotFoundException: Could not load file or assembly
      'Uno.Licensing.Sdk.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
    
    fail: Uno.UI.RemoteControl.Host.RemoteControlServer
      Failed to create server processor Uno.UI.HotDesign.HotDesignSourceProcessor ...
      System.InvalidOperationException: Unable to resolve service for type
      'Uno.Licensing.Sdk.ILicensingService' while attempting to activate
      'Uno.UI.HotDesign.HotDesignSourceProcessor'.
    

    Root cause

    Commit 2d65ba26a (PR #23287, "fix(devserver): isolate add-ins in a custom AssemblyLoadContext") moved DevServer add-in loading from AssemblyLoadContext.Default (via Assembly.LoadFrom) into a shared isolated AddInLoadContext. That PR fixed three real cross-major-version FileNotFoundExceptions (Kiota → System.Text.Encodings.Web 8.0.0.0, MCP → Microsoft.Extensions.Configuration 10.0.0.0, ModelContextProtocol 1.1.0 → System.Text.Json v10 refs) and must stay in place.

    Side effect: assemblies that aren't part of the host's direct dependencies and aren't listed in every consuming add-in's .deps.json are no longer reliably shared between add-ins. Uno.Licensing.Sdk and Uno.Licensing.Sdk.Contracts fall into this bucket — Uno.Settings.DevServer references them, and both Uno.UI.App.Mcp.Server and Uno.UI.HotDesign.Server consume them via DI (ILicensingService) and constructor parameters. Pre-PR, Assembly.LoadFrom placed everything in Default, so a single System.Type identity was shared by accident. Post-PR, the bridge in AddInLoadContext.Load can only return assemblies already present in Default ALC, and the AssemblyDependencyResolver fallback only resolves what the per-add-in .deps.json lists.

    Direction of fix

    Purely additive: pre-load known cross-add-in shared assemblies (Uno.Licensing.* to start) into Default ALC during host startup, in the same way System.* / Microsoft.Extensions.* are eager-loaded today. The existing TryBridgeBySimpleName then naturally serves them to every add-in with a single type identity. The three cross-major scenarios PR #23287 fixed remain untouched.

    PR with the fix and a cross-add-in regression test will be linked here.

  4. self-assigned this
    on May 27, 2026
  5. khaskoul commented on May 27, 2026

    @khaskoul
    Author

    Fix verified with:
    Templates/SDK: 6.7.0-dev.64
    Platform(s): Android
    VS VSIX: 6.5.13
    IDE: VS 18.4.6
    OS: Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

triage/untriaged

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions