tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Telegram Randomly crashing when I'm using it (Linux Ubuntu 22.04.2 LTS)

Open luciano2777 opened this issue 3 years ago • 55 comments

Steps to reproduce

Just open Telegram

Expected behaviour

Telegram working properly indefinitely when I use it

Actual behaviour

Telegram just randomly crash when I'm using it

Operating system

Ubuntu 22.04.2 LTS

Version of Telegram Desktop

4.8.7

Installation source

Static binary from official website

Crash ID

[2023.07.23 15:38:41] RPC Error: request 144 got fail with code 400, error WEBFILE_NOT_AVAILABLE

Logs

#First crash
[2023.07.23 09:58:18] OpenGL: QOpenGLContext created, version: 4.4.
[2023.07.23 09:58:18] OpenGL: [TRUE] (Window)
[2023.07.23 09:58:19] RPC Error: request 67 got fail with code 400, error USER_NOT_PARTICIPANT
#Second Crash
[2023.07.23 15:23:53] OpenGL: QOpenGLContext created, version: 4.4.
[2023.07.23 15:23:53] OpenGL: [TRUE] (Window)
[2023.07.23 15:23:54] API Warning: not loaded minimal channel applied.
[2023.07.23 15:23:54] API Warning: not loaded minimal channel applied.
[2023.07.23 15:23:54] RPC Error: request 75 got fail with code 400, error USER_NOT_PARTICIPANT
[2023.07.23 15:23:54] API Warning: not loaded minimal channel applied.
[2023.07.23 15:24:15] Skipping message, because it is already in blocks!
[2023.07.23 15:24:49] API Warning: not loaded minimal channel applied.
[2023.07.23 15:25:01] Skipping message, because it is already in blocks!
[2023.07.23 15:25:24] Skipping message, because it is already in blocks!
[2023.07.23 15:25:27] Skipping message, because it is already in blocks!
[2023.07.23 15:25:34] RPC Error: request 251 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.07.23 15:25:34] RPC Error: request 252 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.07.23 15:25:49] Skipping message, because it is already in blocks!
Third Crash
[2023.07.23 15:27:06] OpenGL: QOpenGLContext created, version: 4.4.
[2023.07.23 15:27:06] OpenGL: [TRUE] (Window)
[2023.07.23 15:27:07] Message Info: bad message notification received (error_code 33) for msg_id = 7259097859485630204, seq_no = 66
[2023.07.23 15:27:07] Message Info: bad message notification received, msgId 7259097859485630204, error_code 33
[2023.07.23 15:27:07] API Warning: not loaded minimal channel applied.
[2023.07.23 15:27:07] API Warning: not loaded minimal channel applied.
[2023.07.23 15:27:07] RPC Error: request 74 got fail with code 400, error USER_NOT_PARTICIPANT
[2023.07.23 15:27:09] Message Info: bad message notification received (error_code 33) for msg_id = 7259097868270188072, seq_no = 8
[2023.07.23 15:27:09] Message Info: bad message notification received, msgId 7259097868270188072, error_code 33
[2023.07.23 15:27:09] Message Info: bad message notification received (error_code 33) for msg_id = 7259097868616647608, seq_no = 10
[2023.07.23 15:27:09] Message Info: bad message notification received, msgId 7259097868616647608, error_code 33
[2023.07.23 15:27:09] MTP Info: -404 error received in 160002 with temporary key, assuming it was destroyed.
[2023.07.23 15:27:10] RPC Error: request 139 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.07.23 15:27:10] RPC Error: request 140 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2023.07.23 15:27:25] Skipping message, because it is already in blocks!
[2023.07.23 15:27:47] API Warning: not loaded minimal channel applied.
[2023.07.23 15:28:39] Message Info: bad message notification received (error_code 33) for msg_id = 7259098254877742704, seq_no = 352
[2023.07.23 15:28:39] Message Info: bad message notification received, msgId 7259098254877742704, error_code 33

#Latest Crash (I activated beta versions for it)
[2023.07.23 15:41:55] OpenGL: QOpenGLContext created, version: 4.4.
[2023.07.23 15:41:55] OpenGL: [TRUE] (Window)
[2023.07.23 15:41:56] API Warning: not loaded minimal channel applied.
[2023.07.23 15:41:56] API Warning: not loaded minimal channel applied.
[2023.07.23 15:41:57] RPC Error: request 70 got fail with code 400, error USER_NOT_PARTICIPANT

luciano2777 avatar Jul 23 '23 19:07 luciano2777

same happening here

tprei avatar Jul 23 '23 20:07 tprei

Crash ID

[2023.07.23 15:38:41] RPC Error: request 144 got fail with code 400, error WEBFILE_NOT_AVAILABLE

This is not a crash ID. Please re-read the issue template carefully, it has explanation on how to get crash ID.

ilya-fedin avatar Jul 23 '23 20:07 ilya-fedin

Crash ID

[2023.07.23 15:38:41] RPC Error: request 144 got fail with code 400, error WEBFILE_NOT_AVAILABLE

This is not a crash ID. Please re-read the issue template carefully, it has explanation on how to get crash ID.

I have enabled the Beta installation in settings, however I don't see the crash reporter anywhere, where is it?

luciano2777 avatar Jul 23 '23 22:07 luciano2777

It appears on the next launch after the crash

ilya-fedin avatar Jul 23 '23 22:07 ilya-fedin

If it doesn't appear then try to launch Telegram from terminal to check whether it really crashes. If it's a crash then you should see a segmentation fault or abort.

ilya-fedin avatar Jul 23 '23 22:07 ilya-fedin

If it doesn't appear then try to launch Telegram from terminal to check whether it really crashes. If it's a crash then you should see a segmentation fault or abort.

I have run it through the Terminal,and still it doesn't show anything like that

luciano2777 avatar Jul 23 '23 22:07 luciano2777

Apparently it's not a crash? Can you provide the terminal output?

ilya-fedin avatar Jul 23 '23 22:07 ilya-fedin

Apparently it's not a crash? Can you provide the terminal output?

Yes sure

$ /home/luciano/Desktop/Telegram/Telegram QPainter::begin: Paint device returned engine == 0, type: 2 QWidget::render: Cannot render with an inactive painter qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment

(Telegram:4970): Gtk-WARNING **: 18:18:07.236: Theme parsing error: :1:0: Expected a valid selector

luciano2777 avatar Jul 23 '23 22:07 luciano2777

And that's all? Do you have shell prompt after these lines?

ilya-fedin avatar Jul 23 '23 22:07 ilya-fedin

And that's all? Do you have shell prompt after these lines?

Hmmmm no, That is everything I write for running Telegram from the terminal image

luciano2777 avatar Jul 23 '23 22:07 luciano2777

is this output after the bug happens? If it is, this means Telegram is still running. Apparently the window is just hidden.

ilya-fedin avatar Jul 23 '23 22:07 ilya-fedin

is this output after the bug happens? If it is, this means Telegram is still running. Apparently the window is just hidden.

No, that also appears also when Telegram Is run, rn is seemingly working, it hasn't yet crashed.

However I noticed that I got an RPC error in the logs when I launch it image

luciano2777 avatar Jul 23 '23 22:07 luciano2777

No, that also appears also when Telegram Is run, rn is seemingly working, it hasn't yet crashed.

I asked for the output after the bug happens. I obviously don't need the output when everything is ok.

ilya-fedin avatar Jul 23 '23 22:07 ilya-fedin

No, that also appears also when Telegram Is run, rn is seemingly working, it hasn't yet crashed.

I asked for the output after the bug happens. I obviously don't need the output when everything is ok.

Just got from errors that might be related to the Issue image

However I will update you with the output when the bug happens again

luciano2777 avatar Jul 23 '23 22:07 luciano2777

I don't see anything related. That's all regular Qt grunt.

ilya-fedin avatar Jul 23 '23 22:07 ilya-fedin

Same on Ubuntu 20.04.6 LTS

The wired things I noticed:

  1. start with gui icon, there is no unread messages count on the App icon. 图片

  2. Start from terminal, no significant error id, no crash yet, but have this, always six lines :

qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
  1. new error with terminal start today:
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
(Telegram:87535): Gtk-WARNING **: 07:03:56.286: Theme parsing error: <data>:1:0: Expected a valid selector
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment

History-exe avatar Jul 23 '23 23:07 History-exe

I have the same problem on Linux Mint 20.3 with Cinnamon. Telegram 4.8.7 Crashed already 3 times in 10 minutes

thlkmoeller avatar Jul 24 '23 06:07 thlkmoeller

Same problem Ubuntu 20.04.6 LTS, Telegram 4.8.7 Repeatedly crashes

mikhashev avatar Jul 24 '23 06:07 mikhashev

how to find this Crash ID? I might provide it, too. After the crash, yeah?

thlkmoeller avatar Jul 24 '23 06:07 thlkmoeller

After the crash with enabled beta in advanced settings, yes

ilya-fedin avatar Jul 24 '23 06:07 ilya-fedin