Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashed (Chrome bitness 32!==64) #46

Closed
tgoyer opened this issue Oct 10, 2019 · 3 comments
Closed

Server crashed (Chrome bitness 32!==64) #46

tgoyer opened this issue Oct 10, 2019 · 3 comments

Comments

@tgoyer
Copy link

tgoyer commented Oct 10, 2019

Hi!

I am just trying out your tool. It installed correctly, but when it launches, I get the following dialog:

HTTP Toolkit hit an error
Server crashed with 'Error: Conflict on chrome.bitness: 32 !== 64' (1).
Please file an issue at github.com/httptoolkit/feedback.

It will then restart and attempt again and crash again a few more times.


Does this affect you too? Click the +:smiley: icon in the top right and add a :+1: on issues to help decide where HTTP Toolkit goes next, or go take a look & vote on the most popular ideas so far.

@pimterry
Copy link
Member

Huh, yeah that's not great. Seems like this is related to #38 / vweevers/win-detect-browsers#55.

In general, this means that win-detect-browsers is somehow crashing, because it's detecting conflicting information about a Chrome install on your machine somewhere - e.g. maybe the registry doesn't match the filesystem, or at least win-detect-browsers thinks they don't match (this might well be a bug there).

I do need to make the app resilient to failures in this, but I also need to open a PR to help fix up win-detect-browsers itself, and some debug info would be useful there. A couple of quick questions:

  • Is there anything unusual about your Chrome install? Uninstalling and reinstalling recently, using normal + Chromium + developer versions, that kind of thing?
  • Anything else unusual about this machine?
  • Can you install nodejs (if you don't have it installed already), run npx win-detect-browsers --debug in a terminal, and share the output here?

Thanks!

@tgoyer
Copy link
Author

tgoyer commented Oct 21, 2019

The only thing that would be unusual about this machine is that it's a virtual Windows image.

Here is the debug you requested:

C:\>npx win-detect-browsers --debug
  win-detect-browsers Found chrome:
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ HKLM\Software\Wow6432Node\Google\Update /v LastInstallerSuccessLaunchCmdLine +0ms
  win-detect-browsers Found chrome:
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe +6ms
  win-detect-browsers Found chrome:
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe +2ms
  win-detect-browsers Found chrome:
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ HKLM\Software\Wow6432Node\Clients\StartMenuInternet\Google Chrome\shell\open\command +1ms
  win-detect-browsers Found chrome:
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ HKLM\Software\Clients\StartMenuInternet\Google Chrome\shell\open\command +2ms
  win-detect-browsers Found chrome (stable) (32):
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ Software\Wow6432Node\Google\Update\ClientState\{8A69D345-D564-463C-AFF1-A69D9E530F96}\LastInstallerSuccessLaunchCmdLine +2ms
  win-detect-browsers Found ie:
  win-detect-browsers   - C:\Program Files\Internet Explorer\iexplore.exe
  win-detect-browsers   @ HKLM\Software\Wow6432Node\Clients\StartMenuInternet\iexplore.exe\shell\open\command +3ms
  win-detect-browsers Found ie:
  win-detect-browsers   - C:\Program Files\Internet Explorer\iexplore.exe
  win-detect-browsers   @ HKLM\Software\Clients\StartMenuInternet\iexplore.exe\shell\open\command +4ms
  win-detect-browsers Found chrome (stable):
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ Software\Classes\ChromeHTML\shell\open\command +3ms
  win-detect-browsers Found chrome:
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ default location +2ms
  win-detect-browsers Found ie:
  win-detect-browsers   - C:\Program Files (x86)\Internet Explorer\iexplore.exe
  win-detect-browsers   @ default location +2ms
  win-detect-browsers Found ie:
  win-detect-browsers   - C:\Program Files\Internet Explorer\iexplore.exe
  win-detect-browsers   @ default location +4ms
  win-detect-browsers Found chrome (stable) (64):
  win-detect-browsers   - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  win-detect-browsers   @ Software\Wow6432Node\Google\Update\ClientState\{4DC8B4CA-1BDA-483E-B5FA-D3C12E15B62D}\UninstallString +6ms
c:\temp\npm_cache\_npx\17320\node_modules\win-detect-browsers\lib\finder.js:218
            throw new Error(`Conflict on ${this.name}.${k}: ${v1} !== ${v2}`)
            ^

Error: Conflict on chrome.bitness: 32 !== 64
    at Finder.found (c:\temp\npm_cache\_npx\17320\node_modules\win-detect-browsers\lib\finder.js:218:19)
    at fs.access (c:\temp\npm_cache\_npx\17320\node_modules\win-detect-browsers\lib\chrome\find-update-clients.js:75:25)
    at FSReqWrap.args [as oncomplete] (fs.js:140:20)

@pimterry
Copy link
Member

I managed to hunt this down & fix it in win-detect-browsers (vweevers/win-detect-browsers#61) and that was released today in the latest HTTP Toolkit. These Chrome conflicts on Windows should be a thing of the past.

Let me know if you hit any other issues. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants