talk-android icon indicating copy to clipboard operation
talk-android copied to clipboard

Android app crashes as soon as I try to open any chat

Open Ximerixx opened this issue 8 months ago • 11 comments

Steps to reproduce

  1. Open app and give all permissions + no optimizing battery
  2. Open any chat in-app

Expected behaviour

Well, opening chat and working I guess

Actual behaviour

It goes back to the main screen in app where's all chats are If I have a call that's going to me and I try to open whatever chat, app crashes whole and phone goes to home screen

I'd I'll join the call via notification (like someone is calling me) works good, nothing strange

Device brand and model

Xiaomi Redmi note 10Pro

Android version

13 custom clean aosp + play services

Nextcloud Talk app version

21.0.0

Nextcloud server version

30

Talk version

No response

Custom Signaling server configured

None

Custom TURN server configured

Yes

Custom STUN server configured

Yes

Android logs

Meta information

Generation of system report

Apr 6, 2025 22:12:24

Phone

Device

Xiaomi M2101K6G

Android version

33

Google Play services

Google Play services are available

App

App name

Nextcloud Talk

App version

v21.0.0

Build flavor

gplay

Battery settings

Battery optimization is ignored, all fine

Notification permissions

Notifications are granted

Calls notification channel enabled?

Yes

Messages notification channel enabled?

Yes

Firebase push token

ddVgj...

Latest firebase push token generation

Apr 6, 2025 21:52:50

Latest firebase push token fetch

Apr 6, 2025 22:06:14

Registered users

1

Current account

Server

...

User

...

User status enabled?

Yes

Server notification app installed?

Yes

Latest push registration at server

Apr 6, 2025 22:06:14

Latest push registration at push proxy

Apr 6, 2025 22:06:14

Server version

30.0.8

Server Talk version

20.1.5

Signaling Mode

External

Server log


Additional information

I did update server to 30 in the last five days but I wasn't using spreed app for a while month and I don't really know did that behavior caused by server update. And I can't really roll back, my back is very old :(

Ximerixx avatar Apr 06 '25 19:04 Ximerixx

Add me as a collborator i'll work on this issue

deepgr8 avatar Apr 09 '25 12:04 deepgr8

Upd. It seems to freak out and crash whenever there's a file, or preview of it in chat Otherwise it looks okay. When you take a voice message it somehow views as a map for some reason, but on the other android phone everything is doing okay

Ximerixx avatar Apr 09 '25 17:04 Ximerixx

may be there is issue like NullPointerException (common when something’s not loaded yet) , Improper MIME type handling , Missing permissions (like READ_EXTERNAL_STORAGE), Glide/Picasso/FileProvider misconfigurations while showing the preview

deepgr8 avatar Apr 09 '25 17:04 deepgr8

Well... I did reinstall the applike 15 times... I gave every permission too Will try to give READ_EXTERNAL_STORAGE via adb, cuz there's no entry for this In gui Also I don't really know how to get the hang of the logs to really know wtf is going on

Ximerixx avatar Apr 10 '25 09:04 Ximerixx

have you checked the logcat what error is showing

deepgr8 avatar Apr 10 '25 11:04 deepgr8

HI @Ximerixx could you create a test account on your server and share the credentials and domain to marcel dot hibbe at nextcloud dot com so i can have a closer look whats going wrong (please also add a link to this ticket)?

mahibi avatar Apr 10 '25 13:04 mahibi

Thanks! I already sent an email to you.

Ximerixx avatar Apr 10 '25 16:04 Ximerixx

Thanks! I already sent an email to you.

Thanks @Ximerixx

Note to myself/ interim status: Does not happen on my device (motorola). On Ximerix' device, MessageViewHolders seem to fail assignment to message types. Have to take a closer look when i find time.. Got screenvideo/screenshot provided by Ximerix on my motorola device.

Todo: check mail from 11.4.2025 - 13:39 (logfile)

Also (unrelated) findings when i tested the instance:

  • two "Note to self" conversations
  • in search results, can't create 1:1 conv (nothing happens)
  • sometimes, no floating icon for contact screen was shown in the lower right corner

mahibi avatar Apr 11 '25 11:04 mahibi

Same issue with Talk App on Android 13 (Samsung Note 20 Ultra), reinstalled App several times (with all permissions). When you start the app, it crashed directly (sorry just get the error message in German (from Google Store, last App Update from 24.02.2025 App Version 21.0.0):

Fehler bei Talk aufgetreten
Talk geschlossen, da diese App einen Fehler enthält.
Versuche, diese App zu aktualisieren, nachdem dessen Entwickler eine Fehlerbehebung bereitgestellt hat.

The App works fine on Android 14 (Samsung Ultra 23) as well fine with LineAgeOS 22.1 (Android 15 on a Samsung 10edge).

Update: meanwhile we identified, that version 21.0.0 should have an issue when you do a fresh install. We re-installed the app an an Android 14 phone and we could copy the crash issue. Then we changed the Battery optimization to off, and the app was starting again. We will do several further tests now.

Final Update: after serveral tests, additional to the battery optimization, on Android 13 phones, we had to clear the cache and the data! Then we could start the Talk App again, and need to re-login to the nextcloud server. It works well now.

MrEnergy64 avatar Apr 13 '25 12:04 MrEnergy64

Issue still persists. got that error a couple of time on my instance: Exception HMAC does not match.

{
  "reqId": "QbLWyOdjTOayEivSW1Rs",
  "level": 3,
  "time": "2025-04-29T12:46:52+00:00",
  "remoteAddr": "188.162.177.57",
  "user": "--",
  "app": "no app in context",
  "method": "GET",
  "url": "/ocs/v2.php/apps/spreed/api/v1/chat/i4b893pg?lastCommonReadId=3912&lastKnownMessageId=3912&includeLastKnown=0&limit=100&setReadMarker=1&timeout=30&lookIntoFuture=1",
  "message": "Could not decrypt or decode encrypted session data",
  "userAgent": "Mozilla/5.0 (Android) Nextcloud-Talk v21.0.0",
  "version": "30.0.9.2",
  "exception": {
    "Exception": "Exception",
    "Message": "HMAC does not match.",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/Security/Crypto.php",
        "line": 98,
        "function": "decryptWithoutSecret",
        "class": "OC\\Security\\Crypto",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Session/CryptoSessionData.php",
        "line": 70,
        "function": "decrypt",
        "class": "OC\\Security\\Crypto",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Session/CryptoSessionData.php",
        "line": 47,
        "function": "initializeSession",
        "class": "OC\\Session\\CryptoSessionData",
        "type": "->",
        "args": []
      },
      {
        "file": "/var/www/html/lib/private/Session/CryptoWrapper.php",
        "line": 94,
        "function": "__construct",
        "class": "OC\\Session\\CryptoSessionData",
        "type": "->",
        "args": [
          {
            "__class__": "OC\\Session\\Internal"
          },
          {
            "__class__": "OC\\Security\\Crypto"
          },
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 407,
        "function": "wrapSession",
        "class": "OC\\Session\\CryptoWrapper",
        "type": "->",
        "args": [
          {
            "__class__": "OC\\Session\\Internal"
          }
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 672,
        "function": "initSession",
        "class": "OC",
        "type": "::",
        "args": []
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1141,
        "function": "init",
        "class": "OC",
        "type": "::",
        "args": []
      },
      {
        "file": "/var/www/html/ocs/v1.php",
        "line": 8,
        "args": [
          "/var/www/html/lib/base.php"
        ],
        "function": "require_once"
      },
      {
        "file": "/var/www/html/ocs/v2.php",
        "line": 7,
        "args": [
          "/var/www/html/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/lib/private/Security/Crypto.php",
    "Line": 162,
    "message": "Could not decrypt or decode encrypted session data",
    "exception": [],
    "CustomMessage": "Could not decrypt or decode encrypted session data"
  },
  "id": "68120ec0492a3"
}

Ximerixx avatar Apr 30 '25 11:04 Ximerixx

i've resetted a lot of user tokens after investigating, thing with android client stil persists and that error maaaaaybe assosiated with that

Ximerixx avatar Apr 30 '25 11:04 Ximerixx