Page 1 of 1

Application Crashing on Windows 32 Bits

Posted: Tue Apr 09, 2024 11:09 am
by andrelfc
Hello, i've builded an exe to automate a routine in a website and its runs perfectly on windows 64 bits but crashes on win 32 bits at first script injection...
I've tried to run your demos and they work!!
Already tried to pass the same params to GlobalCEFApp thats in your demo but my app still crashing.

Could you give me a hint of whats could be this error?

The app simple crash, in delphi i got an Stack Overflow error (even increasing my stack size)


Windows give me a log of the crash

Code: Select all

Nome do Log:   Application
Fonte:         Windows Error Reporting
Data:          08/04/2024 17:38:56
Identificação do Evento:1001
Categoria da Tarefa:Nenhum
Nível:         Informações
Palavras-chave:Clássico
Usuário:       N/D
Computador:    Win10-32-Teste
Descrição:
Falha no bucket 2151960979451865755, tipo 1
Nome do Evento: APPCRASH
Resposta: Não disponível
ID do CAB: 0

Assinatura do problema:
P1: exemploDelphiWebBrowser.exe
P2: 1.0.0.0
P3: 6614442b
P4: libcef.dll
P5: 122.1.10.0
P6: 65e65c9f
P7: c00000fd
P8: 046c7396
P9: 
P10: 

Arquivos anexados:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER166E.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER18A2.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER18E1.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER18EF.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER190F.tmp.txt

Esses arquivos talvez estejam disponíveis em:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_exemploDelphiWeb_fd8bcb141472a296883442be3a3ada3db10ef23_83f6bf9b_3ba51e3e

Símbolo da análise: 
Verificando novamente se há uma solução: 0
ID do Relatório: 051ce9e9-e681-450c-bc58-ca843f330342
Status do Relatório: 268435456
Bucket com hash: de02fe262ff7abcb0ddd4d1bf6baea9bGuid do CAB: 0
XML de Evento:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-04-08T20:38:56.070656600Z" />
    <EventRecordID>910</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Win10-32-Teste</Computer>
    <Security />
  </System>
  <EventData>
    <Data>2151960979451865755</Data>
    <Data>1</Data>
    <Data>APPCRASH</Data>
    <Data>Não disponível</Data>
    <Data>0</Data>
    <Data>exemploDelphiWebBrowser.exe</Data>
    <Data>1.0.0.0</Data>
    <Data>6614442b</Data>
    <Data>libcef.dll</Data>
    <Data>122.1.10.0</Data>
    <Data>65e65c9f</Data>
    <Data>c00000fd</Data>
    <Data>046c7396</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER166E.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER18A2.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER18E1.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER18EF.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER190F.tmp.txt</Data>
    <Data>\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_exemploDelphiWeb_fd8bcb141472a296883442be3a3ada3db10ef23_83f6bf9b_3ba51e3e</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>051ce9e9-e681-450c-bc58-ca843f330342</Data>
    <Data>268435456</Data>
    <Data>de02fe262ff7abcb0ddd4d1bf6baea9b</Data>
    <Data>0</Data>
  </EventData>
</Event>

Code: Select all

Nome do Log:   Application
Fonte:         Application Error
Data:          08/04/2024 17:38:53
Identificação do Evento:1000
Categoria da Tarefa:(100)
Nível:         Erro
Palavras-chave:Clássico
Usuário:       N/D
Computador:    Win10-32-Teste
Descrição:
Nome do aplicativo com falha: exemploDelphiWebBrowser.exe, versão: 1.0.0.0, carimbo de data/hora: 0x6614442b
Nome do módulo com falha: libcef.dll, versão: 122.1.10.0, carimbo de data/hora: 0x65e65c9f
Código de exceção: 0xc00000fd
Deslocamento da falha: 0x046c7396
ID do processo com falha: 0x884
Hora de início do aplicativo com falha: 0x01da89f3c490f094
Caminho do aplicativo com falha: C:\consisanet\ConsisaWebBrowser\exemploDelphiWebBrowser.exe
Caminho do módulo com falha: C:\consisanet\ConsisaWebBrowser\libcef.dll
ID do Relatório: 051ce9e9-e681-450c-bc58-ca843f330342
Nome completo do pacote com falha: 
ID do aplicativo relativo ao pacote com falha: 
XML de Evento:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-04-08T20:38:53.492516400Z" />
    <EventRecordID>909</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Win10-32-Teste</Computer>
    <Security />
  </System>
  <EventData>
    <Data>exemploDelphiWebBrowser.exe</Data>
    <Data>1.0.0.0</Data>
    <Data>6614442b</Data>
    <Data>libcef.dll</Data>
    <Data>122.1.10.0</Data>
    <Data>65e65c9f</Data>
    <Data>c00000fd</Data>
    <Data>046c7396</Data>
    <Data>884</Data>
    <Data>01da89f3c490f094</Data>
    <Data>C:\consisanet\ConsisaWebBrowser\exemploDelphiWebBrowser.exe</Data>
    <Data>C:\consisanet\ConsisaWebBrowser\libcef.dll</Data>
    <Data>051ce9e9-e681-450c-bc58-ca843f330342</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

This is my GlobalCEFApp creation

Code: Select all

     
     GlobalCEFApp := TCefApplication.Create;
     GlobalCEFApp.LogSeverity := LOGSEVERITY_DEBUG;
//     GlobalCEFApp.SingleProcess := True;
     GlobalCEFApp.Locale := 'pt-BR';

And thats the error in my Debug.Log

Code: Select all

[0408/174445.253:ERROR:gles2_cmd_decoder_passthrough.cc(946)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader

Re: Application Crashing on Windows 32 Bits

Posted: Tue Apr 09, 2024 1:30 pm
by salvadordf
Hi,

Perhaps this CEF issue is related :
https://github.com/chromiumembedded/cef/issues/3250

Try adding this to the DPR file :

Code: Select all

{$IFDEF WIN32}
  {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
  {$MAXSTACKSIZE $400000}
{$ELSE}
  {$MAXSTACKSIZE $800000}
{$ENDIF}

Re: Application Crashing on Windows 32 Bits

Posted: Tue May 14, 2024 10:20 am
by liangchuying
I am trying to render a 1mb image on the web and the program will be white screen, what is this.I use TChromium and TCEFWindowParent to develop.
cef_binary_96.0.18+gfe551e4+chromium-96.0.4664.110_windows32_minimal

Re: Application Crashing on Windows 32 Bits

Posted: Tue May 14, 2024 11:04 am
by salvadordf
Hi,

A compressed image can be large after decompression. In 32 bits applications it's necessary to add this line in the DPR file :

Code: Select all

{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}

Re: Application Crashing on Windows 32 Bits

Posted: Wed May 15, 2024 2:29 am
by liangchuying
Thanks. I found your previous post
https://github.com/salvadordf/CEF4Delphi/blob/master/demos/Delphi_VCL/ExternalPumpBrowser/ExternalPumpBrowser.dpr