GNOME Bugzilla – Bug 762106
Segmentation fault when operating with large geoJSON files
Last modified: 2016-03-14 20:15:54 UTC
Created attachment 321299 [details] gnome-maps crash when opening large geoJSON files. I was working with a relatively large geoJSON file (~19MB) which seems to be correctly loaded by gnome-maps. If I load the file once, remove it from the layers list and then load it again, a few seconds later I get a segmentation fault. I'm not entirely sure if the problem is on my side or if it can be reproduced easily, but in my case the steps above always cause the program to crash. I've also attached a video of this problem, unfortunately I cannot attach the geoJSON file too, but I've tried with two different ones and the same problem seems to appear.
Good catch! Can you provide a backtrace? jhbuild shell libtool --mode=execute gdb --args gjs /usr/bin/gnome-maps bt (https://wiki.gnome.org/Apps/Maps/Resources)
Created attachment 321319 [details] Backtrace from the described error This is the result. Also, I've noticed that it's not just large geoJSON files causing problems, but generally loading and erasing files repeatedly seems to causes some issues.
Thanks Razvan! So looking at the backtrace the segfault occurs inside of libchamplain, in champlain-marker-layer, line 822: https://git.gnome.org/browse/libchamplain/tree/champlain/champlain-marker-layer.c#n822 That is some kind of clue. Seems like the marker-layer is corrupt? Use-after-free?
Upon closer inspection, I believe that this is the same problem Hashem always reported. It seems to appear quite frequently when working with many layers, but I still haven't been able to get into that stack trace quite right. *** This bug has been marked as a duplicate of bug 760645 ***