Contacts launched asynchronously crashes Maps on startup
Submitted by Zeeshan Ali (Khattak)
Link to original bug (#758430)
Description
If you have too many contacts, Maps will die soon after launch with following error on console:
(org.gnome.Maps:16278): GLib-ERROR **: Creating pipes for GWakeup: Too many open files
With help from Ray Strode, we figured out the issue to be Maps launching async geocoding queries for all contacts. Ray said the issue is likely cause GCancellable uses a file and Maps is creating a new new cancellable for each async call. Now that I deleted all my contacts, Maps launches fine.
Easy solution would likely be to use one cancellable for all contacts geocoding calls but I think it's a bad idea to simply launch multiple (possibly a huge number of) async calls so best would be to not do that but rather wait for one async call to finish before launching another.