Repository navigation
Closed
Labels
staleThis item has been marked as stale and will be closed if there is no activity.
Description
Current behavior 🐛
StreamJsonRpc.RemoteInvocationException: No pending update.
bei StreamJsonRpc.JsonRpc.<InvokeCoreAsync>d__171`1.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei Microsoft.CodeAnalysis.Remote.BrokeredServiceConnection`1.<TryInvokeAsync>d__13.MoveNext()
RPC server exception:
System.InvalidOperationException: No pending update.
at Microsoft.CodeAnalysis.EditAndContinue.DebuggingSession.RetrievePendingUpdate()
at Microsoft.CodeAnalysis.EditAndContinue.EditAndContinueService.DiscardSolutionUpdate(DebuggingSessionId sessionId)
at Microsoft.CodeAnalysis.EditAndContinue.RemoteEditAndContinueService.<>c__DisplayClass13_0.<DiscardSolutionUpdateAsync>b__0(CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.RunServiceImplAsync(Func`2 implementation, CancellationToken cancellationToken)
full output of multiple tryes
18:04:31.41 Roslyn Found 5 potentially changed document(s) in project 6 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1.slnx'
18:04:31.41 Roslyn Solution update 5.6 status: None
18:05:19.56 Suche nach Codeupdates...
18:05:19.56 Roslyn Found 5 potentially changed document(s) in project 7 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1.slnx'
18:05:19.59 Roslyn Found 8 potentially changed, 0 deleted document(s) in project 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop')
18:05:19.59 Roslyn Syntax errors found in 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs'
18:05:19.59 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\ColorPaletteOverride_5845936319b6fd96d6ceb323f3fb8e9a.cs'
18:05:19.59 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\GlobalStaticResources.cs'
18:05:19.59 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\SecondPage_11f9cfde71495e47e42b2cb13e6cccdc.cs'
18:05:19.59 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\MainPage_6216b559acd7b0ceb295c1ba4bba31df.cs'
18:05:19.59 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\EmbeddedXamlSources.cs'
18:05:19.59 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\App_d6c016c7cab2a03e070a95d5ce48ac96.cs'
18:05:19.59 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\Shell_af14634e85a5b4cae4098d18d33a5fde.cs'
18:05:19.59 Roslyn Changed document 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs' has syntax error: C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs(12,84): error CS1002: ; erwartet.
18:05:19.59 Fehler C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs (Zeile 12): Fehler CS1002: ; erwartet.
18:05:19.60 Roslyn Project summary for 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop'): InvalidChanges
18:05:19.60 Roslyn Solution update 5.7 status: Blocked
18:05:19.60 Ungültige Änderungen gefunden. Informationen zum Beheben dieser Probleme finden Sie im Fenster "Fehlerliste".
18:05:27.11 Suche nach Codeupdates...
18:05:27.11 Roslyn Found 5 potentially changed document(s) in project 8 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1.slnx'
18:05:27.30 Roslyn Found 8 potentially changed, 0 deleted document(s) in project 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop')
18:05:27.30 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\GlobalStaticResources.cs'
18:05:27.30 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\Shell_af14634e85a5b4cae4098d18d33a5fde.cs'
18:05:27.30 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\EmbeddedXamlSources.cs'
18:05:27.30 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\SecondPage_11f9cfde71495e47e42b2cb13e6cccdc.cs'
18:05:27.30 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\App_d6c016c7cab2a03e070a95d5ce48ac96.cs'
18:05:27.30 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\ColorPaletteOverride_5845936319b6fd96d6ceb323f3fb8e9a.cs'
18:05:27.30 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\MainPage_6216b559acd7b0ceb295c1ba4bba31df.cs'
18:05:27.30 Roslyn Capabilities required by 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs': Baseline
18:05:27.30 Roslyn Document changed, added, or deleted: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs'
18:05:27.31 Roslyn Project summary for 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop'): ValidChanges
18:05:27.31 Roslyn Emitting update of 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop')
18:05:27.31 Roslyn Fehler Exception while emitting update: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.CodeAnalysis.Emit.DefinitionMap.GetPreviousMethodHandle(IMethodSymbolInternal oldProperty, IMethodSymbolInternal& peMethod)
at Microsoft.CodeAnalysis.Emit.DefinitionMap.GetDeletedSynthesizedMethods(IMethodSymbolInternal oldMethod, ImmutableArray`1 currentLambdas)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.<CreateDeletedMemberDefs>g__addDeletedClosureMethods|84_2(IMethodSymbolInternal oldMethod, ImmutableArray`1 currentLambdas, ImmutableArray`1 orderedLambdaRuntimeRudeEdits, <>c__DisplayClass84_0&, <>c__DisplayClass84_1&)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.<CreateDeletedMemberDefs>g__getDeletedMemberDefs|84_1(ITypeDefinition typeDef, <>c__DisplayClass84_0&)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.<CreateDeletedMemberDefs>g__recurse|84_0(ITypeDefinition typeDef, <>c__DisplayClass84_0&)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.CreateDeletedMemberDefs(EmitContext context, SymbolChanges changes)
at Microsoft.CodeAnalysis.Emit.CommonPEModuleBuilder.CreateDeletedMemberDefinitions(DiagnosticBag diagnosticBag)
at Microsoft.CodeAnalysis.CSharp.MethodCompiler.CompileMethodBodies(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuiltOpt, Boolean emittingPdb, Boolean hasDeclarationErrors, Boolean emitMethodBodies, BindingDiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CompileMethods(CommonPEModuleBuilder moduleBuilder, Boolean emittingPdb, DiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Compilation.Compile(CommonPEModuleBuilder moduleBuilder, Boolean emittingPdb, DiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Emit.EmitHelpers.EmitDifference(CSharpCompilation compilation, EmitBaseline baseline, IEnumerable`1 edits, Func`2 isAddedSymbol, Stream metadataStream, Stream ilStream, Stream pdbStream, EmitDifferenceOptions options, CompilationTestData testData, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Compilation.EmitDifference(EmitBaseline baseline, IEnumerable`1 edits, Func`2 isAddedSymbol, Stream metadataStream, Stream ilStream, Stream pdbStream, EmitDifferenceOptions options, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.EditAndContinue.EditSession.EmitSolutionUpdateAsync(Solution solution, ActiveStatementSpanProvider solutionActiveStatementSpanProvider, UpdateId updateId, ImmutableDictionary`2 runningProjects, CancellationToken cancellationToken)
18:05:27.32 Fehler C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj (Zeile 1): Fehler ENC1002: Änderungen können nicht angewendet werden -- unerwarteter Fehler: "Änderungen können nicht angewendet werden -- unerwarteter Fehler: """
18:05:56.51 Code changes were not applied because the restart operation was blocked.
18:15:01.51 Suche nach Codeupdates...
18:15:01.51 Roslyn Found 5 potentially changed document(s) in project 9 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1.slnx'
18:15:01.51 Roslyn Found 8 potentially changed, 0 deleted document(s) in project 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop')
18:15:01.51 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\GlobalStaticResources.cs'
18:15:01.52 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\EmbeddedXamlSources.cs'
18:15:01.52 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\Shell_af14634e85a5b4cae4098d18d33a5fde.cs'
18:15:01.52 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\MainPage_6216b559acd7b0ceb295c1ba4bba31df.cs'
18:15:01.52 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\SecondPage_11f9cfde71495e47e42b2cb13e6cccdc.cs'
18:15:01.52 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\App_d6c016c7cab2a03e070a95d5ce48ac96.cs'
18:15:01.52 Roslyn Document unchanged: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\obj\Debug\net9.0-desktop\Uno.UI.SourceGenerators\Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator\ColorPaletteOverride_5845936319b6fd96d6ceb323f3fb8e9a.cs'
18:15:01.52 Roslyn Capabilities required by 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs': Baseline
18:15:01.52 Fehler C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj (Zeile 1): Fehler ENC1002: Änderungen können nicht angewendet werden -- unerwarteter Fehler: "Änderungen können nicht angewendet werden -- unerwarteter Fehler: """
18:15:01.52 Roslyn Document changed, added, or deleted: 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\Presentation\MainPage.xaml.cs'
18:15:01.52 Roslyn Project summary for 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop'): ValidChanges
18:15:01.52 Roslyn Emitting update of 'C:\Users\Sonja\source\samples\UnoWebViewReproApp1\UnoWebViewReproApp1\UnoWebViewReproApp1.csproj' ('net9.0-desktop')
18:15:01.52 Roslyn Fehler Exception while emitting update: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.CodeAnalysis.Emit.DefinitionMap.GetPreviousMethodHandle(IMethodSymbolInternal oldProperty, IMethodSymbolInternal& peMethod)
at Microsoft.CodeAnalysis.Emit.DefinitionMap.GetDeletedSynthesizedMethods(IMethodSymbolInternal oldMethod, ImmutableArray`1 currentLambdas)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.<CreateDeletedMemberDefs>g__addDeletedClosureMethods|84_2(IMethodSymbolInternal oldMethod, ImmutableArray`1 currentLambdas, ImmutableArray`1 orderedLambdaRuntimeRudeEdits, <>c__DisplayClass84_0&, <>c__DisplayClass84_1&)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.<CreateDeletedMemberDefs>g__getDeletedMemberDefs|84_1(ITypeDefinition typeDef, <>c__DisplayClass84_0&)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.<CreateDeletedMemberDefs>g__recurse|84_0(ITypeDefinition typeDef, <>c__DisplayClass84_0&)
at Microsoft.CodeAnalysis.Emit.DeltaMetadataWriter.CreateDeletedMemberDefs(EmitContext context, SymbolChanges changes)
at Microsoft.CodeAnalysis.Emit.CommonPEModuleBuilder.CreateDeletedMemberDefinitions(DiagnosticBag diagnosticBag)
at Microsoft.CodeAnalysis.CSharp.MethodCompiler.CompileMethodBodies(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuiltOpt, Boolean emittingPdb, Boolean hasDeclarationErrors, Boolean emitMethodBodies, BindingDiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CompileMethods(CommonPEModuleBuilder moduleBuilder, Boolean emittingPdb, DiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Compilation.Compile(CommonPEModuleBuilder moduleBuilder, Boolean emittingPdb, DiagnosticBag diagnostics, Predicate`1 filterOpt, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.CSharp.Emit.EmitHelpers.EmitDifference(CSharpCompilation compilation, EmitBaseline baseline, IEnumerable`1 edits, Func`2 isAddedSymbol, Stream metadataStream, Stream ilStream, Stream pdbStream, EmitDifferenceOptions options, CompilationTestData testData, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Compilation.EmitDifference(EmitBaseline baseline, IEnumerable`1 edits, Func`2 isAddedSymbol, Stream metadataStream, Stream ilStream, Stream pdbStream, EmitDifferenceOptions options, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.EditAndContinue.EditSession.EmitSolutionUpdateAsync(Solution solution, ActiveStatementSpanProvider solutionActiveStatementSpanProvider, UpdateId updateId, ImmutableDictionary`2 runningProjects, CancellationToken cancellationToken)
18:15:06.23 Code changes were not applied because the restart operation was blocked.
18:15:06.28 Project UnoWebViewReproApp1 net9.0-desktop:5: Disposing agent communication pipe
18:15:06.28 UnoWebViewReproApp1:5: Hot-Reload-Sitzung abgeschlossen.
Expected behavior 🎯
should not throw, just reloading with applyied change would be nice!
How to reproduce it (as minimally and precisely as possible) 🔬
added eventhandler code is on MainPage.xaml and its codebehind, done via intellisense eventhandler creation using TAB key and added the Log line
Workaround 🛠️
Restart the app and its working again
Renderer 🎨
- Skia
- Native
Affected platforms 📱💻🖥️
Desktop (Windows)
Uno.Sdk version (and other relevant versions) 📦
6.4.13
IDE version 🧑💻
VS 2026 18.0.0
Anything else we need to know? 💬
Tryed to investigate if also not the Eventhandler for the Rezizing Bug in #21810 is getting called, but it gets called (after I restarted the app)
Activity
github-actions commentedon May 17, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.
MartinZikmund commentedon May 18, 2026
Thanks for the detailed report. Looking at the stack trace, the underlying failure is
System.NullReferenceExceptioninsideMicrosoft.CodeAnalysis.Emit.DefinitionMap.GetPreviousMethodHandle/DeltaMetadataWriter.CreateDeletedMemberDefs-- that is Roslyn Edit-and-Continue emit path, not Uno Platform code. TheStreamJsonRpc/No pending updateexception is just the downstream symptom after the Roslyn emit crashed. This is best filed against dotnet/roslyn (or reported via VS Report a Problem so the .NET Hot Reload team gets the bundled diagnostics), since we cannot influence the EnC delta emitter from our side. Closing as not actionable on the Uno Platform side -- please ping me here with a Roslyn issue link if you file one, and feel free to reopen if you find evidence the crash actually originates in Uno Platform code.