After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 762106 - Segmentation fault when operating with large geoJSON files
Segmentation fault when operating with large geoJSON files
Status: RESOLVED DUPLICATE of bug 760645
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2016-02-15 19:25 UTC by Razvan Brinzea
Modified: 2016-03-14 20:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-maps crash when opening large geoJSON files. (2.31 MB, video/ogg)
2016-02-15 19:25 UTC, Razvan Brinzea
Details
Backtrace from the described error (2.74 KB, text/plain)
2016-02-15 21:42 UTC, Razvan Brinzea
Details

Description Razvan Brinzea 2016-02-15 19:25:40 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.
Comment 1 Hashem Nasarat 2016-02-15 19:27:50 UTC
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)
Comment 2 Razvan Brinzea 2016-02-15 21:42:02 UTC
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.
Comment 3 Jonas Danielsson 2016-02-16 09:32:44 UTC
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?
Comment 4 Razvan Brinzea 2016-03-14 20:15:54 UTC
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 ***