You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
App is unresponsive when launched on An Android physical device #23304
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.
Activity
carldebilly commentedon May 21, 2026
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):
Root cause
Commit 2d65ba26a (PR #23287, "fix(devserver): isolate add-ins in a custom AssemblyLoadContext") moved DevServer add-in loading from
AssemblyLoadContext.Default(viaAssembly.LoadFrom) into a shared isolatedAddInLoadContext. That PR fixed three real cross-major-versionFileNotFoundExceptions (Kiota →System.Text.Encodings.Web8.0.0.0, MCP →Microsoft.Extensions.Configuration10.0.0.0, ModelContextProtocol 1.1.0 →System.Text.Jsonv10 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.jsonare no longer reliably shared between add-ins.Uno.Licensing.SdkandUno.Licensing.Sdk.Contractsfall into this bucket —Uno.Settings.DevServerreferences them, and bothUno.UI.App.Mcp.ServerandUno.UI.HotDesign.Serverconsume them via DI (ILicensingService) and constructor parameters. Pre-PR,Assembly.LoadFromplaced everything inDefault, so a singleSystem.Typeidentity was shared by accident. Post-PR, the bridge inAddInLoadContext.Loadcan only return assemblies already present inDefaultALC, and theAssemblyDependencyResolverfallback only resolves what the per-add-in.deps.jsonlists.Direction of fix
Purely additive: pre-load known cross-add-in shared assemblies (
Uno.Licensing.*to start) intoDefaultALC during host startup, in the same waySystem.*/Microsoft.Extensions.*are eager-loaded today. The existingTryBridgeBySimpleNamethen 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.
fix(devserver): load add-ins into a single ALC for cross-add-in type …
khaskoul commentedon May 27, 2026
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
fix(devserver): load add-ins into a single ALC for cross-add-in type …