Warnings observed with Gtk2::Spell



Hi All,
In my application, I am using GtkTextView and GtkSpell. However, I am facing issues, when they are used in the following way, in my
application:

My application has a Left Screen[which has  a Gtk TreeView] and a
Right Screen, which has some widges. One of the widgets on the right screen is
the TextView. As I move across different selections in the TreeView, different display
functions are called to display the widgets on the right screen.

There are a couple of display functions, which use the TextView and I have attached the
Spell Checker to it.

for eg:
sub display_info1
{
  my $help_textview_1 = ...
  my $spell = Gtk2::Spell->new_attach($help_textview_1);
  my $help_text_buffer = $help_text_view_1->get_buffer();
  $help_text_buffer->signal_connect("changed", \&edit_changed);

 ..  .... Add other widgets here

}

sub display_info2
{
  my $help_textview_2 = ...
  my $spell = Gtk2::Spell->new_attach($help_textview_2);
  my $help_text_buffer = $help_text_view_2->get_buffer();
   $help_text_buffer->signal_connect("changed", \&edit_changed);

  .... Add other widgets here
}

Whenever, I move across the tree selections, which calls different display functions in turn,
 I am observing the following error:
gtkspell-ERROR **: file gtkspell.c: line 626 (gtkspell_new_attach): assertion failed: (spell == NULL)
aborting...
Aborted

And after the above error, my application crashes.

Sometimes, I observe the below error as well:
GLib-GObject-CRITICAL **: g_object_set_data: assertion `G_IS_OBJECT
(object)' failed at /usr/share/osfr/tools/ddore.pl line 6278.
Gtk-CRITICAL **: gtk_text_view_get_buffer: assertion `GTK_IS_TEXT_VIEW
(text_view)' failed at /usr/share/osfr/tools/ddore.pl line
6278.
Gtk-CRITICAL **: gtk_text_buffer_get_tag_table: assertion
`GTK_IS_TEXT_BUFFER (buffer)' failed
at /usr/share/osfr/tools/ddore.pl line 6278.
Gtk-CRITICAL **: gtk_text_buffer_get_bounds: assertion
`GTK_IS_TEXT_BUFFER (buffer)' failed
at /usr/share/osfr/tools/ddore.pl line 6278.
Gtk-CRITICAL **: gtk_text_buffer_remove_tag: assertion
`GTK_IS_TEXT_BUFFER (buffer)' failed
at /usr/share/osfr/tools/ddore.pl line 6278.
Gtk-CRITICAL **: gtk_text_tag_table_remove: assertion
`GTK_IS_TEXT_TAG_TABLE (table)' failed
at /usr/share/osfr/tools/ddore.pl line 6278.
Gtk-CRITICAL **: gtk_text_buffer_delete_mark: assertion
`GTK_IS_TEXT_MARK (mark)' failed
at /usr/share/osfr/tools/ddore.pl line 6278.
Gtk-CRITICAL **: gtk_text_buffer_delete_mark: assertion
`GTK_IS_TEXT_MARK (mark)' failed
at /usr/share/osfr/tools/dore.pl line 6278.
Segmentation fault

And my application crashes.

Am  I missing something here?

Any help in this regard will be appreciated. Many users of this application
are asking for spell checker.

Thanks
Ashwin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]