tg icon indicating copy to clipboard operation
tg copied to clipboard

BUG: 'dialog_list' -> Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944

Open gordio opened this issue 7 years ago • 19 comments

Telegram-cli: version 1.3.1 MacOS: version 10.13.2

> dialog_list
> Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944.
SIGNAL received
S0   telegram                            0x000000010e449e22 print_backtrace + 46
1   telegram                            0x000000010e449ebd termination_signal_handler + 109
2   libsystem_platform.dylib            0x00007fff6dafdf5a _sigtramp + 26
3   telegram                            0x000000010e60a2cb print_ds_type_bare_upload_file + 65565
4   libsystem_c.dylib                   0x00007fff6d928312 abort + 127
5   libsystem_c.dylib                   0x00007fff6d8f0368 basename_r + 0
6   telegram                            0x000000010e46f2da tglf_fetch_message_media_new + 1218
7   telegram                            0x000000010e475b8b replay_log_event + 7480
8   telegram                            0x000000010e4765c4 add_log_event + 165
9   telegram                            0x000000010e47705d bl_do_create_message_new + 584
10  telegram                            0x000000010e46fbd2 tglf_fetch_message_new + 265
11  telegram                            0x000000010e4709e5 tglf_fetch_alloc_message_new + 151
12  telegram                            0x000000010e46930f get_dialogs_on_answer + 456
13  telegram                            0x000000010e45f5ff tglq_query_result + 613
14  telegram                            0x000000010e45b782 rpc_execute + 1728
15  telegram                            0x000000010e47af6f conn_try_read + 689
16  libevent-2.1.6.dylib                0x000000011b74d9c2 event_process_active_single_queue + 1057
17  libevent-2.1.6.dylib                0x000000011b74acb3 event_base_loop + 1074
18  telegram                            0x000000010e44a457 net_loop + 162
19  telegram                            0x000000010e44c244 accept_incoming + 0
20  telegram                            0x000000010e44a250 main + 687
21  libdyld.dylib                       0x00007fff6d87c115 start + 1
22  ???                                 0x0000000000000001 0x0 + 1

gordio avatar Jan 22 '18 18:01 gordio

+1

amuhametov avatar Feb 08 '18 19:02 amuhametov

+1, the traceback:

> dialog_list
> Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944.
SIGNAL received
S0   telegram                            0x000000010dc8ce22 print_backtrace + 46
1   telegram                            0x000000010dc8cebd termination_signal_handler + 109
2   libsystem_platform.dylib            0x00007fff6f577f5a _sigtramp + 26
3   telegram                            0x000000010de4d2cb print_ds_type_bare_upload_file + 65565
4   libsystem_c.dylib                   0x00007fff6f3a2312 abort + 127
5   libsystem_c.dylib                   0x00007fff6f36a368 basename_r + 0
6   telegram                            0x000000010dcb22da tglf_fetch_message_media_new + 1218
7   telegram                            0x000000010dcb8b8b replay_log_event + 7480
8   telegram                            0x000000010dcb95c4 add_log_event + 165
9   telegram                            0x000000010dcba05d bl_do_create_message_new + 584
10  telegram                            0x000000010dcb2bd2 tglf_fetch_message_new + 265
11  telegram                            0x000000010dcb39e5 tglf_fetch_alloc_message_new + 151
12  telegram                            0x000000010dcac30f get_dialogs_on_answer + 456
13  telegram                            0x000000010dca25ff tglq_query_result + 613
14  telegram                            0x000000010dc9e782 rpc_execute + 1728
15  telegram                            0x000000010dcbdf6f conn_try_read + 689
16  libevent-2.1.6.dylib                0x000000011af91333 event_process_active_single_queue + 1003
17  libevent-2.1.6.dylib                0x000000011af8e695 event_base_loop + 1170
18  telegram                            0x000000010dc8d457 net_loop + 162
19  telegram                            0x000000010dc8f244 accept_incoming + 0
20  telegram                            0x000000010dc8d250 main + 687
21  libdyld.dylib                       0x00007fff6f2f6115 start + 1
22  ???                                 0x0000000000000001 0x0 + 1

oscarmlage avatar Jun 29 '18 08:06 oscarmlage

+1

OSX version: 10.14.1
Telegram CLI installed with Homebrew
Telegram-cli version 1.3.1
Telegram-cli uses libtgl version 2.0.1

Stracktrace:

> dialog_list
> Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944.
SIGNAL received
S0   telegram                            0x0000000105f8ad56 print_backtrace + 46
1   telegram                            0x0000000105f8adf1 termination_signal_handler + 109
2   libsystem_platform.dylib            0x00007fff70adfb3d _sigtramp + 29
3   telegram                            0x0000000113208545 tgl_state + 3485
4   libsystem_c.dylib                   0x00007fff7099e1c9 abort + 127
5   libsystem_c.dylib                   0x00007fff70966868 basename_r + 0
6   telegram                            0x0000000105faff23 tglf_fetch_message_media_encrypted_new + 0
7   telegram                            0x0000000105fb688d replay_log_event + 7938
8   telegram                            0x0000000105fb710f add_log_event + 165
9   telegram                            0x0000000105fb7bb8 bl_do_create_message_new + 584
10  telegram                            0x0000000105fb07c1 tglf_fetch_message_new + 265
11  telegram                            0x0000000105fb15e8 tglf_fetch_alloc_message_new + 143
12  telegram                            0x0000000105faa072 get_dialogs_on_answer + 456
13  telegram                            0x0000000105fa0388 tglq_query_result + 606
14  telegram                            0x0000000105f9c54f rpc_execute + 1697
15  telegram                            0x0000000105fbbad3 conn_try_read + 710
16  libevent-2.1.6.dylib                0x00000001132929c2 event_process_active_single_queue + 1057
17  libevent-2.1.6.dylib                0x000000011328fcb3 event_base_loop + 1074
18  telegram                            0x0000000105f8b38b net_loop + 162
19  telegram                            0x0000000105f8d161 accept_incoming + 0
20  telegram                            0x0000000105f8b184 main + 687
21  libdyld.dylib                       0x00007fff708f608d start + 1

jmarsman avatar Nov 14 '18 14:11 jmarsman

@jmarsman Have you this make: https://github.com/vysheng/tg/blob/master/README.md#mac-os-x

Paulchen232 avatar Nov 14 '18 15:11 Paulchen232

Same Problem here! +1

Telegram-cli version 1.3.1 Mac OS: ProductName: Mac OS X ProductVersion: 10.14.2 BuildVersion: 18C54

cutzenfriend avatar Dec 15 '18 09:12 cutzenfriend

+1

MacOS Mojave Telegram-cli version 1.3.1

> Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944.
SIGNAL received
S0   telegram                            0x000000010fb7ed56 print_backtrace + 46
1   telegram                            0x000000010fb7edf1 termination_signal_handler + 109
2   libsystem_platform.dylib            0x00007fff76425b3d _sigtramp + 29
3   ???                                 0x0000000000000158 0x0 + 344
4   libsystem_c.dylib                   0x00007fff762e31c9 abort + 127
5   libsystem_c.dylib                   0x00007fff762ab868 basename_r + 0
6   telegram                            0x000000010fba3f23 tglf_fetch_message_media_encrypted_new + 0
7   telegram                            0x000000010fbaa88d replay_log_event + 7938
8   telegram                            0x000000010fbab10f add_log_event + 165
9   telegram                            0x000000010fbabbb8 bl_do_create_message_new + 584
10  telegram                            0x000000010fba47c1 tglf_fetch_message_new + 265
11  telegram                            0x000000010fba55e8 tglf_fetch_alloc_message_new + 143
12  telegram                            0x000000010fb9e072 get_dialogs_on_answer + 456
13  telegram                            0x000000010fb94388 tglq_query_result + 606
14  telegram                            0x000000010fb9054f rpc_execute + 1697
15  telegram                            0x000000010fbafad3 conn_try_read + 710
16  libevent-2.1.6.dylib                0x000000011ce84901 event_process_active_single_queue + 1054
17  libevent-2.1.6.dylib                0x000000011ce81bbd event_base_loop + 1068
18  telegram                            0x000000010fb7f38b net_loop + 162
19  telegram                            0x000000010fb81161 accept_incoming + 0
20  telegram                            0x000000010fb7f184 main + 687
21  libdyld.dylib                       0x00007fff7623aed9 start + 1```

dgamanenko avatar Jan 05 '19 08:01 dgamanenko

+1 Go the same problem, Telegram-cli version 1.3.1, MacOS Mojave

> Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944.
SIGNAL received
S0   telegram                            0x000000010ac2bd56 print_backtrace + 46
1   telegram                            0x000000010ac2bdf1 termination_signal_handler + 109
2   libsystem_platform.dylib            0x00007fff5c5eab3d _sigtramp + 29
3   telegram                            0x0000000117ea9545 tgl_state + 3485
4   libsystem_c.dylib                   0x00007fff5c4a81c9 abort + 127
5   libsystem_c.dylib                   0x00007fff5c470868 basename_r + 0
6   telegram                            0x000000010ac50f23 tglf_fetch_message_media_encrypted_new + 0
7   telegram                            0x000000010ac5788d replay_log_event + 7938
8   telegram                            0x000000010ac5810f add_log_event + 165
9   telegram                            0x000000010ac58bb8 bl_do_create_message_new + 584
10  telegram                            0x000000010ac517c1 tglf_fetch_message_new + 265
11  telegram                            0x000000010ac525e8 tglf_fetch_alloc_message_new + 143
12  telegram                            0x000000010ac4d92b get_difference_on_answer + 326
13  telegram                            0x000000010ac41388 tglq_query_result + 606
14  telegram                            0x000000010ac3d54f rpc_execute + 1697
15  telegram                            0x000000010ac5cad3 conn_try_read + 710
16  libevent-2.1.6.dylib                0x0000000117f349c2 event_process_active_single_queue + 1057
17  libevent-2.1.6.dylib                0x0000000117f31cb3 event_base_loop + 1074
18  telegram                            0x000000010ac2c38b net_loop + 162
19  telegram                            0x000000010ac2e161 accept_incoming + 0
20  telegram                            0x000000010ac2c184 main + 687
21  libdyld.dylib                       0x00007fff5c3ffed9 start + 1

msahihi avatar Jan 08 '19 13:01 msahihi

+1 telegram-cli 1.3.1 Mojave same problem

vpokrityuk avatar Mar 25 '19 11:03 vpokrityuk

Same problem on Ubuntu Linux 18 telegram-cli 1.3.1

marioaugustorama avatar Oct 09 '19 12:10 marioaugustorama

I have no MacOS but try this:

  • open tgl/structures.c
  • go to line 944
  • comment with // the line assert (0); -> //assert (0);
  • do make

or In tgl @ ffb04ca is another structures.c perhaps it help.

Paulchen232 avatar Oct 10 '19 06:10 Paulchen232

Telegram-cli uses libtgl version 2.0.1 I: config dir=[/Users/diddy/.telegram-cli]

Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944. SIGNAL received S0 telegram 0x0000000108aabcfa print_backtrace + 46 1 telegram 0x0000000108aabd95 termination_signal_handler + 109 2 libsystem_platform.dylib 0x00007fff6e673b1d _sigtramp + 29 3 telegram 0x0000000115d3e53b tgl_state + 6771 4 libsystem_c.dylib 0x00007fff6e549a1c abort + 120 5 libsystem_c.dylib 0x00007fff6e548cd6 err + 0 6 telegram 0x0000000108c4d5f4 tglf_fetch_message_media_new.cold.2 + 0 7 telegram 0x0000000108acd1d5 tglf_fetch_message_media_new + 1175 8 telegram 0x0000000108ad362b replay_log_event + 7892 9 telegram 0x0000000108ad3a2d add_log_event + 164 10 telegram 0x0000000108ad42fd bl_do_create_message_new + 579 11 telegram 0x0000000108acda46 tglf_fetch_message_new + 285 12 telegram 0x0000000108ace6c3 tglf_fetch_alloc_message_new + 136 13 telegram 0x0000000108ac9d7c get_difference_on_answer + 337 14 telegram 0x0000000108abe2ff tglq_query_result + 610 15 telegram 0x0000000108abaca6 rpc_execute + 1702 16 telegram 0x0000000108ad7dda conn_try_read + 704 17 libevent-2.1.7.dylib 0x0000000115e034f1 event_process_active_single_queue + 1074 18 libevent-2.1.7.dylib 0x0000000115e00712 event_base_loop + 1012 19 telegram 0x0000000108aac2fa net_loop + 162 20 telegram 0x0000000108aad947 accept_incoming + 0 21 telegram 0x0000000108aac118 main + 677 22 libdyld.dylib 0x00007fff6e4722e5 start + 1 23 ??? 0x0000000000000001 0x0 + 1

wilfrantz avatar Nov 13 '19 15:11 wilfrantz

Are you anything do what I write?

Paulchen232 avatar Nov 14 '19 09:11 Paulchen232

Are you anything do what I write?

See the below screenshot to see what I have in line 944. I am going to start from scratch and see!

image

wilfrantz avatar Nov 14 '19 09:11 wilfrantz

have delete folder .telegram and it works again

mashrum avatar Jan 12 '20 21:01 mashrum

have delete folder .telegram and it works again

Great, that saved my day. Folder is named .telegram-cli, btw.

tomasi-o avatar Feb 19 '21 09:02 tomasi-o

@jmarsman Have you this make: https://github.com/vysheng/tg/blob/master/README.md#mac-os-x

brew info says that the necessary dependencies are installed, so that's not the issue:

user@MacBook-Pro bin % brew info telegram-cli
telegram-cli: stable 1.3.1 (bottled), HEAD
Command-line interface for Telegram
https://github.com/vysheng/tg
/usr/local/Cellar/telegram-cli/1.3.1_4 (8 files, 2.8MB) *
  Poured from bottle on 2021-02-19 at 09:51:14
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/telegram-cli.rb
License: GPL-2.0
==> Dependencies
Build: pkg-config ✔
Required: jansson ✔, libconfig ✔, libevent ✔, [email protected] ✔, readline ✔
==> Options
--HEAD

tomasi-o avatar Mar 15 '21 07:03 tomasi-o

Deleting the .telegram-cli Folder each time I start telegram from the cli is more than tedious. Is there a branch out where this is fixed?

tomasi-o avatar Apr 09 '21 10:04 tomasi-o

Please remove the "state file" in .telegram-cli each time when you get this message. Thanks :)

preygithub avatar Apr 11 '21 08:04 preygithub

up. same problem, but if use command "dialog_list XX", then XX > "360" number. But if XX < 350 all right showing.

kasumiru avatar Dec 22 '21 14:12 kasumiru