chrome.exe disappeared after crash

531 views
Skip to first unread message

Hassan Iqbal

unread,
Mar 4, 2021, 7:15:10 PM3/4/21
to Chromium-dev
Hi,

I compiled chromium successfully and was using it. After that, I made some additions in the third_party\webrtc_override\rtc_base\logging.cc. It compiled successfully. Chromium was launched successfully and browsing was also fine. Everything was fine and suddenly it crashed. When I ran "out\Default\chrome.exe" to launch it I got the following error.

PS C:\chromium\src> out\Default\chrome.exe
out\Default\chrome.exe : The module 'out' could not be loaded. For more information, run 'Import-Module out'.
At line:1 char:1
+ out\Default\chrome.exe
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (out\Default\chrome.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoLoadModule

The chome.exe file in out\Default is simply gone. 
The next step I took was to compile using "autoninja -C out\Default chrome". It also failed with following error.

PS C:\chromium\src> autoninja -C out\Default chrome
"C:\depot_tools\ninja.exe" -C out\Default chrome -j 10
ninja: Entering directory `out\Default'
[2/4] ACTION //chrome:reorder_imports(//build/toolchain/win:win_clang_x64)
FAILED: chrome.exe chrome.exe.pdb
C:/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe ../../build/win/reorder-imports.py -i initialexe -o . -a x64
Traceback (most recent call last):
  File "../../build/win/reorder-imports.py", line 96, in <module>
    sys.exit(main(sys.argv[1:]))
  File "../../build/win/reorder-imports.py", line 93, in main
    return reorder_imports(opts.input, opts.output, opts.arch)
  File "../../build/win/reorder-imports.py", line 38, in reorder_imports
    pe = pefile.PE(input_image, fast_load=True)
  File "../../build/win\..\..\third_party\pefile\pefile.py", line 1754, in __init__
    self.__parse__(name, data, fast_load)
  File "../../build/win\..\..\third_party\pefile\pefile.py", line 1810, in __parse__
    fd.close()
UnboundLocalError: local variable 'fd' referenced before assignment
ninja: build stopped: subcommand failed.

Please, it would be amazing, if anyone can tell way to fix this issue without having the need to repeat the whole day long setup process. Thanks.

PhistucK

unread,
Mar 6, 2021, 3:33:23 PM3/6/21
to hassani...@gmail.com, Chromium-dev
Did you disable your antivirus for the Chromium source and output folders/tree? It might be flagging chrome.exe as a threat (since it probably does not match any Google Chrome signature) and it is quarantining it.
(Disabling the antivirus might also make the build faster)

PhistucK


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/bc32d0a7-7fd6-4a77-a762-f0189113ee96n%40chromium.org.

Hassan Iqbal

unread,
Mar 9, 2021, 10:55:00 AM3/9/21
to Chromium-dev, PhistucK, Chromium-dev, Hassan Iqbal
I don't have antivirus. Yet, it crashed.
However, I have disable windows defender and recompiled the chromium. So far it is working. If the issue occurs again, I will share the error in this thread.
Thanks.

PhistucK

unread,
Mar 9, 2021, 11:14:22 AM3/9/21
to Hassan Iqbal, Chromium-dev
Windows Defender is an antivirus. :)

PhistucK

Hassan

unread,
Mar 10, 2021, 5:36:37 PM3/10/21
to PhistucK, Chromium-dev
Ops. My bad. :)

Virus-free. www.avast.com
--
Regards
Hassan Iqbal

Virus-free. www.avast.com

Jacobo Aragunde Pérez

unread,
Mar 15, 2021, 6:48:07 PM3/15/21
to chromi...@chromium.org
Hello Hassan,

This happened to me too. It was Windows Defender who had crashed the
browser and deleted the chrome.exe. I can't remember the details, but I
managed to add an exception for Chromium and keep working with Defender
enabled. I think I went to the Windows Defender reports and there was an
option to add an exception there.

Best,
--
Jacobo Aragunde
Software Engineer at Igalia


On 10/3/21 23:35, Hassan wrote:
> Ops. My bad. :)
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
> Virus-free. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> On Tue, Mar 9, 2021 at 11:12 AM PhistucK <phis...@gmail.com
> <mailto:phis...@gmail.com>> wrote:
>
> Windows Defender is an antivirus. :)
>
> ☆*PhistucK*
>
>
> On Tue, Mar 9, 2021 at 3:55 PM Hassan Iqbal
> <hassani...@gmail.com <mailto:hassani...@gmail.com>> wrote:
>
> I don't have antivirus. Yet, it crashed.
> However, I have disable windows defender and recompiled the
> chromium. So far it is working. If the issue occurs again, I
> will share the error in this thread.
> Thanks.
>
> On Saturday, March 6, 2021 at 3:33:23 PM UTC-5 PhistucK wrote:
>
> Did you disable your antivirus for the Chromium source and
> output folders/tree? It might be flagging chrome.exe as a
> threat (since it probably does not match any Google Chrome
> signature) and it is quarantining it.
> (Disabling the antivirus might also make the build faster)
>
> ☆*PhistucK*
> <https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/bc32d0a7-7fd6-4a77-a762-f0189113ee96n%40chromium.org?utm_medium=email&utm_source=footer>.
>
>
>
> --
> Regards
> Hassan Iqbal
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
> Virus-free. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> <http://groups.google.com/a/chromium.org/group/chromium-dev>
> ---
> You received this message because you are subscribed to the Google
> Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to chromium-dev...@chromium.org
> <mailto:chromium-dev...@chromium.org>.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAHTXsWfyusZ4LC3rvbJ0Ecj6KULpZCnPhpuVMKbgU66RFvjjPQ%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAHTXsWfyusZ4LC3rvbJ0Ecj6KULpZCnPhpuVMKbgU66RFvjjPQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Hassan

unread,
Mar 15, 2021, 7:32:18 PM3/15/21
to jara...@igalia.com, Chromium-dev
Hi Jacobo,

Thank you for confirming.  
Yes, windows defender is causing this issue. Ever since I disabled it, chromium is working fine.
However, I will also try adding an exception for chromium and enable defender.
Thanks.



--
Regards
Hassan Iqbal
Reply all
Reply to author
Forward
0 new messages