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

Unhandled Promise Rejection #6877

Open
2 tasks done
avi12 opened this issue May 13, 2024 · 11 comments
Open
2 tasks done

Unhandled Promise Rejection #6877

avi12 opened this issue May 13, 2024 · 11 comments

Comments

@avi12
Copy link

avi12 commented May 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

Clicked X multiple times to close, then crashed with an error every time I tried to open

Steps to reproduce

  1. I had a chat open
  2. Pasted a screenshot
  3. Added an emoji
  4. Pressed enter, but noticed that it added a new line rather than sending it
  5. Tried to close the app, but the window didn't close, so I pressed multiple times the close button
  6. I tried to reopen the app, but got the error I posted in "Actual result"

Expected result

Normally it closes and opens up as usual
I fixed the issue by terminating Signal's process and relaunching the app

Actual result

Unhandled Promise Rejection

Error: EPERM: operation not permitted, unlink 'C:\Users\avi12\AppData\Roaming\Signal\logs\app.log.3'

Screenshots

No response

Signal version

7.8.0

Operating system

Windows 10 22H2

Version of Signal on your phone

No response

Link to debug log

https://debuglogs.org/desktop/7.8.0/92c8fb86235165a19932f9764515ebe0461b6cfcb0ac3b8946374a1363efca8b.gz

@trevor-signal
Copy link
Contributor

@avi12 is this reproducible for you?

@avi12
Copy link
Author

avi12 commented May 14, 2024

Sadly no, ever since I terminated Signal's process and relaunched it, it's not reproducible

@davidfraser
Copy link

I had a similar issue - the same error message, but with app.log instead of app.log.3. I couldn't see any information about app.log using icacls or takeown. I used File Locksmith from PowerToys (as recommended here) to see what had locked something in the logs directory. It found that there was a signal.exe still running, though there was no sign of it. I terminated that and Signal was able to start fine again...

@scottnonnenberg-signal
Copy link
Contributor

@davidfraser We'd love to see debug logs for the situation you've described. It seems like Signal Desktop is taking too long to shut down, and also not properly detecting a second instance before starting up!

@davidfraser
Copy link

OK, this only happened once yesterday - here are the logs I can get, but it seems they only include the new session, not the dead one: https://debuglogs.org/desktop/7.10.0/e08e4d3bf90f6d897ca438498dfcb1b629edddc66fa26163b18c6f52cfa870e1.gz

@scottnonnenberg-signal
Copy link
Contributor

scottnonnenberg-signal commented May 28, 2024

@davidfraser Thanks for the debug log - it looks like you did have a crash or somehow ungraceful exit. But we don't have any information about it. If you start using the app with the --enable-crash-reports command-line argument, your future debug logs will include crash information.

WARN  2024-05-28T11:31:11.458Z cancelInflightRequests/powerMonitorSuspend: Cancelling 0 requests
WARN  2024-05-28T11:31:11.458Z cancelInflightRequests/powerMonitorSuspend: Done
INFO  2024-05-28T11:31:11.458Z TaskWithTimeout: suspending 0 tasks
INFO  2024-05-28T11:31:11.458Z powerMonitor: suspend
WARN  2024-05-28T11:31:11.458Z cancelInflightRequests/powerMonitorSuspend: Cancelling 0 requests
WARN  2024-05-28T11:31:11.458Z cancelInflightRequests/powerMonitorSuspend: Done
INFO  2024-05-28T11:31:11.458Z TaskWithTimeout: suspending 0 tasks
<crash here? no quit events>
INFO  2024-05-28T13:07:50.422Z got fast localeOverride setting null
... startup stuff
INFO  2024-05-28T13:07:50.492Z app ready

@davidfraser
Copy link

I turned on debug logging, and then got told that there was a crash - logs here although I don't think this was the same event
https://debuglogs.org/desktop/7.11.0/921bbf7aaf3a53bb483154d6da0d1311285da4ff72ec971ee1ba00f76dd07bdb.gz

@jamiebuilds-signal
Copy link
Member

@davidfraser looks like thats a different issue with EXCEPTION_BREAKPOINT, it looks like this happened soon after a network connection was reset. Did you make any changes to your network before this happened? Such as changing wifi networks or turning a VPN on/off?

WARN  2024-06-01T01:01:27.750Z WebSocketResource(authenticated): WebSocket error Error: read ECONNRESET

@davidfraser
Copy link

Hmmm, I didn't switch networks at that point. So I'm not sure. But will upload another debug log if I get into the same situation as reported in this bug originally

@avi12
Copy link
Author

avi12 commented Jun 9, 2024

A friend messaged me on Signal, I got a notification on mobile, and then I switched to the desktop app but noticed that it wasn't synchronized for some reason
I tried to close the desktop app, didn't respond the first time so I clicked X a second time and a moment later I got
image
app.log

I tried to reopen Signal on the desktop, got the error again
I suspect that similar to my original post, the only way to work around it is by terminating the Signal process

@indutny-signal
Copy link
Contributor

@avi12 sadly, this is very likely true. If you'll attempt to terminate it - could you make note which processes were running? So far we lack this information and it is hard to take action on the issue.

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

No branches or pull requests

6 participants