ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[Bug] Error opening program: Closes immediately after opening

Open Broccoli187 opened this issue 2 years ago • 13 comments

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 avatar Jan 07 '23 14:01 Broccoli187

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

lencx avatar Jan 25 '23 07:01 lencx

This problem is still present.

lzrdblzzrd avatar Feb 14 '23 18:02 lzrdblzzrd

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

lencx avatar Feb 15 '23 15:02 lencx

Same problem on Arch Linux.

nick-robo avatar Mar 21 '23 01:03 nick-robo

Same problem on Arch Linux.

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

lencx avatar Mar 21 '23 03:03 lencx

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/lencx/ChatGPT/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 avatar Jun 02 '23 18:06 user4298539

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

lencx avatar Jun 03 '23 17:06 lencx

@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,

user4298539 avatar Jun 04 '23 10:06 user4298539

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

ashishanand7 avatar Jun 26 '23 04:06 ashishanand7

Possible duplicate of #271 and #528

asheroto avatar May 28 '24 04:05 asheroto

Hey, install all microsoft edge soft, its work again. Dnia 28 maja 2024 06:23 asheroto napisał(a):
Possible duplicate of github.com #271 and github.com #528

— Reply to this email directly, github.com view it on GitHub , or github.com unsubscribe . You are receiving this because you were mentioned. Message ID: <lencx/ChatGPT/issues/173/2134320864 @ github . com>

user4298539 avatar May 28 '24 06:05 user4298539

@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 avatar May 29 '24 04:05 asheroto

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.

asheroto avatar May 29 '24 05:05 asheroto