Instalador travado e alto consumo de CPU

Problema

Ao tentar fazer a instalação do Latromi Server (Web + Client + WSApp), o instalador travou e o consumo de CPU foi a quase 100%, causando indisponibilidade do servidor.

O problema ocorreu no Latromi Installation Service v.1.0.186 em um servidor Windows Server 2016 Datacenter


A instalação ficou trava nesta etapa, e depois de alguns minutos, apresentou o erro:

Em seguida, foi exibida uma mensagem com mais detalhes do erro:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at LATROMI.ServerSetup.Program.<>c.<Install>b__5_0(MultiInstallerCompleteEventArgs e)
   at LATROMI.SetupUI.Facade.<>c__DisplayClass1_0.<StartMultiInstaller>b__0(Object sender, MultiInstallerCompleteEventArgs e)
   at LATROMI.SetupUI.WinForms.MultiInstallerDialog.OnComplete(AppInstallerResult installerResult)
   at LATROMI.SetupUI.WinForms.MultiInstallerDialog.<>c__DisplayClass16_0.<DownloadAndInstall>b__6(Object obj)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4795.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ff5e432l.nfy
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Temp/Downloads/latromi-server-setup%20(4).exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4795.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4739.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4395.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4785.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4770.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.ServiceProcess
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.ServiceModel
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4729.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4729.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4450.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
SMDiagnostics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4729.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.ServiceModel.Internals
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4729.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.IdentityModel
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4729.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

E no arquivo de log do instalador, foram registradas essas informações:

Data/Hora            Tipo     Origem                Categoria                 ID     Tempo            Mensagem
===========================================================================================================================================================================================================================================
2025-07-15 10:55:37  Info     LatromiInstSVC        --                        --     --               Executando serviço AppUpdater.CheckPatchesNonInstalled (app: LatromiClient, installFolder: 'C:\Program Files (x86)\LATROMI\Client - Adm', initialStage: Final)
2025-07-15 14:35:10  Debug    LatromiInstSVC        --                        --     --               ConnectionString:   (removido da amostra)
2025-07-15 14:35:19  Debug    LatromiInstSVC        --                        --     --               Método CommitChanges executado em LATROMI.Install.SiteHosting.Host.IISHost
2025-07-15 14:35:22  Debug    LatromiInstSVC        --                        --     --               ConnectionString:   (removido da amostra)
2025-07-15 14:35:23  Debug    LatromiInstSVC        --                        --     --               ConnectionString:   (removido da amostra)
2025-07-15 14:35:23  Sql      LatromiInstSVC        SELECT                    --     --               Instrução do tipo SELECT
    SELECT true FROM pg_database WHERE datname = 'tools_qa_latromi'

2025-07-15 14:35:23  Debug    LatromiInstSVC        --                        --     --               ConnectionString:   (removido da amostra)
2025-07-15 14:35:23  Sql      LatromiInstSVC        SELECT                    --     --               Instrução do tipo SELECT
    SELECT true FROM pg_class c
                                JOIN pg_namespace n ON n.oid = c.relnamespace
                                WHERE  nspname = 'public' AND relname = 'sistema' AND relkind = 'r'

2025-07-15 14:35:23  Debug    LatromiInstSVC        --                        --     --               Baixando arquivo 'https://dl.latromi.com.br/products/tools/LatromiTools.ico'...
2025-07-15 14:35:23  Debug    LatromiInstSVC        --                        --     --               Arquivo baixado: 'C:\windows\SystemTemp\LATROMI\b4776dda-04fa-4a98-b7b5-74fe9738da79\LatromiTools.ico'
2025-07-15 14:35:23  Debug    LatromiInstSVC        --                        --     --               ConnectionString:   (removido da amostra)
2025-07-15 14:35:23  Debug    LatromiInstSVC        --                        --     --               UninstallInfo - Procurando informações na chave de registro 64-bits: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{323D7ED8-F2FB-4A91-9C50-FCAEFC0738B5}.ToolsQa
2025-07-15 14:35:23  Debug    LatromiInstSVC        --                        --     --               UninstallInfo - chave de registro 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{323D7ED8-F2FB-4A91-9C50-FCAEFC0738B5}.ToolsQa' não encontrada.
2025-07-15 14:35:24  Debug    LatromiInstSVC        --                        --     --               UninstallInfo - Procurando informações na chave de registro 32-bits: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{9D52DBF3-229A-4723-BF31-C57C9C1D2A23}.{9D52dbf3-229A-4723-Bf31-C57c9c1d2a23}
2025-07-15 14:35:24  Debug    LatromiInstSVC        --                        --     --               UninstallInfo - chave de registro 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{9D52DBF3-229A-4723-BF31-C57C9C1D2A23}.{9D52dbf3-229A-4723-Bf31-C57c9c1d2a23}' não encontrada.
2025-07-15 14:35:25  Debug    LatromiInstSVC        --                        --     --               Adicionando à instalação: Script de instalação de banco de dados (v3.5.0.0)
2025-07-15 14:35:25  Debug    LatromiInstSVC        --                        --     --               Adicionando à instalação: LATROMI Tools v1.0.34
2025-07-15 14:35:25  Debug    LatromiInstSVC        --                        --     --               Adicionando à instalação: LATROMI Client v3.5.365
2025-07-15 14:35:25  Debug    LatromiInstSVC        --                        --     --               Adicionando à instalação: LATROMI Web v3.5.484
2025-07-15 14:35:25  Debug    LatromiInstSVC        --                        --     --               Adicionando à instalação: WSApp v2.4.13
2025-07-15 14:35:25  Debug    LatromiInstSVC        --                        --     --               Adicionando à instalação: SAP Crystal Reports runtime engine for .NET Framework (32-bit) v13.0.15.1840
2025-07-15 14:35:25  Debug    LatromiInstSVC        --                        --     --               Adquirindo:  Script de instalação de banco de dados (v3.5.0.0)
2025-07-15 14:35:28  Debug    LatromiInstSVC        --                        --     --               Adquirindo:  LATROMI Tools v1.0.34
2025-07-15 14:35:28  Debug    LatromiInstSVC        --                        --     --               Copiando Arquivo: D:\LATROMI\Software Distribution\060135a7-d7ac-8c7b-1840-bf5fd6db983a.zip
2025-07-15 14:35:29  Sql      LatromiInstSVC        SELECT                    --     --               Instrução do tipo SELECT
    SELECT true FROM pg_database WHERE datname = 'tools_qa_latromi'

2025-07-15 14:35:29  Debug    LatromiInstSVC        --                        --     --               ConnectionString:   (removido da amostra)
2025-07-15 14:35:29  Sql      LatromiInstSVC        SELECT                    --     --               Instrução do tipo SELECT
    SELECT true FROM pg_language WHERE lanname = 'plpgsql'

2025-07-15 14:35:29  Sql      LatromiInstSVC        SCRIPT                    --     --               Instrução do tipo SCRIPT
	--script de criação do banco de dados (removido da amostra)
	
2025-07-15 14:35:31  Debug    LatromiInstSVC        --                        --     --               Adquirindo:  LATROMI Client v3.5.365
2025-07-15 14:35:31  Debug    LatromiInstSVC        --                        --     --               Copiando Arquivo: D:\LATROMI\Software Distribution\fb4e92c7-7f07-32e6-fa28-a3325dbcdc57.zip
2025-07-15 14:35:31  Sql      LatromiInstSVC        UPDATE                    --     --               Instrução do tipo UPDATE
    UPDATE public.sistema set versaomaior = 3, versaomenor = 5, compilacao = 0, revisao = 0 where id = 1

2025-07-15 14:35:32  Info     LatromiInstSVC        --                        --     --               O Script 'Script de instalação de banco de dados (v3.5.0.0)' foi executado com sucesso.
2025-07-15 14:35:34  Debug    LatromiInstSVC        --                        --     --               Adquirindo:  LATROMI Web v3.5.484
2025-07-15 14:35:34  Debug    LatromiInstSVC        --                        --     --               Copiando Arquivo: D:\LATROMI\Software Distribution\fdf83873-a492-295b-91dd-10c0152c385e.zip
2025-07-15 14:36:07  Debug    LatromiInstSVC        --                        --     --               Adquirindo:  WSApp v2.4.13
2025-07-15 14:36:07  Debug    LatromiInstSVC        --                        --     --               Copiando Arquivo: D:\LATROMI\Software Distribution\1952d6eb-0ef1-bc8a-9108-e5aca9c32405.zip
2025-07-15 14:37:17  Debug    LatromiInstSVC        --                        --     --               Adquirindo:  SAP Crystal Reports runtime engine for .NET Framework (32-bit) v13.0.15.1840
2025-07-15 14:37:17  Debug    LatromiInstSVC        --                        --     --               Copiando Arquivo: D:\LATROMI\Software Distribution\9d52dbf3-229a-4723-bf31-c57c9c1d2a23.msi
2025-07-15 14:39:04  Debug    LatromiInstSVC        --                        --     --               Aguardando o final da instalação em LATROMI.Install.MultiInstaller

Onde o arquivo 9d52dbf3-229a-4723-bf31-c57c9c1d2a23.msi é o instalador do Crystal Reports Runtime.


Após o erro, foi constatado o consumo excessivo do CPU, que só voltou ao normal após parar o serviço.

Motivo

Desconhecido

Solução

Pendente