Closed pacien closed 5 years ago
Where did you install this version from? It seems incorrectly built without encryption support
This is from the NixOS package which is based on the official pre-compiled release of riot-web.
The same package works on my other laptop and I'm able to send and receive messages in encrypted rooms, so the package is indeed supporting encryption.
The "something went wrong" screen appears only on one of my device. I suspect that it's trying to show a room which crashes the whole app instead of only one component after the upgrade to React 16.
That doesn't line up with the error which was thrown: https://github.com/matrix-org/matrix-js-sdk/blob/c9527685422ad9e158773d35622a4cd87b02d20e/src/client.js#L1036
Could the crash of one component prevent the crypto part from being initialised if it happens early? I checked both installations and their checksums are matching, and the package does support E2EE.
I think that this session might be stuck on a broken room. I've tried setting mx_last_room_id
in the Local Storage in the developper tools, but it keeps resetting itself to its current value. Is there any way I can set it to another value for testing purposes?
Could the crash of one component prevent the crypto part from being initialised if it happens early? I checked both installations and their checksums are matching, and the package does support E2EE.
Crypto starts before any of the app gets mounted (other than the Spinner)
I've been able to identify the problem: I think there's a bug with the experimental low-bandwidth mode and end-to-end encryption support:
Since Riot automatically re-opens the last viewed room, the error appears right on start, not allowing the user to disable the low-bandwidth mode without the help of the console.
I've been able to go to another room by setting window.location.href = "vector://vector/webapp/#/room/[another room without encryption]
and refreshing, allowing me to access the settings and disable the low-bandwidth mode.
Encryption is intentionally not supported in low bandwidth mode, which is why this is a labs flag.
Why close this issue though? It should really not lock the entire app with an error page asking for a bug report, without allowing the user to disable that mode.
Furthermore, what is the rationale for disabling E2EE in low bandwidth mode?
Furthermore, what is the rationale for disabling E2EE in low bandwidth mode?
e2ee key negotiation uses a lot of bandwidth.
Why close this issue though? It should really not lock the entire app with an error page asking for a bug report, without allowing the user to disable that mode.
Because its in Labs and this is expected behaviour
The low bandwidth option is meant to be paired with specific infrastructure. When you're not using that infrastructure, it has minimal value.
I am encountering this exact error, since there was no indication in the Labs setting that it was not compatible with E2EE. Have not yet figured out how to "reset" since Element takes me directly to the "Something went wrong" page without any way to change this.
Suggestions: 1) Make it clear that enabling Low-Bandwidth mode in the Labs will cause this problem 2) Use UX elements to hide or disable E2EE rooms when in Low-Bandwidth mode 3) Allow for users to edit their settings when "Something" goes wrong and/or add a button to reset labs flags
Description
On one of my device, a previously working Riot desktop session broke. Edit: after enabling low-bandwidth mode and trying to view an encrypted room On 1.4.1, nothing but a blank screen appears when launching the app. After upgrading to 1.4.2, nothing but a "Something went wrong" screen (probably the one added in https://github.com/vector-im/riot-web/issues/11009) appears.
Clearing the cache and reloading the app has no effect.
Oddly enough, the tray indicators works and displays the unread message count.
The Electron developper console shows a few exceptions in the log snippet that follows. The last exception is a rendering issue that might be the cause of the problem.
Console log snippet
Steps to reproduce
Launch the Riot desktop app.Get unlucky.Experience frustration.See https://github.com/vector-im/riot-web/issues/11138#issuecomment-541815687
Version information