sejerpz / vtg

Automatically exported from code.google.com/p/vtg
0 stars 0 forks source link

Crash on saving .vala file (related to symbol completion) #182

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On Ubuntu precise alpha, I run vtg with gedit 3.3.3.

vtg works perfectly so far. However, when saving a file, it segfaults.

The only interesting output I get is:

** CRITICAL **: afrodite_source_file_get_filename: assertion `self != NULL' 
failed

which occurs when opening a vala file with gedit.

When turning off symbol completion, this segfault does not occur.

Original issue reported on code.google.com by Linus.Seelinger on 15 Feb 2012 at 8:05

GoogleCodeExporter commented 9 years ago
Running gedit with gdb, I found out that these segfauls seem to be caused by 
this:

afrodite_symbol_get_is_root (self=0x7fffcf2ec6d0) at symbol.c:5174
5174            result = _tmp0_ == NULL;

(If it helps, these segfaults can also occur when adding new lines to a source 
file)

Original comment by Linus.Seelinger on 15 Feb 2012 at 8:11