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

[Bug] Error opening program: Closes immediately after opening #173

Open
Broccoli187 opened this issue Jan 7, 2023 · 13 comments
Open

[Bug] Error opening program: Closes immediately after opening #173

Broccoli187 opened this issue Jan 7, 2023 · 13 comments
Labels
bug Something isn't working platform: windows

Comments

@Broccoli187
Copy link

Version

ChatGPT_0.8.0_x64_en-US

Bug description

It appears that the program is closing immediately after being opened. I have tried running it in safe mode and using compatibility options, but the issue persists. I have also checked for known issues with the program and potential solutions, but have not been able to find any.

[2023-01-07][14:22:39][chatgpt::app::setup][�[92mINFO�[0m] stepup
[2023-01-07][14:22:39][chatgpt::app::setup][�[92mINFO�[0m] global_shortcut: ``
[2023-01-07][14:22:39][chatgpt::app::setup][�[92mINFO�[0m] global_shortcut_parse_error: [AcceleratorParseError]: Unexpected empty token while parsing accelerator
[2023-01-07][14:22:39][chatgpt::app::setup][�[92mINFO�[0m] stepup::run_check_update
[2023-01-07][14:22:39][chatgpt::utils][�[92mINFO�[0m] run_check_update: silent=false has_msg=None
[2023-01-07][14:22:39][attohttpc][�[34mDEBUG�[0m] trying to connect to lencx.github.io:443
[2023-01-07][14:22:39][attohttpc][�[34mDEBUG�[0m] trying to connect to 185.199.111.153:443
[2023-01-07][14:22:39][attohttpc][�[34mDEBUG�[0m] successfully connected to 185.199.111.153:443, took 13ms
[2023-01-07][14:22:39][attohttpc][�[34mDEBUG�[0m] GET /ChatGPT/install.json HTTP/1.1
[2023-01-07][14:22:39][attohttpc][�[34mDEBUG�[0m] creating a length body reader
[2023-01-07][14:22:39][attohttpc][�[34mDEBUG�[0m] creating gzip decoder
[2023-01-07][14:22:39][attohttpc][�[34mDEBUG�[0m] status code 200

OS

Windows 11 Home - H1H2

Environment

No response

@Broccoli187 Broccoli187 added the bug Something isn't working label Jan 7, 2023
@lencx
Copy link
Owner

lencx commented Jan 25, 2023

You can try the latest version and see if it gets resolved.

@lzrdblzzrd
Copy link

This problem is still present.

@lencx
Copy link
Owner

lencx commented Feb 15, 2023

Platform compatibility, I can't solve it for now.

@nick-robo
Copy link

Same problem on Arch Linux.

@lencx
Copy link
Owner

lencx commented Mar 21, 2023

Same problem on Arch Linux.

I don't have an Arch Linux system, so I am unable to fix issues related to it temporarily.

@user4298539
Copy link

user4298539 commented Jun 2, 2023

After a few months of working properly ChatGPT on windows 10 also after updating to 22H2..
I have the same problem with ChatGPT to the desktop, despite the update to version 1.0. gives,
deleting files from User .chatcgpt also. [ https://github.com//issues/716 ]

I`am checking without which probrams the application does not work and automatically shuts down after startup,
also. because the day before yesterday I removed, for example, microsoft edge, and some other unnecessary programs.... I can only see that in this I might have been at fault.... but I shouldn't be....

i am working on it for the second day and it irritates my autism terribly. if i do not find a way i will be further irritated :) give your support autistic activists :P

I will add that the icon appears when you click on the .exe, unfortunately when you click on the start bar (by the clock) on the icon makes it disappear.... and so for the 2nd day now.... there are few such problems and their solutions equal zero....

there is a Installation_Log.txt [ https://github.com/lencx/ChatGPT/files/11642410/Installation_Log.txt ]

@user4298539 user4298539 mentioned this issue Jun 2, 2023
@lencx
Copy link
Owner

lencx commented Jun 3, 2023

@user4298539 You can re-download and install WebView2 here (https://developer.microsoft.com/en-us/microsoft-edge/webview2), then restart the application.

@user4298539
Copy link

@lencx SOLVED! Yes, I had webview from Adobe, but you're right that I also removed it with the removal of microsoft edge. You are my mentor! Thank you,

@ashishanand7
Copy link

ashishanand7 commented Jun 26, 2023

I have MS Edge and Webview 2. OS: Windows 11

crashes immediately

logs:
first run

[2023-06-26][04:23:31][chatgpt::app::setup][INFO] stepup
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\main.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\core.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\chat.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\cmd.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\dalle2.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\export.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\markdown.export.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\popup.core.js
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\README.md
[2023-06-26][04:23:31][chatgpt::app::template][INFO] write_script: C:\Users\Admin\.chatgpt\scripts\manifest.json
[2023-06-26][04:23:31][chatgpt::app::setup][INFO] global_shortcut_unregister
[2023-06-26][04:23:31][chatgpt::app::setup][INFO] run_check_update
[2023-06-26][04:23:31][chatgpt::app::setup][INFO] stepup_tray
[2023-06-26][04:23:31][chatgpt::utils][INFO] run_check_update: silent=false has_msg=None
[2023-06-26][04:23:31][reqwest::connect][DEBUG] starting new connection: https://raw.githubusercontent.com/
[2023-06-26][04:23:31][attohttpc][DEBUG] trying to connect to lencx.github.io:443
[2023-06-26][04:23:31][attohttpc][DEBUG] trying to connect to 185.199.108.153:443
[2023-06-26][04:23:31][attohttpc][DEBUG] successfully connected to 185.199.108.153:443, took 37ms
[2023-06-26][04:23:31][attohttpc][DEBUG] GET /ChatGPT/install.json HTTP/1.1
[2023-06-26][04:23:31][chatgpt::app::script][INFO] update_scripts_manifest
[2023-06-26][04:23:31][chatgpt::app::script][INFO] script_file: "C:\\Users\\Admin\\.chatgpt\\scripts\\manifest.json"
[2023-06-26][04:23:31][attohttpc][DEBUG] creating a length body reader
[2023-06-26][04:23:31][attohttpc][DEBUG] creating gzip decoder
[2023-06-26][04:23:31][attohttpc][DEBUG] status code 200

next run


[2023-06-26][04:26:40][chatgpt::app::setup][INFO] stepup
[2023-06-26][04:26:40][chatgpt::app::setup][INFO] global_shortcut_unregister
[2023-06-26][04:26:40][chatgpt::app::setup][INFO] run_check_update
[2023-06-26][04:26:40][chatgpt::utils][INFO] run_check_update: silent=false has_msg=None
[2023-06-26][04:26:40][chatgpt::app::setup][INFO] stepup_tray
[2023-06-26][04:26:40][reqwest::connect][DEBUG] starting new connection: https://raw.githubusercontent.com/
[2023-06-26][04:26:40][attohttpc][DEBUG] trying to connect to lencx.github.io:443
[2023-06-26][04:26:40][attohttpc][DEBUG] trying to connect to 185.199.108.153:443
[2023-06-26][04:26:40][attohttpc][DEBUG] successfully connected to 185.199.108.153:443, took 33ms
[2023-06-26][04:26:40][attohttpc][DEBUG] GET /ChatGPT/install.json HTTP/1.1
[2023-06-26][04:26:40][attohttpc][DEBUG] creating a length body reader
[2023-06-26][04:26:40][attohttpc][DEBUG] creating gzip decoder
[2023-06-26][04:26:40][attohttpc][DEBUG] status code 200

@asheroto
Copy link
Contributor

Possible duplicate of #271 and #528

@user4298539
Copy link

user4298539 commented May 28, 2024 via email

@asheroto
Copy link
Contributor

asheroto commented May 29, 2024

@user4298539 I tried that as well as installing the latest version of WebView2, continues to fail.

Some of my other WebView2 applications were messed up and I had to update the application. I'm thinking the WebView2 dependencies need to be updated in here. @lencx

Similar to #1130, #271, #528, #716.

@asheroto
Copy link
Contributor

asheroto commented May 29, 2024

Okay the trick here for me was this

  1. Kill all instances of ChatGPT with the command from Administrator PowerShell: taskkill /f /im chatgpt*
  2. Download the latest version of WebView2 x64
  3. Install it
  4. Remove or rename the .chatgpt folder in the C:\Users\<your username> folder.
  5. Run from Administrator PowerShell: taskkill /f /im msedge* to close ALL msedge and webview2 instances
  6. Open Settings > Apps > search webview
  7. Click the hamburger menu option on it, click Modify, then Repair
  8. Let is run through the repair
  9. Launch ChatGPT

The WebView2 packages are still out-of-date in version 1.1.0 as of 2024-05-29, but using this method in this order I was finally able to get it to come up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: windows
Projects
None yet
Development

No branches or pull requests

7 participants