httptoolkit-desktop icon indicating copy to clipboard operation
httptoolkit-desktop copied to clipboard

Install issue

Open ShirinBY opened this issue 2 years ago • 9 comments

Hi, After running the exe file for windows 10 and 11, I keep getting "Server shut down unexpectedly with code 1" please file an issue with GitHub

ShirinBY avatar Apr 03 '23 05:04 ShirinBY

Hi @ShirinBY, can you share your logs after this happens? They're available from the application menu, under 'Help', 'View HTTP Toolkit logs'.

pimterry avatar Apr 03 '23 12:04 pimterry

Hi @pimterry , Thank you for your reply. But I cannot install the app at all to be able to give you any log.

ShirinBY avatar Apr 03 '23 23:04 ShirinBY

I don't understand - if you're seeing the "Server shut down unexpectedly with code 1" message, then you must already be running the application. The logs are created before the server is launched, so they must already be present.

pimterry avatar Apr 04 '23 11:04 pimterry

Screenshot 2023-04-04 163045 I dont understand it either. After running the exe file I see this error! Its not only me. My other friends get the same error.

ShirinBY avatar Apr 04 '23 13:04 ShirinBY

@pimterry , Ok now I searched for it, I can see its installed under the apps, but when I run it I get below error. Screenshot 2023-04-04 233409

ShirinBY avatar Apr 04 '23 13:04 ShirinBY

Have you tried to install the app in windows 10 or 11 lately?

ShirinBY avatar Apr 04 '23 13:04 ShirinBY

Have you tried to install the app in windows 10 or 11 lately?

I haven't personally reinstalled it recently, but hundreds of users install HTTP Toolkit on Windows every day, and I haven't heard any other reports of issues like this lately.

Interestingly though, looking at your screenshot, that's showing a different error to the previous case ('UI stopped unexpectedly' vs 'Server shut down unexpectedly with code 1'). Any idea why that might be? Does the error change randomly, or is it that you're launching the app in a different way somehow?

Ok now I searched for it, I can see its installed under the apps, but when I run it I get below error.

Ok, yes, that means you have already installed it successfully, it's just that running the application fails.

If you can't see the menu, you can find the logs manually in C:\Users\<username>\AppData\Roaming\httptoolkit\logs\. Can you share the contents from there?

pimterry avatar Apr 04 '23 13:04 pimterry

Hi @pimterry , Sorry for delay, due to time gap. Please see the log file: last-run.log

ShirinBY avatar Apr 04 '23 23:04 ShirinBY

Ok, so there's two different errors here: the 'UI crashed case' and the 'Server shut down' case. The log you've shared there is for the UI crash.

For that case, I'm not sure what could cause this, and there's not much I can do. What's happening here is that electron is firing a render-process-gone event saying launch-failed. That doesn't tell us very much. For whatever reason, on your computer when Electron tries to render the UI with Chromium, your computer fails to even launch that process. This could be due to security restrictions on your machine, or corruption in the app somewhere, or serious memory issues, or some major graphics driver problem, or one of a million other small things, but it's definitely not a general issue (HTTP Toolkit has error reporting for this kind of thing, and there's very few reports of this).

Reinstalling the app might help. If it doesn't, checking that your graphics drivers are working etc is probably a good idea.

For the other case, where the server is crashing, that log doesn't help much unfortunately. Is it still possible to reproduce that issue? If you can share a log from that crash I can investigate further - that error is a crash from HTTP Toolkit itself (rather than from Electron) which means it's much more likely to be something fixable.

pimterry avatar Apr 05 '23 12:04 pimterry