Bug 3531

Summary: a/z hotkeys crash Claws immediately after startup
Product: Claws Mail (GTK 2) Reporter: Khumba <claws-bugs-20218>
Component: UI/Message ViewAssignee: users
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 3.12.0   
Hardware: PC   
OS: Linux   

Description Khumba 2015-10-02 18:05:08 UTC
Right after opening Claws, pressing 'aa' or 'z' will cause Claws to crash.  Pressing 'aa' gives the following:

> <press 'a'>
> 
> (claws-mail:11008): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: gtk_tree_store_get_path: assertion 'iter->user_data != NULL' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: gtk_tree_store_iter_has_child: assertion 'VALID_ITER (iter, tree_model)' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: gtk_tree_store_iter_parent: assertion 'VALID_ITER (child, tree_store)' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: gtk_tree_store_iter_next: assertion 'iter->stamp == GTK_TREE_STORE (tree_model)->stamp' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: gtk_tree_store_get_path: assertion 'iter->user_data != NULL' failed
> 
> <press 'a' again>
> 
> (claws-mail:11008): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: gtk_tree_store_get_path: assertion 'iter->user_data != NULL' failed
> 
> (claws-mail:11008): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> **
> Gtk:ERROR:/var/tmp/portage/x11-libs/gtk+-2.24.28-r1/work/gtk+-2.24.28/gtk/gtktreestore.c:726:gtk_tree_store_iter_parent: assertion failed: (parent != NULL)
> Aborted

Pressing 'z' gives the following:

> (claws-mail:11599): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: gtk_tree_store_get_path: assertion 'iter->stamp == tree_store->stamp' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: gtk_tree_store_iter_parent: assertion 'VALID_ITER (child, tree_store)' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: IA__gtk_tree_path_prev: assertion 'path != NULL' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: gtk_tree_store_iter_has_child: assertion 'VALID_ITER (iter, tree_model)' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: gtk_tree_store_iter_parent: assertion 'VALID_ITER (child, tree_store)' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: gtk_tree_store_iter_next: assertion 'iter->stamp == GTK_TREE_STORE (tree_model)->stamp' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: IA__gtk_tree_model_get_iter: assertion 'path != NULL' failed
> 
> (claws-mail:11599): Gtk-CRITICAL **: gtk_tree_store_get_value: assertion 'VALID_ITER (iter, tree_store)' failed
> 
> (claws-mail:11599): GLib-GObject-WARNING **: /var/tmp/portage/dev-libs/glib-2.44.1/work/glib-2.44.1/gobject/gtype.c:4268: type id '0' is invalid
> 
> (claws-mail:11599): GLib-GObject-WARNING **: can't peek value table for type '<invalid>' which is not currently referenced
> Segmentation fault

Claws 3.12.0, Gentoo amd64.
Comment 1 users 2015-10-02 18:38:02 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

++ ChangeLog	2015-10-02 18:38:02.301004737 +0200
http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=0f5ca573f2f5a875f0a590e9bab87224919dddf7
Merge: 676a8c6 d3d6ac6
Author: Colin Leroy <colin@colino.net>
Date:   Fri Oct 2 18:38:01 2015 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=d3d6ac6eff909f8012b49cd8d6f42ee0df10cebd
Author: Paul <paul@claws-mail.org>
Date:   Fri Oct 2 17:37:51 2015 +0100

    fix bug 3531, 'a/z hotkeys crash Claws immediately after startup'