Sending a GIF with an attached caption in a secret chat causes the Telegram Android app to crash. After the initial crash, the application becomes permanently inaccessible because it crashes every time it is launched.
The issue occurs when selecting the option to add a caption to a GIF by long-pressing it and then sending the GIF in a secret chat.
Steps to reproduce
Start a secret chat.
Long-press a GIF and select the option to add a caption.
Send a message to the secret chat.
Send the previously selected GIF with the attached caption.
Observe that the application crashes.
Try to reopen Telegram. The application crashes again on startup every time.
Current result
The application crashes when sending a GIF with an attached caption in a secret chat. Afterward, Telegram crashes on every startup, making the application permanently inaccessible.
Expected result
The GIF with its caption should be sent successfully in the secret chat without causing the application to crash. The application should remain accessible after sending the GIF.
Any chance you can try to reproduce again in the store version (from telegram.org/android) and when you have the crash, update to the provided link to see if the issue is resolved?
java.io.File.exists(File.java:829)
org.telegram.messenger.SendMessagesHelper.performSendDelayedMessage(...)
org.telegram.messenger.SendMessagesHelper.didReceivedNotification(...)
org.telegram.messenger.NotificationCenter.postNotificationNameInternal(...)
org.telegram.messenger.NotificationCenter.postNotificationName(...)
org.telegram.messenger.ImageLoader$5.lambda$fileDidLoaded$5(...)
org.telegram.messenger.g5.run(...)
android.os.Handler.handleCallback(...)
android.os.Handler.dispatchMessage(...)
android.os.Looper.loopOnce(...)
android.os.Looper.loop(...)
am_anr: [0,8960,org.telegram.messenger.web,949730884,
Broadcast of Intent {
act=com.google.android.c2dm.intent.RECEIVE
cmp=org.telegram.messenger.web/com.google.firebase.iid.FirebaseInstanceIdReceiver
}]
It looks like the app is trying to send the captioned GIF to the secret chat when the app starts and crashing on File.exists() in 20 of the 24 traces