BUG: 'dialog_list' -> Assertion failed: (0), function tglf_fetch_message_media_new, file tgl/structures.c, line 944
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
+1
+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
+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 Have you this make: https://github.com/vysheng/tg/blob/master/README.md#mac-os-x
Same Problem here! +1
Telegram-cli version 1.3.1 Mac OS: ProductName: Mac OS X ProductVersion: 10.14.2 BuildVersion: 18C54
+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```
+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
+1 telegram-cli 1.3.1 Mojave same problem
Same problem on Ubuntu Linux 18 telegram-cli 1.3.1
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.
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
Are you anything do what I write?
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!

have delete folder .telegram and it works again
have delete folder .telegram and it works again
Great, that saved my day. Folder is named .telegram-cli, btw.
@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
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?
Please remove the "state file" in .telegram-cli each time when you get this message. Thanks :)
up. same problem, but if use command "dialog_list XX", then XX > "360" number. But if XX < 350 all right showing.