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

Updater: Signal cannot be closed. Please close it manually and click Retry to continue. #7015

Closed
2 tasks done
TACIXAT opened this issue Sep 13, 2024 · 13 comments
Closed
2 tasks done

Comments

@TACIXAT
Copy link

TACIXAT commented Sep 13, 2024

Using a supported version?

  • I have searched searched open and closed issues for duplicates.
  • I am using Signal-Desktop as provided by the Signal team, not a 3rd-party package.

Overall summary

When an update is available, the first time I click the update button, Signal is unable to be closed. After it closes and reopens it will update correctly. This only happens on one of my computers. I reinstalled last week to see if that would fix it.

Steps to reproduce

This is likely specific to my machine, but clicking the update button.

image

Expected result

Signal is updated

Actual result

Signal cannot be closed. Please close it manually and click Retry to continue.

Failed to uninstall old application files. Please try running the installer again.: -1073740940

0xc0000374

Screenshots

image

image

Signal version

7.24.0 production

Operating system

Windows 11

Version of Signal on your phone

No response

Link to debug log

https://debuglogs.org/desktop/7.24.1/5ae4be7a69da2d22c8413a108753ccf057617ef7847b134afce6cd3eacca4b65.gz

I believe the minute timestamp :44 is failed update and minute :55 is the successful.

@jamiebuilds-signal
Copy link
Member

I'm not sure there's much we could do to improve this, there's already a lot of retrying that's going on now that all failed (Possibly because of some sort of antivirus software?).

But if there's no way to write the necessary files then there's not much we can do besides show an error. The first error is a useful step to get it working again, but then the second error is an accurate description of the issue we ran into and there's not a lot we can diagnose about it otherwise

@TACIXAT
Copy link
Author

TACIXAT commented Sep 19, 2024

Any idea on what would be preventing it from shutting down or how to diagnose that? I do not have AV running, perhaps Windows Defender.

@indutny-signal
Copy link
Contributor

@TACIXAT does this issue persist after computer restarts? We had reports of lingering processes staying alive when installer attempts to close currently running Signal instance. Typically they also appear in task manager.

@TACIXAT
Copy link
Author

TACIXAT commented Sep 22, 2024

I will try rebooting before updating next time I have an update pending.

@TACIXAT
Copy link
Author

TACIXAT commented Sep 26, 2024

Same result. Update was available, rebooted my computer, opened Signal, applied update. There was a single Signal process with 4 child processes. They all shut down when the updater ran.

image

It is weird that it doesn't happen on my other Windows machines and reinstalling did not fix it. I will try to find the source for the updater and have a look.

After killing the installer, it comes back with no icon (in the taskbar as well as task manager), then the updater works.

image

The logs do not show a difference from what I could tell, both cases seem to shut down correctly. It feels like the installer cannot detect that it shutdown correctly.

INFO  2024-09-26T04:36:57.181Z close event {"readyForShutdown":true,"shouldQuit":true}
INFO  2024-09-26T04:36:57.182Z NotificationService: clearing notification and updating
INFO  2024-09-26T04:36:57.182Z show window
INFO  2024-09-26T04:36:57.182Z NotificationService not updating notifications. Notifications are enabled; app is not focused; there is no notification data
INFO  2024-09-26T04:36:57.189Z main window closed event
INFO  2024-09-26T04:36:57.189Z System tray service: updating main window. Previously, there was a window, and now there is not
INFO  2024-09-26T04:36:57.189Z System tray service: rendering no tray
INFO  2024-09-26T04:36:57.189Z will-quit event {"hasEventBeenPrevented":false,"windowCount":0,"mainWindowExists":false}
INFO  2024-09-26T04:36:57.189Z quit event {"hasEventBeenPrevented":false,"windowCount":0,"mainWindowExists":false}
// Update failed, took a screenshot and updated issue.
INFO  2024-09-26T04:41:13.283Z got fast localeOverride setting null
INFO  2024-09-26T04:42:31.196Z close event {"readyForShutdown":true,"shouldQuit":true}
INFO  2024-09-26T04:42:31.206Z main window closed event
INFO  2024-09-26T04:42:31.206Z System tray service: updating main window. Previously, there was a window, and now there is not
INFO  2024-09-26T04:42:31.206Z System tray service: rendering no tray
INFO  2024-09-26T04:42:31.206Z will-quit event {"hasEventBeenPrevented":false,"windowCount":0,"mainWindowExists":false}
INFO  2024-09-26T04:42:31.206Z quit event {"hasEventBeenPrevented":false,"windowCount":0,"mainWindowExists":false}
// Update succeeded.
INFO  2024-09-26T04:42:34.676Z got fast localeOverride setting null

@TACIXAT
Copy link
Author

TACIXAT commented Sep 26, 2024

Likely related issue, seems like NSIS problems - electron-userland/electron-builder#6865

@indutny-signal
Copy link
Contributor

@TACIXAT looking at that electron builder issue it appears that the bug could be triggered by long paths or paths with unicode/non-latin characters. Does your path to Signal fall into either category?

@TACIXAT
Copy link
Author

TACIXAT commented Oct 4, 2024

I do not believe so. My computer is in English and the paths are well within the standard MAX_PATH, and I believe I have long paths enabled.

C:\Users\username\AppData\Local\Programs\signal-desktop (55)

C:\Users\username\AppData\Roaming\Signal\update-cache (53)

I just tried running the installer as an administrator and that did not change the behavior.

@TACIXAT
Copy link
Author

TACIXAT commented Oct 4, 2024

Can the installer be built with debug symbols? I'd happily follow it in windbg. If not maybe I can use regshot or some syscall trace to see what it is trying to do.

@TACIXAT
Copy link
Author

TACIXAT commented Oct 11, 2024

Rebooted, I did not start Signal. Ran the updater from %APPDATA%\Signal\update-cache, it still reports that it cannot be closed. It was definitely not running. On the next run the installer completes.

image

@trevor-signal
Copy link
Contributor

@TACIXAT does your Windows username have any unicode characters in it?

@TACIXAT
Copy link
Author

TACIXAT commented Oct 11, 2024 via email

@TACIXAT
Copy link
Author

TACIXAT commented Oct 22, 2024

Alright, I noticed C:\Users\username\AppData\Local\Programs\signal-desktop\ gets cleaned out on the failed update, then the next update succeeds. Through binary search I have identified that Uninstall Signal.exe being present in that folder causes the update to fail (deleting that, it succeeds first try, deleting everything besides that, it fails first try).

Does the updater run that during the update process?

Does the updater have a problem because the file has a space character in it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants