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

Signal crashes after update to 7.29.0 on Ubuntu 24.10 #7054

Open
2 tasks done
bungabunga opened this issue Oct 17, 2024 · 11 comments
Open
2 tasks done

Signal crashes after update to 7.29.0 on Ubuntu 24.10 #7054

bungabunga opened this issue Oct 17, 2024 · 11 comments
Labels

Comments

@bungabunga
Copy link

bungabunga commented Oct 17, 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

Signal-desktop crashes after update to 7.29.0 after a few seconds. The UI dosen't appear.

Steps to reproduce

  1. Update Signal
  2. Start Signal
  3. Crash

Expected result

Signal works normaly

Actual result

Crash after a few seconds

Screenshots

No response

Signal version

7.29.0

Operating system

Ubuntu 24.10

Version of Signal on your phone

7.19.2

Link to debug log

Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /opt/Signal/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME xxxxxxxxxx
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/xxx/.config/Signal
config/get: Successfully read user config file
config/get: Successfully read ephemeral config file
making app single instance

<--- Last few GCs --->

[210554:0xe7400134000] 42233 ms: Scavenge (reduce) (interleaved) 2046.1 (2052.0) -> 2046.1 (2049.0) MB, pooled: 0 MB, 42.62 / 0.00 ms (average mu = 0.437, current mu = 0.278) allocation failure;
[210554:0xe7400134000] 42452 ms: Mark-Compact (reduce) 2047.1 (2049.0) -> 2047.1 (2050.0) MB, pooled: 0 MB, 133.86 / 0.00 ms (+ 312.5 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 506 ms) (average mu = 0.39

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

Aborted (core dumped)

@bungabunga bungabunga changed the title Signal crashes after update to 7.29.0 Signal crashes after update to 7.29.0 on Ubuntu 24.10 Oct 17, 2024
@trevor-signal
Copy link
Contributor

@bungabunga sorry this is happening; can you share a zip of the logs folder via ~/.config/Signal?

@bungabunga
Copy link
Author

bungabunga commented Oct 17, 2024

@trevor-signal
Copy link
Contributor

@bungabunga we're seeing a bunch of issues in the logs updating messages; do you have a particularly large message history? We'll investigate on our end. In the meantime, if you delete the logs folder Signal should start for you again.

@bungabunga
Copy link
Author

well the message history goes back to november 2017, I used to copy/paste the old .config files every time I had a new machine.

@sjjh
Copy link

sjjh commented Oct 28, 2024

Same issue for me under Ubuntu 24.04 and Signal Desktop 7.30.0.

$ signal-desktop 
Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /opt/Signal/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME laptop
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/simon/.config/Signal
config/get: Successfully read user config file
config/get: Successfully read ephemeral config file
making app single instance

<--- Last few GCs --->

[5368:0x52400128000]    92243 ms: Scavenge (reduce) (interleaved) 2046.3 (2050.0) -> 2046.3 (2049.0) MB, pooled: 0 MB, 12.69 / 0.00 ms  (average mu = 0.495, current mu = 0.407) allocation failure; 
[5368:0x52400128000]    93777 ms: Mark-Compact (reduce) 2047.3 (2049.0) -> 2047.3 (2050.0) MB, pooled: 0 MB, 1427.94 / 0.00 ms  (+ 210.8 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1676 ms) (average mu = 0.38

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

I unfortunately don't know if I have an "particularly large message history", as I a) don't know how "particularly large" is defined and b) I don#t know where to find the message history on my computer to measure it. Please find a zipped tar of my ~/.config/Signal/logs at https://cloud.simon.schloss-tempelhof.de/s/iznmX6Z3Ei93i5n Thanks for your support!

@jnm
Copy link

jnm commented Oct 30, 2024

@bungabunga we're seeing a bunch of issues in the logs updating messages; do you have a particularly large message history? We'll investigate on our end. In the meantime, if you delete the logs folder Signal should start for you again.

Thank you, @trevor-signal <3 This got me running again.

In case it's useful, I had 13 GB in ~/.config/Signal, and 1.4 GB in ~/.config/Signal/logs, when the heap limit issue started. This is Signal 7.29.0 on Ubuntu 24.04.

@bungabunga
Copy link
Author

bungabunga commented Oct 31, 2024

It happened to me again after the upgrade to 7.31.0 but I unfortunately accidently deleted the Logs folder so I can't share it here.

@eaon
Copy link

eaon commented Nov 3, 2024

My Flatpak based install ran into the same problem, and I also have a substantial message history. app.log was multiple GB in size, even though the first message for that log file was dated 2024-10-30. I haven't rummaged around but I'd be happy to take a closer look if that would help.

@scottnonnenberg-signal
Copy link
Contributor

@eaon It would really help if you could provide the specific crash output you see, and ideally you'd also be able to provide your log output. If you reach out to [email protected], they can help you figure out how to upload that large log file. Compression should help a lot, but that's a very large file!

@eaon
Copy link

eaon commented Nov 4, 2024

Sounds good, will do! And yes, large and growing quickly too it seems: after shrinking app.log to ~300MB it ballooned back to a 1GB file in a matter of minutes

@eaon
Copy link

eaon commented Nov 5, 2024

I looked more closely and it's mainly repeating error messages of the same type that flood the log every couple seconds (and lots of them). So I don't think uploading GB would help, but I cleared app.log and opened the Signal Desktop for a couple seconds and uploaded that instead.

The main offender seems to be a TypeError of this sort:

{"level":50,"time":"2024-11-05T00:30:57.218Z","msg":"Message._withSchemaVersion: error updating message 01f6a477-6e80-8ad3-5d40-2046b80c57f6: TypeError: e.slice is not a function\n    at redactGenericText ([REDACTED]/resources/app.asar/preload.bundle.js:63:34743)\n    at [REDACTED]/resources/app.asar/preload.bundle.js:105:119421\n    at upgradeWithContext ([REDACTED]/resources/app.asar/preload.bundle.js:105:115839)\n    at Array.map (<anonymous>)\n    at [REDACTED]/resources/app.asar/preload.bundle.js:105:115910\n    at [REDACTED]/resources/app.asar/preload.bundle.js:105:116020\n    at [REDACTED]/resources/app.asar/preload.bundle.js:105:115573\n    at upgradeSchema ([REDACTED]/resources/app.asar/preload.bundle.js:105:120919)\n    at async m.concurrency ([REDACTED]/resources/app.asar/preload.bundle.js:105:125942)"}

Hope this helps, for now I'll just regularly truncate that file

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

No branches or pull requests

6 participants