Building for over 30 minutes

hi,
Downloaded Blazor studio, very exciting. Well done. I thought I would open our existing project (it's very big now and growing). But it's been stuck on Building for well over half an hour. Assume, there's an issue.

Cheers,
Colin

There is probably an issue indeed. How many projects are there in the solution?

Check if there is anything in the log file (accessible from the Help menu item).

Hi,
Only one project, but the project is now quite large.

There are a few bits in the log file:
[2022-03-29 17:03:02.698] [info] Checking for update
[2022-03-29 17:03:02.711] [info] Generated new staging user ID: 0a56e9a6-6f99-5be2-add3-f2b7980dfd88
[2022-03-29 17:03:03.296] [info] Update for version 1.0.0-preview.1 is not available (latest version: 1.0.0-preview.1, downgrade is disallowed).
[2022-03-29 17:05:09.337] [error] Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Radzen.Server.ProjectContext.ProcessFile(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectContext.cs:line 180
at Radzen.Server.ProjectServer.ParseDocument(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime, Boolean prepare) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 422
at Radzen.Server.ProjectServer.GetMembers(String fileName, String filter) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 663
at Radzen.Server.CompilerService.GetMembers(String filePath, String filter) in /Users/korchev/github/radzen-next/Radzen.Server/Compiler.cs:line 256
at Radzen.Server.ProgramController.Members(MembersRequest request) in /Users/korchev/github/radzen-next/Radzen.Server/ProgramController.cs:line 171
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) [2022-03-29 17:05:09.346] [error] Error: System.NullReferenceException: Object reference not set to an instance of an object. at Radzen.Server.ProjectContext.ProcessFile(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectContext.cs:line 180 at Radzen.Server.ProjectServer.ParseDocument(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime, Boolean prepare) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 422 at Radzen.Server.ProjectServer.GetSymbols(String fileName, String token, String filter, Int32 offset) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 592 at Radzen.Server.CompilerService.GetSymbols(String filePath, String token, String filter, Int32 offset) in /Users/korchev/github/radzen-next/Radzen.Server/Compiler.cs:line 231 at Radzen.Server.ProgramController.Methods(SymbolsRequest request) in /Users/korchev/github/radzen-next/Radzen.Server/ProgramController.cs:line 143 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
[2022-03-29 17:05:10.357] [error] Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Radzen.Server.ProjectContext.ProcessFile(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectContext.cs:line 180
at Radzen.Server.ProjectServer.ParseDocument(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime, Boolean prepare) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 422
at Radzen.Server.ProjectServer.GetMembers(String fileName, String filter) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 663
at Radzen.Server.CompilerService.GetMembers(String filePath, String filter) in /Users/korchev/github/radzen-next/Radzen.Server/Compiler.cs:line 256
at Radzen.Server.ProgramController.Members(MembersRequest request) in /Users/korchev/github/radzen-next/Radzen.Server/ProgramController.cs:line 171
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) [2022-03-29 17:05:10.361] [error] Error: System.NullReferenceException: Object reference not set to an instance of an object. at Radzen.Server.ProjectContext.ProcessFile(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectContext.cs:line 180 at Radzen.Server.ProjectServer.ParseDocument(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime, Boolean prepare) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 422 at Radzen.Server.ProjectServer.GetSymbols(String fileName, String token, String filter, Int32 offset) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 592 at Radzen.Server.CompilerService.GetSymbols(String filePath, String token, String filter, Int32 offset) in /Users/korchev/github/radzen-next/Radzen.Server/Compiler.cs:line 231 at Radzen.Server.ProgramController.Methods(SymbolsRequest request) in /Users/korchev/github/radzen-next/Radzen.Server/ProgramController.cs:line 143 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
[2022-03-29 17:05:11.559] [error] Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Radzen.Server.ProjectContext.ProcessFile(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectContext.cs:line 180
at Radzen.Server.ProjectServer.ParseDocument(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime, Boolean prepare) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 422
at Radzen.Server.ProjectServer.GetMembers(String fileName, String filter) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 663
at Radzen.Server.CompilerService.GetMembers(String filePath, String filter) in /Users/korchev/github/radzen-next/Radzen.Server/Compiler.cs:line 256
at Radzen.Server.ProgramController.Members(MembersRequest request) in /Users/korchev/github/radzen-next/Radzen.Server/ProgramController.cs:line 171
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task) [2022-03-29 17:05:11.563] [error] Error: System.NullReferenceException: Object reference not set to an instance of an object. at Radzen.Server.ProjectContext.ProcessFile(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectContext.cs:line 180 at Radzen.Server.ProjectServer.ParseDocument(String fileName, String source, RazorProjectEngine projectEngine, Boolean designTime, Boolean prepare) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 422 at Radzen.Server.ProjectServer.GetSymbols(String fileName, String token, String filter, Int32 offset) in /Users/korchev/github/radzen-next/Radzen.Server/ProjectServer.cs:line 592 at Radzen.Server.CompilerService.GetSymbols(String filePath, String token, String filter, Int32 offset) in /Users/korchev/github/radzen-next/Radzen.Server/Compiler.cs:line 231 at Radzen.Server.ProgramController.Methods(SymbolsRequest request) in /Users/korchev/github/radzen-next/Radzen.Server/ProgramController.cs:line 143 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
[2022-03-30 10:41:00.850] [info] Checking for update
[2022-03-30 10:41:23.038] [info] Found version 1.0.0-preview.3 (url: Radzen-Blazor-Studio-Setup-1.0.0-preview.3.exe)
[2022-03-30 10:41:26.691] [info] Downloading update from Radzen-Blazor-Studio-Setup-1.0.0-preview.3.exe
[2022-03-30 10:41:26.697] [info] Cached update sha512 checksum doesn't match the latest available update. New update must be downloaded. Cached: pL1DkJFBFz4T8c7xNwQ3ZMvXdWhrfigD1ScNCEFKJ/0p34MCSLqeXcOhIpx3/CKUm1ov/OIiIqgnopgVEPeEiw==, expected: SDL3IjDVDdOWQRXKkfcn8t14Na0sPKf2BfXNtzjBAluoB/J70YrDYTZEs2/jWSPBKckqAdtPGA7GyTKS9FrTZw==. Directory for cached update will be cleaned
[2022-03-30 10:41:26.709] [info] Download block maps (old: "https://github.com/radzenhq/radzen-blazor-studio/releases/download/v1.0.0-preview.1/Radzen-Blazor-Studio-Setup-1.0.0-preview.1.exe.blockmap", new: https://github.com/radzenhq/radzen-blazor-studio/releases/download/v1.0.0-preview.3/Radzen-Blazor-Studio-Setup-1.0.0-preview.3.exe.blockmap)
[2022-03-30 10:41:27.110] [info] File has 1084 changed blocks
[2022-03-30 10:41:27.131] [info] Full: 88,829.62 KB, To download: 22,294.52 KB (25%)
[2022-03-30 10:41:27.720] [info] Differential download: https://github.com/radzenhq/radzen-blazor-studio/releases/download/v1.0.0-preview.3/Radzen-Blazor-Studio-Setup-1.0.0-preview.3.exe
[2022-03-30 10:41:27.910] [info] Redirect to https://objects.githubusercontent.com/github-production-release-asset-2e65be/464560328/4c90d42b-ad32-4941-8f86-11202e8ad321
[2022-03-30 10:41:43.217] [info] New version 1.0.0-preview.3 has been downloaded to C:\Users\colin_89kdcya\AppData\Local\radzen-updater\pending\Radzen-Blazor-Studio-Setup-1.0.0-preview.3.exe
[2022-03-30 10:41:44.701] [info] Install on explicit quitAndInstall
[2022-03-30 10:41:44.701] [info] Install: isSilent: false, isForceRunAfter: true
[2022-03-30 10:41:44.702] [info] isAdminRightsRequired is set to true, run installer using elevate.exe
[2022-03-30 10:41:56.595] [info] Checking for update
[2022-03-30 10:41:57.276] [info] Update for version 1.0.0-preview.3 is not available (latest version: 1.0.0-preview.3, downgrade is disallowed).

You can send us the app to info@radzen.com and we will troubleshoot what could be causing the problem.

I could resolve similar issue by cleaning the project in visual studio and then opening the project in radzen blazor studio directly (without building in visual studio) .It does take some time to load page in design mode (about 30-40 sec in my case) because it is compiling in background. Wait for the RUN icon to be enabled. After that there is now issue opening other pages.

There was a problem where builds never stopped. @spookyCol was so kind to send his app which allowed us to reproduce and fix it.

Radzen Blazor Studio (RBS for short) has to build the project before it can load it in design time (build is basically dotnet build - resolve and restore all nuget dependencies and compile all projects in the solution). After a full clean from VS all intermediate files are deleted and have to be created again hence the first time there would be a delay. The build time should improve after that though.

1 Like

@spookyCol you can try RBS 1.0.0.preview.5 which we released today. It shouldn't stay forever on the "Building" status message (as well as a few other issues solved).

Awesome thanks. Managed to get system loaded and running. Which I'm really impressed by. Great work.