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

Crash on AutoUpdater error #1266

Closed
2 tasks done
jared-craig opened this issue Jan 31, 2024 · 5 comments
Closed
2 tasks done

Crash on AutoUpdater error #1266

jared-craig opened this issue Jan 31, 2024 · 5 comments
Labels
Bug Something isn't working In Development In Development Branch/Build but not in Public Release.

Comments

@jared-craig
Copy link

jared-craig commented Jan 31, 2024

Consent

  • I verified that there is no open/closed issue for the same subject.
  • I understand that YTMDesktop have NO affiliation with Google or YouTube

Current Behavior

YouTube Music Desktop App Crashed

Environment Details:
- YouTube Music Desktop App 2.0.0
- Electron 28.2.0
- Windows NT 10.0.22631

Error Message reported from YTMD


Name: Error
Message: Unhandled error. ('Command failed: 4294967295\n' +
  "System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '   --- End of inner exception stack trace ---\r\n' +
  '   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n' +
  '   at Squirrel.Update.Program.executeCommandLine(String[] args)\r\n' +
  '   at Squirrel.Update.Program.main(String[] args)\r\n' +
  '   at Squirrel.Update.Program.Main(String[] args)\r\n' +
  "---> (Inner Exception #0) System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()<---\r\n' +
  '\r\n')
Cause: Unknown

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('Command failed: 4294967295\n' +
  "System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '   --- End of inner exception stack trace ---\r\n' +
  '   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n' +
  '   at Squirrel.Update.Program.executeCommandLine(String[] args)\r\n' +
  '   at Squirrel.Update.Program.main(String[] args)\r\n' +
  '   at Squirrel.Update.Program.Main(String[] args)\r\n' +
  "---> (Inner Exception #0) System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()<---\r\n' +
  '\r\n')
    at new NodeError (node:internal/errors:405:5)
    at AutoUpdater.emit (node:events:506:17)
    at AutoUpdater.emitError (node:electron/js2c/browser_init:2:3868)
    at node:electron/js2c/browser_init:2:3444
    at node:electron/js2c/browser_init:2:5035
    at ChildProcess.<anonymous> (node:electron/js2c/browser_init:2:4741)
    at ChildProcess.emit (node:events:517:28)
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)

Expected Behavior

YTMD to still be working upon waking up.

Steps To Reproduce

  1. Wake up computer in the morning from sleep.

YTMDesktop

v2.0

OS

Windows

OS Version

11

Arch

x64

Installation way

.exe

Anything else?

No response

@IndefiniteBen
Copy link

I have also seen this on Windows 10 when waking from Hibernation.

@Alipoodle
Copy link
Member

Appears that this is a network issue with failing to get a response from the Automatic update and likely fails when the computer is in Sleep/Hibernation.

@IndefiniteBen
Copy link

IndefiniteBen commented Jan 31, 2024

I just easily replicated it by hibernating my PC for a few minutes and had the error after waking.
My error was identical to jared-craig except the Windows version.
My laptop is connected to ethernet via a USB-C hub.

Is there anything we can do to avoid this issue? Just closing it before sleeping/hibernating?
Thanks for all your efforts!

@ZoinktheBoink
Copy link

ZoinktheBoink commented Feb 3, 2024

I am also getting this issue.

Error Message
YouTube Music Desktop App Crashed

Environment Details:
    YouTube Music Desktop App 2.0.0
    Electron 28.2.0
    Windows NT 10.0.23620

Name: Error
Message: Unhandled error. ('Command failed: 4294967295\n' +
  "System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '   --- End of inner exception stack trace ---\r\n' +
  '   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n' +
  '   at Squirrel.Update.Program.executeCommandLine(String[] args)\r\n' +
  '   at Squirrel.Update.Program.main(String[] args)\r\n' +
  '   at Squirrel.Update.Program.Main(String[] args)\r\n' +
  "---> (Inner Exception #0) System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()<---\r\n' +
  '\r\n')
Cause: Unknown

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('Command failed: 4294967295\n' +
  "System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '   --- End of inner exception stack trace ---\r\n' +
  '   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n' +
  '   at Squirrel.Update.Program.executeCommandLine(String[] args)\r\n' +
  '   at Squirrel.Update.Program.main(String[] args)\r\n' +
  '   at Squirrel.Update.Program.Main(String[] args)\r\n' +
  "---> (Inner Exception #0) System.Net.WebException: The remote name could not be resolved: 'update.electronjs.org'\r\n" +
  '   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n' +
  '   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result)\r\n' +
  '   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Utility.<LogIfThrows>d__43`1.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.FileDownloader.<DownloadUrl>d__3.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.UpdateManager.<CheckForUpdate>d__8.MoveNext()\r\n' +
  '--- End of stack trace from previous location where exception was thrown ---\r\n' +
  '   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n' +
  '   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n' +
  '   at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()<---\r\n' +
  '\r\n')
    at new NodeError (node:internal/errors:405:5)
    at AutoUpdater.emit (node:events:506:17)
    at AutoUpdater.emitError (node:electron/js2c/browser_init:2:3868)
    at node:electron/js2c/browser_init:2:3444
    at node:electron/js2c/browser_init:2:5035
    at ChildProcess.<anonymous> (node:electron/js2c/browser_init:2:4741)
    at ChildProcess.emit (node:events:529:35)
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)

@NovusTheory
Copy link
Member

This issue is likely resolved in development with the addition of the error event from the updater being listened to. Next release should include a fix for this

@Alipoodle Alipoodle added the Bug Something isn't working label Feb 5, 2024
@NovusTheory NovusTheory added the In Development In Development Branch/Build but not in Public Release. label Feb 7, 2024
@NovusTheory NovusTheory changed the title Crash on computer wake Crash on AutoUpdater error Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working In Development In Development Branch/Build but not in Public Release.
Projects
None yet
Development

No branches or pull requests

5 participants