mollyim / mollyim-android

Enhanced and security-focused fork of Signal.
GNU Affero General Public License v3.0
1.58k stars 86 forks source link

Molly secondary device seems to lose connection after a while #259

Closed AtiusAmy closed 8 months ago

AtiusAmy commented 8 months ago

Is there an existing issue for this?

Bug description

I linked Molly as a secondary device and it works well however, after a while (and many messages sent from the primary device) it seems to stop getting new messages and the sync stop at a certain point. Oh and for some reason, if you chat on the secondary device the same bug will happen on the primary device (Which is just the default Signal). This might be related to the Signal linking changes in server but I am not sure.

Unlinking and Re-linking seems to fix the issue temporarily.

EDIT: It seens to not lose connection when I have long conversation on the Desktoo but loses connection when I do on my main phone

Steps to reproduce

  1. Link Device as a secondary device,
  2. Have long conversation with someone on a primary device
  3. Second device messages sync stop at a certain point

Molly version

v6.41.3-2-FOSS

Android version

Android 13

Device

Xiaomi Mi Pad 5

Link to debug log

https://debuglogs.org/android/6.41.3/f6771bccf303e14d9a46b9e4ae80a42f8a4f2e2c07532a1f3eae0b50b4fd4e0b

AtiusAmy commented 8 months ago

Also happens on Redmi Note 7 Android 11 too

Here is the debug log https://debuglogs.org/android/6.41.3/9d21c8f3ec6315089f9866826e66feef080212cf6d9bf22a55e1d35ed5cbbfd9

ghost commented 8 months ago

Happens also on Samsung devices, my friend and myself have also this issue.

taivlam commented 8 months ago

I experienced this issue 1 week ago. The issue came back the very next day, but since 6 days ago this issue hasn't occurred again.

Below are debug logs: my main Molly device is the Pixel 5a (barbet) and my secondary Molly device is the Pixel Tablet (tangorpro), both running the latest version of GrapheneOS/Android 14 at the time of this issue.

Before removing secondary device to fix issue

AtiusAmy commented 8 months ago

I experienced this issue 1 week ago. The issue came back the very next day, but since 6 days ago this issue hasn't occurred again.

Below are debug logs: my main Molly device is the Pixel 5a (barbet) and my secondary Molly device is the Pixel Tablet (tangorpro).

Before removing secondary device to fix issue

Same! The last 6 days has been pretty amooth for me too

valldrac commented 8 months ago

Can you try updating to the version 6.44.2-1, please? This bug should be fixed now.

ghost commented 8 months ago

Yes, I will, I will report back when the issue appears still again

AtiusAmy commented 8 months ago

Can you try updating to the version 6.44.2-1, please? This bug should be fixed now.

I still have the issue

https://debuglogs.org/android/6.44.3/c499bf837734ac858b3eeadd5460c890d3bf7c15394f6921f6fbcab36a4f7f44

valldrac commented 8 months ago

I'm working on a new beta release v6.45.2-1 with the fix. It should be ready to download in about an hour. Can you please try it and let me know how it goes?

taivlam commented 8 months ago

1) (I'm aware the fix is being work on right now, though @valldrac beat me before I could comment.)

This issue occured started 5 days ago again. I had to relink my secondary Molly device yesterday.

Before relinking

2) I would be willing to test beta release v6.45.2-1. For this purpose, will Molly Insider work in parallel on the same Android user profile as my main Molly client?

valldrac commented 8 months ago

@taivlam We don't roll out beta versions in Molly Insider anymore. Betas are just another version of Molly now, but released gradually. To switch to a beta version, enable the option in Settings > Help, or do it through your f-droid client, or download the APK directly from GitHub Releases.

taivlam commented 8 months ago

@valldrac Will this work if you've downloaded Molly through Accrescent?

(I don't see any options relating to the beta version.)

valldrac commented 8 months ago

Will this work if you've downloaded Molly through Accrescent?

Yes, you can install the beta from GitHub, but just keep in mind that Accrescent will stop updating the app automatically. If you want to resume updates later, you'll have to install it manually at least once through the Accrescent app.

(I don't see any options relating to the beta version.)

Because Accrescent doesn't support beta versions yet.

AtiusAmy commented 8 months ago

I'm working on a new beta release v6.45.2-1 with the fix. It should be ready to download in about an hour. Can you please try it and let me know how it goes?

It seem to works again and my tablet works without even needing to relink :D

taivlam commented 7 months ago

3 days ago I downloaded v6.45.2-1. (I simply enabled the Molly repo in Droid-ify and updated the beta version over the version I downloaded through Accrescent; though I'll update Molly via Accrescent for future Molly production updates.)

The link to my secondary Molly device seems to be alright for now. I'll make another comment here if the issue ever occurs again (but hopefully not).

nospace-here commented 5 months ago

One can easily trigger the desync by editing messages, especially when the client done temporarily loses internet connection

Molly 7.1.3-1