baedert / corebird

Native Gtk+ Twitter Client
https://corebird.baedert.org
GNU General Public License v3.0
791 stars 78 forks source link

version 1.7.2 crashes while composing new tweet #784

Closed zhou0 closed 6 years ago

zhou0 commented 6 years ago

OS: FreeBSD 12 Debug output: Segmentation fault

baedert commented 6 years ago

When you do what, exactly? If I simply click on the compose button, it does not crash.

zhou0 commented 6 years ago

to be exact , it crashes while replying a tweet with input method ( fcitx ) enabled . after you select a candidate word from fcitx, corebird crashes immediately.

baedert commented 6 years ago

I don't know what that is or how or why to use it. Can you install debugging symbols for corebird and gtk, then run it in gdb and make it crash? Then use bt in gdb and post the output?

zhou0 commented 6 years ago

(corebird:6580): corebird-DEBUG: MainWindow.vala:60: Focus widget now: GtkButton 0x810a3c340 [LWP 100307 of process 6580 exited] [LWP 100329 of process 6580 exited]

Thread 1 received signal SIGSEGV, Segmentation fault. 0x000000080259a9c4 in gtk_text_view_get_buffer () from /usr/local/lib/libgtk-3.so.0

0 0x000000080259a9c4 in gtk_text_view_get_buffer ()

from /usr/local/lib/libgtk-3.so.0

1 0x000000000045b1cc in completion_text_view_buffer_changed_cb (

self=<optimized out>) at widgets/CompletionTextView.c:953

2 _completion_text_view_buffer_changed_cb_gtk_text_buffer_changed (

_sender=<optimized out>, self=<optimized out>)
at widgets/CompletionTextView.c:1900

3 0x000000080419acf0 in g_closure_invoke ()

from /usr/local/lib/libgobject-2.0.so.0

4 0x00000008041af4d7 in ?? () from /usr/local/lib/libgobject-2.0.so.0

5 0x00000008041b01c2 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0

6 0x00000008041b0554 in g_signal_emit ()

from /usr/local/lib/libgobject-2.0.so.0

7 0x0000000802577882 in ?? () from /usr/local/lib/libgtk-3.so.0

8 0x000000080419acf0 in g_closure_invoke ()

from /usr/local/lib/libgobject-2.0.so.0

9 0x00000008041af23a in ?? () from /usr/local/lib/libgobject-2.0.so.0

10 0x00000008041b01c2 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0

11 0x00000008041b0554 in g_signal_emit ()

from /usr/local/lib/libgobject-2.0.so.0

12 0x0000000802571225 in gtk_text_buffer_insert_interactive ()

from /usr/local/lib/libgtk-3.so.0

13 0x0000000802571416 in gtk_text_buffer_insert_interactive_at_cursor ()

from /usr/local/lib/libgtk-3.so.0

14 0x00000008025a6620 in ?? () from /usr/local/lib/libgtk-3.so.0

15 0x000000080419dabc in g_cclosure_marshal_VOID__STRINGv ()

from /usr/local/lib/libgobject-2.0.so.0

16 0x000000080419aee8 in ?? () from /usr/local/lib/libgobject-2.0.so.0

17 0x00000008041afc74 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0

18 0x00000008041b0652 in g_signal_emit_by_name ()

from /usr/local/lib/libgobject-2.0.so.0

19 0x000000080419dabc in g_cclosure_marshal_VOID__STRINGv ()

from /usr/local/lib/libgobject-2.0.so.0

20 0x000000080419aee8 in ?? () from /usr/local/lib/libgobject-2.0.so.0

21 0x00000008041afc74 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0

22 0x00000008041b0554 in g_signal_emit ()

from /usr/local/lib/libgobject-2.0.so.0

23 0x000000080419dabc in g_cclosure_marshal_VOID__STRINGv ()

from /usr/local/lib/libgobject-2.0.so.0

24 0x000000080419aee8 in ?? () from /usr/local/lib/libgobject-2.0.so.0

25 0x00000008041afc74 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0

26 0x00000008041b0652 in g_signal_emit_by_name ()

from /usr/local/lib/libgobject-2.0.so.0

27 0x0000000802483212 in ?? () from /usr/local/lib/libgtk-3.so.0

28 0x0000000802482f19 in ?? () from /usr/local/lib/libgtk-3.so.0

29 0x00000008025a10ae in ?? () from /usr/local/lib/libgtk-3.so.0

30 0x00000008024a6b54 in _gtk_marshal_BOOLEAN__BOXED ()

from /usr/local/lib/libgtk-3.so.0

31 0x000000080419ad29 in g_closure_invoke ()

from /usr/local/lib/libgobject-2.0.so.0

32 0x00000008041af23a in ?? () from /usr/local/lib/libgobject-2.0.so.0

33 0x00000008041b0220 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0

34 0x00000008041b0554 in g_signal_emit ()

from /usr/local/lib/libgobject-2.0.so.0

35 0x000000080260574b in ?? () from /usr/local/lib/libgtk-3.so.0

36 0x000000080261e6e4 in gtk_window_propagate_key_event ()

from /usr/local/lib/libgtk-3.so.0

37 0x0000000802624141 in ?? () from /usr/local/lib/libgtk-3.so.0

38 0x00000008024a6c5c in _gtk_marshal_BOOLEAN__BOXEDv ()

from /usr/local/lib/libgtk-3.so.0

39 0x000000080419aee8 in ?? () from /usr/local/lib/libgobject-2.0.so.0

40 0x00000008041afc74 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0

38 0x00000008024a6c5c in _gtk_marshal_BOOLEAN__BOXEDv ()

from /usr/local/lib/libgtk-3.so.0

39 0x000000080419aee8 in ?? () from /usr/local/lib/libgobject-2.0.so.0

40 0x00000008041afc74 in g_signal_emit_valist ()

from /usr/local/lib/libgobject-2.0.so.0 ---Type to continue, or q to quit---

41 0x00000008041b0554 in g_signal_emit ()

from /usr/local/lib/libgobject-2.0.so.0

42 0x000000080260574b in ?? () from /usr/local/lib/libgtk-3.so.0

43 0x00000008024a56d4 in ?? () from /usr/local/lib/libgtk-3.so.0

44 0x00000008024a4b35 in gtk_main_do_event ()

from /usr/local/lib/libgtk-3.so.0

45 0x0000000802b79631 in _gdk_event_emit () from /usr/local/lib/libgdk-3.so.0

46 0x0000000802baf487 in ?? () from /usr/local/lib/libgdk-3.so.0

47 0x000000080442456b in g_main_context_dispatch ()

from /usr/local/lib/libglib-2.0.so.0

48 0x000000080442489e in ?? () from /usr/local/lib/libglib-2.0.so.0

49 0x0000000804424924 in g_main_context_iteration ()

from /usr/local/lib/libglib-2.0.so.0

50 0x0000000803ead4ed in g_application_run ()

from /usr/local/lib/libgio-2.0.so.0

51 0x0000000000417601 in _vala_main (args=0x20, args_length1=48) at main.c:59

52 0x000000000041748f in _start ()

r3pek commented 6 years ago

I have the exact same problem but with normal input. To reproduce de problem I just need to type "ã ", and it will crash after one second or less.

baedert commented 6 years ago

Whats the stacktrace? What does gtk-query-settings im-module print?

r3pek commented 6 years ago

gtk-im-module: "gtk-im-context-simple"

Thread 1 "corebird" received signal SIGSEGV, Segmentation fault.
0x00007fffe117abd6 in hspell_check_word () from /usr/lib/libhspell.so.0
(gdb) bt
#0  0x00007fffe117abd6 in hspell_check_word () at /usr/lib/libhspell.so.0
#1  0x00007fffe1382c86 in  () at /usr/lib/enchant/enchant_hspell.so
#2  0x00007ffff517a14c in gspell_checker_check_word () at /usr/lib/libgspell-1.so.1
#3  0x00007ffff5177305 in  () at /usr/lib/libgspell-1.so.1
#4  0x00007ffff5177977 in  () at /usr/lib/libgspell-1.so.1
#5  0x00007ffff5177aa9 in  () at /usr/lib/libgspell-1.so.1
#6  0x00007ffff7b22cb3 in  () at /usr/lib/libglib-2.0.so.0
#7  0x00007ffff7b240be in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#8  0x00007ffff7b25f69 in  () at /usr/lib/libglib-2.0.so.0
#9  0x00007ffff7b25fae in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#10 0x00007ffff618c5ae in g_application_run () at /usr/lib/libgio-2.0.so.0
#11 0x000055555556ac88 in  ()
#12 0x00007ffff4dd4f6a in __libc_start_main () at /usr/lib/libc.so.6
#13 0x000055555556ab4a in  ()

Stack trace without debug symbols. I'll get you one with them if needed. Not sure if it's the same problem as the OP 'cause the stack trace is way different.

wolftankk commented 6 years ago

It crashes when you type CJK texts. Maybe counting text .

r3pek commented 6 years ago

It crashes when you type CJK texts.

CJK?

baedert commented 6 years ago

@r3pek Yeah, that seems more spellchecking related. a stacktrace with debugging symbols would still be better, but it looks like you'd need them in gspell too. And at that point the language gspell uses, the version as well as the spellchecker it uses might be interesting. hspell is the hebrew spell checker; is your desktop set to hebrew?

r3pek commented 6 years ago

@baedert not even close

$ localectl 
   System Locale: LANG=en_GB.UTF-8
       VC Keymap: pt-latin9
      X11 Layout: pt

Also, I have no other crashes anywhere in the system... :-/

baedert commented 6 years ago

@r3pek Do you also have two enchant versions installed (like in #799)?

r3pek commented 6 years ago

Nah.... only one AFAIK

$ enchant-lsmod -list-dicts 
pt_PT (hunspell)
he (hspell)
pt_BR (aspell)
$ pacman -Qs hunspell | grep -v "^ "
local/hunspell 1.6.2-1
local/hunspell-pt_pt 20170814-1
local/hunspell-pt_pt-preao 20170814-1
$ pacman-Qs enchant
local/enchant 2.1.2-2
baedert commented 6 years ago

aah it selects the he dict for some reason. I can force this by uninstalling all my installed aspell-* packages and only leaving the he dict installed. I opened https://github.com/AbiWord/enchant/issues/170 for that.

r3pek commented 6 years ago

Nice finding! :)

baedert commented 6 years ago

I can't reproduce the original issue here, and using fcitx is kinda an edge case anyway so unless someone else turns up and fixes it, nothing is going to happen. I'm just going to close it for now. Reopen if you want to fix it.