Skip to content

Crashing (threads unsafe)

Bug report

  • Platform: Android

  • OS version: 7.0 MIUI 11

  • Jami version: 20250522-01

  • Distribution channel : Google Play

  • Account-related devices: single

  • State of the app when the bug appears: foreground

  • Can you reproduce the bug: at will

Steps to reproduce (STR):

  1. Send, answer or scroll in the conversation history
  2. Crash appear just after sending, answering or scrolling, most of the time
  • Actual result: Crash as soon as a message is sent or a scroll in conversation in history is done, mostly :(( It has got too much worse with this latest version that it make Jami unuseable on Android 7.0.

  • Expected result: No crashing or freezing

Relevant logs, screenshots or video :

Also if in the log many such messages appear:

[1748702914.850|18928|conversation_module.cpp :451 ] [Account 93b1af607a2c15c4] [ConversationModule] unable to load syncing metadata: Unable to read file: /data/user/0/cx.ring/files/93b1af607a2c15c4/syncingMetadatas

what i consider to be the root of this issue is unsafe threads:

https://developer.android.com/guide/components/processes-and-threads https://developer.android.com/reference/java/lang/Thread

Because that is exactly the symptoms that they writed and also because i didn't saw any threads safe handling in your code, so that mean that by default all threads are under the main UI thread.

https://git.jami.net/savoirfairelinux/jami-client-android/-/blob/master/jami-android/app/src/main/java/cx/ring/application/JamiApplication.kt

https://git.jami.net/savoirfairelinux/jami-client-android/-/blob/master/jami-android/app/src/main/java/cx/ring/views/MessageBubble.kt

https://git.jami.net/savoirfairelinux/jami-client-android/-/blob/master/jami-android/app/src/main/AndroidManifest.xml

Edited by Samuel