lencx / ChatGPT

🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
https://nofwl.com
52.28k stars 5.88k forks source link

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

Open Broccoli187 opened 1 year ago

Broccoli187 commented 1 year ago

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

OS

Windows 11 Home - H1H2

Environment

No response

lencx commented 1 year ago

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

lzrdblzzrd commented 1 year ago

This problem is still present.

lencx commented 1 year ago

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

nick-robo commented 1 year ago

Same problem on Arch Linux.

lencx commented 1 year ago

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 commented 1 year ago

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 ]

lencx commented 1 year ago

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

user4298539 commented 1 year ago

@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 commented 1 year ago

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 commented 3 months ago

Possible duplicate of #271 and #528

user4298539 commented 3 months ago

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>

asheroto commented 3 months ago

@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 commented 3 months ago

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.