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

Suddentely I can't send messages on a specific room #2057

Open
MicaEcho opened this issue Dec 29, 2024 · 2 comments
Open

Suddentely I can't send messages on a specific room #2057

MicaEcho opened this issue Dec 29, 2024 · 2 comments
Labels
A-E2EE O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@MicaEcho
Copy link

Steps to reproduce

I can still receive the messages, I just can't send them. On Element Web or any other app I can send with no problem.
It's only happening on this specific room and only on Element Desktop, nothing has changed, it started happening suddenly.

The log shows that:

2024-12-29T05:44:12.362Z D FetchHttpApi: --> GET https://[redacted for privacy]/_matrix/client/v3/sync?filter=xxx&timeout=xxx&org.matrix.msc4222.use_state_after=xxx&set_presence=xxx&since=xxx
2024-12-29T05:44:14.020Z D Attempting to send queued to-device messages
2024-12-29T05:44:14.020Z D setting pendingEvent status to sending in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:14.081Z D setting pendingEvent status to encrypting in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:14.190Z E Error sending event Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
    at ne.encryptEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/4790.js:1:45640)
    at Ie.encryptEventIfNeeded (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:75661)
    at async Ie.encryptAndSendEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:74638)
    at async Promise.all (index 0)
2024-12-29T05:44:14.190Z D setting pendingEvent status to not_sent in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:14.312Z D Resend got send failure: Error(Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy])
2024-12-29T05:44:14.328Z D All queued to-device messages sent
2024-12-29T05:44:14.724Z D Attempting to send queued to-device messages
2024-12-29T05:44:14.724Z D setting pendingEvent status to sending in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:14.784Z D setting pendingEvent status to encrypting in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:14.881Z E Error sending event Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
    at ne.encryptEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/4790.js:1:45640)
    at Ie.encryptEventIfNeeded (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:75661)
    at async Ie.encryptAndSendEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:74638)
    at async Promise.all (index 0)
2024-12-29T05:44:14.881Z D setting pendingEvent status to not_sent in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:14.998Z D Resend got send failure: Error(Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy])
2024-12-29T05:44:15.006Z D setting pendingEvent status to sending in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.118Z D setting pendingEvent status to encrypting in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.220Z E Error sending event Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
    at ne.encryptEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/4790.js:1:45640)
    at Ie.encryptEventIfNeeded (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:75661)
    at async Ie.encryptAndSendEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:74638)
    at async Promise.all (index 0)
2024-12-29T05:44:15.221Z D setting pendingEvent status to not_sent in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.323Z D Resend got send failure: Error(Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy])
2024-12-29T05:44:15.341Z D setting pendingEvent status to sending in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.393Z D setting pendingEvent status to encrypting in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.475Z E Error sending event Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
    at ne.encryptEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/4790.js:1:45640)
    at Ie.encryptEventIfNeeded (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:75661)
    at async Ie.encryptAndSendEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:74638)
    at async Promise.all (index 0)
2024-12-29T05:44:15.475Z D setting pendingEvent status to not_sent in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.564Z D Resend got send failure: Error(Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy])
2024-12-29T05:44:15.569Z D setting pendingEvent status to sending in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.612Z D setting pendingEvent status to encrypting in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.685Z E Error sending event Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy]
    at ne.encryptEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/4790.js:1:45640)
    at Ie.encryptEventIfNeeded (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:75661)
    at async Ie.encryptAndSendEvent (vector://vector/webapp/bundles/4584a318314a73d1860a/7011.js:2:74638)
    at async Promise.all (index 0)
2024-12-29T05:44:15.685Z D setting pendingEvent status to not_sent in ![redacted for privacy]:[redacted for privacy] event ID ~![redacted for privacy]:[redacted for privacy]:m1735450993407.0 -> undefined
2024-12-29T05:44:15.763Z D Resend got send failure: Error(Error: Cannot encrypt event in unconfigured room ![redacted for privacy]:[redacted for privacy])

Outcome

What did you expect?

The message being sent.

What happened instead?

image

Operating system

Arch Linux

Application version

1.11.89

How did you install the app?

pacman

Homeserver

Synapse 1.121.1

Will you send logs?

No

@dosubot dosubot bot added A-E2EE O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Dec 29, 2024
@MicaEcho
Copy link
Author

I tried clearing the cache from the app and it didn't work.
I tried deleting the ~/.config/Element/cache folder and it didn't work.
So I deleted my entire ~/.config/Element folder and that fixed it.

I'm currently in 436 rooms, I don't think should affect the app's functionality, but this is the second time in a month that this same problem has happened, and it's always with a specific room (not the same one). It would be nice to find out what's causing this, but there really isn't anything else in the logs.

The only other behavior I've noticed is that when I run Element from the console with element-desktop -vvvv, I see these messages:

(node:916056) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 serverSupportedVersions listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:916056) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 userAccessToken listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:916056) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 homeserverUrl listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:916056) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 userAccessToken listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
``

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label Jan 2, 2025
@t3chguy
Copy link
Member

t3chguy commented Jan 2, 2025

The logs we'd need are not from the Electron main process, but from the renderer process, you should see the issue template on how to get them.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants