-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Firefox loses session without explicit logout #2726
Comments
(The session had been in daily use for a good week or two prior.) |
It's not the first time we have had reports for this; they seem to affect Firefox more than Chrome. vext01 reports that this does not happen every time he restarts the browser, and is generally not repeatable. This makes it unlikely that it's an issue with privacy settings in his browser, or an extension clearing the storage. @vext01: was this a new riot tab, or had an existing tab logged itself out overnight? Assuming the former, some other possibilities:
Either way, if anyone sees this again, browser console logs would be very helpful. |
vext01 reports that this was a new riot tab. From the server logs, I see a request to set the user's presence, followed by three (!) typing notifications, followed by the start of the guest registration flow. All of the observed requests gave 200s. This is very odd, because the only code which sends typing notifications is the MessageComposer, which shouldn't even exist until /sync completes - and we do not see a /sync request at all. Nevertheless the fact that the client is using an existing access token confirms that the accesstoken was not vaped from the localstore. |
Utterly bamboozled as to how the client can give the behaviour observed. Please try to get a console log if you see it again! |
OK, will do. By console log, you mean? The browser's javascript console? or? |
I have more info. I usually upgrade my OpenBSD snapshot every Saturday, which includes upgrading all of the third party packages. Is it possible that upgrading to a newer firefox could affect local storage? On a related note today I have the following screen: But let me stress, that this is a somewhat exceptional circumstance. I installed a new SSD and:
I copied with
So the error you see in the screenshot may have been caused by either:
I can't say which. Can you give me an idea what the If the copy caused this, then that's my own fault of course. Do you see anything in the server log? This was about 10am(ish) this morning. |
The OpenBSD firefox package was updated 10 days ago, from 50.0.1 to 50.0.2. Since I update once a week, and since there is a day or two lag before packages become available, it is entirely possible that I did get a new firefox when I installed the OS afresh. |
Yup, the javascript console.
…On 10 December 2016 21:32:04 GMT+00:00, Edd Barrett ***@***.***> wrote:
OK, will do.
By console log, you mean? The browser's javascript console? or?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#2726 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
There is a stack trace. Is any of this sensitive? |
Yeah, it is (obviously) an error you aren't meant to see. Specifically, it happens when trying to restore the cryptography keys for your device, and means that it couldn't find a function that was meant to exist. The crypto code lives in a separate file called |
Well, the console log will contain room ids/aliases, as well as userids of other members of those rooms: you may not want everybody to know who you hang out with and where. Also while encryption is in development, we currently log some event keys to the console. A stacktrace should be fine, but if you're in any doubt, PM me. |
I've PM'd you traces. |
vext01's traces include the following:
In other words, we get an exception when we try to allocate the fixed heap area for the Olm enscripten code; this will indeed dump you out to a login screen. I think there are two things we can do here:
|
Also, when I woke my laptop up from suspend (so a different machine altogether, which had not had the re-install treatment) it too had kicked me off and was showing the same screen as above. So the whole reinstall/cp thing is a red herring. |
@richvdh let me know when the fix is live and I can test it for you. |
16M is somewhat excessive: configure olm to use a bit less. Requires changes to the olm library to do anything useful, but will be harmless without them. Partial fix to #2726.
https://riot.im/develop should now be better:
|
Thanks richard! Thats great.
…On 15 Dec 2016 17:22, "Richard van der Hoff" ***@***.***> wrote:
https://riot.im/develop should now be better:
- We no longer log you out if we can't initialise Olm, instead falling
back to disabling encryption support: http://matrix.org/git/olm/
commit/?id=1bf807bf33b2a407e4d8a3f9785b522b5d384913
<http://matrix.org/git/olm/commit/?id=1bf807bf33b2a407e4d8a3f9785b522b5d384913>
- We only allocate 256K for Olm, instead of 16M: #274
<#274>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAk7G8pD3wms8Y5YXhBmRvd-bazUtrMwks5rIXdCgaJpZM4LIxxG>
.
|
This is now live on https://riot.im/app. |
16M is somewhat excessive: configure olm to use a bit less. Requires changes to the olm library to do anything useful, but will be harmless without them. Partial fix to element-hq#2726.
Hi,
I cam to my computer today and found that my riot.im session had "expired", along with my encryption keys. I'm using firefox-50.0.2 on OpenBSD.
As I understand it, my session and keys should persist unless I explicitly log out.
As a side issue. Shouldn't it be possible (without a great deal of effort on the user's part) to log out, but keep your encryption keys?
Related:
#2068
#2108
Thanks
The text was updated successfully, but these errors were encountered: