FS#24434 - [parcellite] crash when trigger history menu
Attached to Project:
Community Packages
Opened by Lyman Li (lyman) - Wednesday, 25 May 2011, 03:59 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 11 August 2011, 18:03 GMT
Opened by Lyman Li (lyman) - Wednesday, 25 May 2011, 03:59 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 11 August 2011, 18:03 GMT
|
Details
Description:
parcellite crashed when I use hotkey to trigger history menu Additional info: * package version(s) community/parcellite 1.0.1-1 [installed] Steps to reproduce: 1, start parcellite 2, press hotkey (mine is ctrl-alt-H) process 10940: arguments to dbus_message_iter_append_basic() were incorrect, assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file dbus-message.c line 2526. This is normally a bug in some application using the D-Bus library. D-Bus not built with -rdynamic so unable to print a backtrace Aborted |
This task depends upon
Closed by Sergej Pupykin (sergej)
Thursday, 11 August 2011, 18:03 GMT
Reason for closing: Fixed
Additional comments about closing: history_menu_crash_patch applied
Thursday, 11 August 2011, 18:03 GMT
Reason for closing: Fixed
Additional comments about closing: history_menu_crash_patch applied
~/.config/parcellite
~/.config/parcellite/parcelliterc
~/.local/share/parcellite
https://sourceforge.net/tracker/?group_id=235597&atid=1097277
(parcellite:2701): Gdk-WARNING **: Error converting selection from UTF8_STRING
(parcellite:2701): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
(parcellite:2701): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
(parcellite:2701): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
(parcellite:2701): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed
process 2701: arguments to dbus_message_iter_append_basic() were incorrect, assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file dbus-message.c line 2526.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
when pop up menu appears, parcellite will cut strings to fit the window (default 50 bytes), and it is using g_string_erase/g_string_truncate to operate the string, which is in byte, and will generated possible invalid utf-8 result.
I've already feedback my discover upstream.
So I paste the patch here. At least it solves my problem.