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 791206 - [Flatpak] Crash when opening an attachment
[Flatpak] Crash when opening an attachment
Status: RESOLVED FIXED
Product: geary
Classification: Other
Component: attachments
0.12.x
Other Linux
: High critical
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on: 791720
Blocks:
 
 
Reported: 2017-12-04 13:03 UTC by Frédéric Parrenin
Modified: 2018-02-05 10:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frédéric Parrenin 2017-12-04 13:03:46 UTC
On debian 9 Stretch, using flatpak geary 0.12.
When I double click a .docx file attached, I have a dialog asking me if I really want to open the file, I select "Open" and then geary crashes.
Comment 1 Federico Bruni 2017-12-12 07:00:46 UTC
I've just tried with a .docx file found on the Internet and everything works correctly using geary master.

Perhaps it's an issue with the flatpack installation, but I cannot verify it right now.
Comment 2 Federico Bruni 2017-12-12 07:36:26 UTC
Ok, I've managed to install the Flatpak package. (BTW, I was surprised that it did not pick my existing settings and I had to add the first account from scratch. It's the first time I install a Flatpak app, so no experience)

I got a crash at first launch, when I clicked on Information/About in the main menu. A crash of gnome-shell.
Then at second launch everything seems to work.
Indeed, when I click on the docx attachment, I'm prompted to choose the application to open it. Not only the first time, but any later time. I guess this should be fixed, as it never happens on regular installation.

Anyway, no crash for me. I choose LibreOffice Writer and I see the file.

Frederic, can you still reproduce this crash?
Can you share the .docx file, in case it may depend on it?
Comment 3 Federico Bruni 2017-12-12 07:45:59 UTC
The problem of the Application chooser prompt is mentioned here:
https://bugzilla.gnome.org/show_bug.cgi?id=779311#c4
Comment 4 Frédéric Parrenin 2017-12-12 08:12:01 UTC
For me the crash happens on every file, not only .docx files but also .pdf files.
Comment 5 Federico Bruni 2017-12-12 10:54:49 UTC
Then I guess it may be a flatpak bug.
Which versions are you running? Here's mine:

xdg-desktop-portal version 0.9
flatpak version 0.10.1

I see that Debian Stretch uses older versions.
Can you try upgrading to the versions in stretch-backports (or use pinning to testing) and see if it solves your problem?
I guess that xdg-desktop-portal is more important for this issue.
Comment 6 Frédéric Parrenin 2017-12-12 11:00:56 UTC
I have upgraded flatpak to 0.10.1 but not xdg-desktop-portal since there is no backport version of this package.
The problem is still there.
Comment 7 Federico Bruni 2017-12-12 11:07:39 UTC
you must use pinning (to testing):
https://wiki.debian.org/AptPreferences
Comment 8 Frédéric Parrenin 2017-12-12 13:45:46 UTC
Even with a newer xdg-desktop-portal, I still get the crash.
Comment 9 Frédéric Parrenin 2017-12-13 19:48:42 UTC
I compiled geary from source and now the crash disappeared.
So this really seems to be a flatpak issue.
Comment 10 Michael Gratton 2017-12-13 23:20:26 UTC
Hey Frédéric, since this looks like a Flatpak-specific issue, can you run Geary from a terminal window using this command:

  flatpak run org.gnome.Geary -d

Then try opening an attachment? Is any error printed before it crashes?
Comment 11 Frédéric Parrenin 2017-12-14 08:28:51 UTC
Yes, it prints the following error:

*** Error in `geary': double free or corruption (fasttop): 0x00007f22d4006ef0 ***
======= Backtrace: =========
/lib/libc.so.6[0x3688470c4b]
/lib/libc.so.6[0x3688477026]
/lib/libc.so.6[0x368847781e]
/lib/libglib-2.0.so.0(+0x47481)[0x7f22f21ac481]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x2d0)[0x7f22f21af450]
/lib/libglib-2.0.so.0(+0x4a698)[0x7f22f21af698]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f22f21af74c]
/lib/libgio-2.0.so.0(g_application_run+0x20d)[0x7f22f3baf97d]
geary(_vala_main+0x53)[0x46da03]
/lib/libc.so.6(__libc_start_main+0xf1)[0x3688420291]
geary(_start+0x2a)[0x46d8da]
======= Memory map: ========
00400000-00827000 r-xp 00000000 08:01 8699926                            /app/bin/geary
00a27000-00a32000 r--p 00427000 08:01 8699926                            /app/bin/geary
00a32000-00a36000 rw-p 00432000 08:01 8699926                            /app/bin/geary
00a36000-00a3a000 rw-p 00000000 00:00 0 
026b7000-04dad000 rw-p 00000000 00:00 0                                  [heap]
3688000000-3688023000 r-xp 00000000 08:01 8697615                        /usr/lib/ld-2.24.so
3688222000-3688223000 r--p 00022000 08:01 8697615                        /usr/lib/ld-2.24.so
3688223000-3688224000 rw-p 00023000 08:01 8697615                        /usr/lib/ld-2.24.so
3688224000-3688225000 rw-p 00000000 00:00 0 
3688400000-3688594000 r-xp 00000000 08:01 8660433                        /usr/lib/libc-2.24.so
3688594000-3688794000 ---p 00194000 08:01 8660433                        /usr/lib/libc-2.24.so
3688794000-3688798000 r--p 00194000 08:01 8660433                        /usr/lib/libc-2.24.so
3688798000-368879a000 rw-p 00198000 08:01 8660433                        /usr/lib/libc-2.24.so
368879a000-368879e000 rw-p 00000000 00:00 0 
3688800000-3688802000 r-xp 00000000 08:01 8695883                        /usr/lib/libdl-2.24.so
3688802000-3688a02000 ---p 00002000 08:01 8695883                        /usr/lib/libdl-2.24.so
3688a02000-3688a03000 r--p 00002000 08:01 8695883                        /usr/lib/libdl-2.24.so
3688a03000-3688a04000 rw-p 00003000 08:01 8695883                        /usr/lib/libdl-2.24.so
3688c00000-3688c19000 r-xp 00000000 08:01 8695696                        /usr/lib/libpthread-2.24.so
3688c19000-3688e18000 ---p 00019000 08:01 8695696                        /usr/lib/libpthread-2.24.so
3688e18000-3688e19000 r--p 00018000 08:01 8695696                        /usr/lib/libpthread-2.24.so
3688e19000-3688e1a000 rw-p 00019000 08:01 8695696                        /usr/lib/libpthread-2.24.so
3688e1a000-3688e1e000 rw-p 00000000 00:00 0 
3689000000-3689103000 r-xp 00000000 08:01 8698466                        /usr/lib/libm-2.24.so
3689103000-3689302000 ---p 00103000 08:01 8698466                        /usr/lib/libm-2.24.so
3689302000-3689303000 r--p 00102000 08:01 8698466                        /usr/lib/libm-2.24.so
3689303000-3689304000 rw-p 00103000 08:01 8698466                        /usr/lib/libm-2.24.so
3689400000-3689407000 r-xp 00000000 08:01 8698376                        /usr/lib/librt-2.24.so
3689407000-3689606000 ---p 00007000 08:01 8698376                        /usr/lib/librt-2.24.so
3689606000-3689607000 r--p 00006000 08:01 8698376                        /usr/lib/librt-2.24.so
3689607000-3689608000 rw-p 00007000 08:01 8698376                        /usr/lib/librt-2.24.so
3689800000-3689813000 r-xp 00000000 08:01 8697434                        /usr/lib/libresolv-2.24.so
3689813000-3689a13000 ---p 00013000 08:01 8697434                        /usr/lib/libresolv-2.24.so
3689a13000-3689a14000 r--p 00013000 08:01 8697434                        /usr/lib/libresolv-2.24.so
3689a14000-3689a15000 rw-p 00014000 08:01 8697434                        /usr/lib/libresolv-2.24.so
3689a15000-3689a17000 rw-p 00000000 00:00 0 
3689c00000-3689c2e000 r-xp 00000000 08:01 8693100                        /usr/lib/libk5crypto.so.3.1
3689c2e000-3689e2d000 ---p 0002e000 08:01 8693100                        /usr/lib/libk5crypto.so.3.1
3689e2d000-3689e2f000 r--p 0002d000 08:01 8693100                        /usr/lib/libk5crypto.so.3.1
3689e2f000-3689e30000 rw-p 0002f000 08:01 8693100                        /usr/lib/libk5crypto.so.3.1
368a000000-368a016000 r-xp 00000000 08:01 8697542                        /usr/lib/libgcc_s.so.1
368a016000-368a215000 ---p 00016000 08:01 8697542                        /usr/lib/libgcc_s.so.1
368a215000-368a216000 r--p 00015000 08:01 8697542                        /usr/lib/libgcc_s.so.1
368a216000-368a217000 rw-p 00016000 08:01 8697542                        /usr/lib/libgcc_s.so.1
368a400000-368a4cb000 r-xp 00000000 08:01 8695944                        /usr/lib/libsqlite3.so.0.8.6
368a4cb000-368a6ca000 ---p 000cb000 08:01 8695944                        /usr/lib/libsqlite3.so.0.8.6
368a6ca000-368a6cd000 r--p 000ca000 08:01 8695944                        /usr/lib/libsqlite3.so.0.8.6
368a6cd000-368a6cf000 rw-p 000cd000 08:01 8695944                        /usr/lib/libsqlite3.so.0.8.6
368a6cf000-368a6d0000 rw-p 00000000 00:00 0 
368ac00000-368ac15000 r-xp 00000000 08:01 8697586                        /usr/lib/libz.so.1.2.8
368ac15000-368ae14000 ---p 00015000 08:01 8697586                        /usr/lib/libz.so.1.2.8
368ae14000-368ae15000 r--p 00014000 08:01 8697586                        /usr/lib/libz.so.1.2.8
368ae15000-368ae16000 rw-p 00015000 08:01 8697586                        /usr/lib/libz.so.1.2.8
7f223c000000-7f2244000000 rw-s 00000000 00:05 22183947                   /SYSV00000000 (deleted)
7f2244000000-7f224422c000 rw-p 00000000 00:00 0 
7f224422c000-7f2248000000 ---p 00000000 00:00 0 
7f224c000000-7f224c021000 rw-p 00000000 00:00 0 
7f224c021000-7f2250000000 ---p 00000000 00:00 0 
7f2250000000-7f2250899000 rw-p 00000000 00:00 0 
7f2250899000-7f2254000000 ---p 00000000 00:00 0 
7f2254e00000-7f2254f00000 rw-p 00000000 00:00 0 
7f2255000000-7f2255100000 rw-p 00000000 00:00 0 
7f2255200000-7f2255300000 rw-p 00000000 00:00 0 
7f22553e2000-7f22553ed000 r-xp 00000000 08:01 8671033                    /usr/lib/gconv/libKSC.so
7f22553ed000-7f22555ec000 ---p 0000b000 08:01 8671033                    /usr/lib/gconv/libKSC.so
7f22555ec000-7f22555ed000 r--p 0000a000 08:01 8671033                    /usr/lib/gconv/libKSC.so
7f22555ed000-7f22555ee000 rw-p 0000b000 08:01 8671033                    /usr/lib/gconv/libKSC.so
7f22555ee000-7f22555fe000 r-xp 00000000 08:01 8674419                    /usr/lib/gconv/libGB.so
7f22555fe000-7f22557fd000 ---p 00010000 08:01 8674419                    /usr/lib/gconv/libGB.so
7f22557fd000-7f22557fe000 r--p 0000f000 08:01 8674419                    /usr/lib/gconv/libGB.so
7f22557fe000-7f22557ff000 rw-p 00010000 08:01 8674419                    /usr/lib/gconv/libGB.so
7f22557ff000-7f2255800000 ---p 00000000 00:00 0 
7f2255800000-7f2256000000 rw-p 00000000 00:00 0 
7f2256000000-7f2258000000 rw-s 00000000 00:05 21823489                   /SYSV00000000 (deleted)
7f2258000000-7f2258021000 rw-p 00000000 00:00 0 
7f2258021000-7f225c000000 ---p 00000000 00:00 0 
7f225c000000-7f225c034000 rw-p 00000000 00:00 0 
7f225c034000-7f2260000000 ---p 00000000 00:00 0 
7f2260000000-7f2260021000 rw-p 00000000 00:00 0 
7f2260021000-7f2264000000 ---p 00000000 00:00 0 
7f22641dc000-7f22641f4000 r-xp 00000000 08:01 8671302                    /usr/lib/gconv/libJIS.so
7f22641f4000-7f22643f3000 ---p 00018000 08:01 8671302                    /usr/lib/gconv/libJIS.so
7f22643f3000-7f22643f4000 r--p 00017000 08:01 8671302                    /usr/lib/gconv/libJIS.so
7f22643f4000-7f22643f5000 rw-p 00018000 08:01 8671302                    /usr/lib/gconv/libJIS.so
7f22643f5000-7f22643ff000 r-xp 00000000 08:01 8696977                    /usr/lib/gconv/ISO-2022-JP.so
7f22643ff000-7f22645fe000 ---p 0000a000 08:01 8696977                    /usr/lib/gconv/ISO-2022-JP.so
7f22645fe000-7f22645ff000 r--p 00009000 08:01 8696977                    /usr/lib/gconv/ISO-2022-JP.so
7f22645ff000-7f2264600000 rw-p 0000a000 08:01 8696977                    /usr/lib/gconv/ISO-2022-JP.so
7f2264600000-7f2264700000 rw-p 00000000 00:00 0 
7f22647f4000-7f22647f6000 r-xp 00000000 08:01 8695943                    /usr/lib/gconv/ISO8859-15.so
7f22647f6000-7f22649f5000 ---p 00002000 08:01 8695943                    /usr/lib/gconv/ISO8859-15.so
7f22649f5000-7f22649f6000 r--p 00001000 08:01 8695943                    /usr/lib/gconv/ISO8859-15.so
7f22649f6000-7f22649f7000 rw-p 00002000 08:01 8695943                    /usr/lib/gconv/ISO8859-15.so
7f22649f7000-7f22649f9000 r-xp 00000000 08:01 8695742                    /usr/lib/gconv/CP1251.so
7f22649f9000-7f2264bf8000 ---p 00002000 08:01 8695742                    /usr/lib/gconv/CP1251.so
7f2264bf8000-7f2264bf9000 r--p 00001000 08:01 8695742                    /usr/lib/gconv/CP1251.so
7f2264bf9000-7f2264bfa000 rw-p 00002000 08:01 8695742                    /usr/lib/gconv/CP1251.so
7f2264bfa000-7f2264bfc000 r-xp 00000000 08:01 8696551                    /usr/lib/gconv/CP1252.so
7f2264bfc000-7f2264dfb000 ---p 00002000 08:01 8696551                    /usr/lib/gconv/CP1252.so
7f2264dfb000-7f2264dfc000 r--p 00001000 08:01 8696551                    /usr/lib/gconv/CP1252.so
7f2264dfc000-7f2264dfd000 rw-p 00002000 08:01 8696551                    /usr/lib/gconv/CP1252.so
7f2264dfd000-7f2264dff000 r-xp 00000000 08:01 8696402                    /usr/lib/gconv/CP1257.so
7f2264dff000-7f2264ffe000 ---p 00002000 08:01 8696402                    /usr/lib/gconv/CP1257.so
7f2264ffe000-7f2264fff000 r--p 00001000 08:01 8696402                    /usr/lib/gconv/CP1257.so
7f2264fff000-7f2265000000 rw-p 00002000 08:01 8696402                    /usr/lib/gconv/CP1257.so
7f2265000000-7f2265100000 rw-p 00000000 00:00 0 
7f2265200000-7f2265300000 rw-p 00000000 00:00 0 
7f22653fd000-7f22653fe000 ---p 00000000 00:00 0 
7f22653fe000-7f2265bfe000 rw-p 00000000 00:00 0 
7f2265bfe000-7f2265bff000 ---p 00000000 00:00 0 
7f2265bff000-7f22663ff000 rw-p 00000000 00:00 0 
7f22663ff000-7f2266400000 ---p 00000000 00:00 0 
7f2266400000-7f2266d00000 rw-p 00000000 00:00 0 
7f2266e00000-7f2266f00000 rw-p 00000000 00:00 0 
7f2266ffe000-7f2266fff000 ---p 00000000 00:00 0 
7f2266fff000-7f22677ff000 rw-p 00000000 00:00 0 
7f22677ff000-7f2267800000 ---p 00000000 00:00 0 
7f2267800000-7f2268000000 rw-p 00000000 00:00 0 
7f2268000000-7f2268850000 rw-p 00000000 00:00 0 
7f2268850000-7f226c000000 ---p 00000000 00:00 0 
7f226c000000-7f226c021000 rw-p 00000000 00:00 0 
7f226c021000-7f2270000000 ---p 00000000 00:00 0 
7f2270000000-7f22720ef000 rw-p 00000000 00:00 0 
7f22720ef000-7f2274000000 ---p 00000000 00:00 0 
7f2274000000-7f22758fa000 rw-p 00000000 00:00 0 
7f22758fa000-7f2278000000 ---p 00000000 00:00 0 
7f2278000000-7f227aed0000 rw-p 00000000 00:00 0 
7f227aed0000-7f227c000000 ---p 00000000 00:00 0 
7f227c000000-7f227ffcf000 rw-p 00000000 00:00 0 
7f227ffcf000-7f2280000000 ---p 00000000 00:00 0 
7f228004a000-7f228004b000 ---p 00000000 00:00 0 
7f228004b000-7f228084b000 rw-p 00000000 00:00 0 
7f2280900000-7f2280a00000 rw-p 00000000 00:00 0 
7f2280a4c000-7f2280a4e000 r-xp 00000000 08:01 8696502                    /usr/lib/gconv/ISO8859-1.so
7f2280a4e000-7f2280c4d000 ---p 00002000 08:01 8696502                    /usr/lib/gconv/ISO8859-1.so
7f2280c4d000-7f2280c4e000 r--p 00001000 08:01 8696502                    /usr/lib/gconv/ISO8859-1.so
7f2280c4e000-7f2280c4f000 rw-p 00002000 08:01 8696502                    /usr/lib/gconv/ISO8859-1.so
7f2280c4f000-7f2280cc3000 r-xp 00000000 08:01 8696211                    /usr/lib/libgmp.so.10.3.1
7f2280cc3000-7f2280ec3000 ---p 00074000 08:01 8696211                    /usr/lib/libgmp.so.10.3.1
7f2280ec3000-7f2280ec5000 r--p 00074000 08:01 8696211                    /usr/lib/libgmp.so.10.3.1
7f2280ec5000-7f2280ec6000 rw-p 00076000 08:01 8696211                    /usr/lib/libgmp.so.10.3.1
7f2280ec6000-7f2280ef9000 r-xp 00000000 08:01 8696509                    /usr/lib/libhogweed.so.4.2
7f2280ef9000-7f22810f8000 ---p 00033000 08:01 8696509                    /usr/lib/libhogweed.so.4.2
7f22810f8000-7f22810fa000 r--p 00032000 08:01 8696509                    /usr/lib/libhogweed.so.4.2
7f22810fa000-7f22810fb000 rw-p 00034000 08:01 8696509                    /usr/lib/libhogweed.so.4.2
7f22810fb000-7f2281130000 r-xp 00000000 08:01 8698144                    /usr/lib/libnettle.so.6.2
7f2281130000-7f2281330000 ---p 00035000 08:01 8698144                    /usr/lib/libnettle.so.6.2
7f2281330000-7f2281332000 r--p 00035000 08:01 8698144                    /usr/lib/libnettle.so.6.2
7f2281332000-7f2281333000 rw-p 00037000 08:01 8698144                    /usr/lib/libnettle.so.6.2
7f2281333000-7f2281365000 r-xp 00000000 08:01 8697604                    /usr/lib/libidn.so.11.6.16
7f2281365000-7f2281565000 ---p 00032000 08:01 8697604                    /usr/lib/libidn.so.11.6.16
7f2281565000-7f2281566000 r--p 00032000 08:01 8697604                    /usr/lib/libidn.so.11.6.16
7f2281566000-7f2281567000 rw-p 00033000 08:01 8697604                    /usr/lib/libidn.so.11.6.16
7f2281567000-7f22816ba000 r-xp 00000000 08:01 8698449                    /usr/lib/libgnutls.so.30.9.0
7f22816ba000-7f22818ba000 ---p 00153000 08:01 8698449                    /usr/lib/libgnutls.so.30.9.0
7f22818ba000-7f22818c7000 r--p 00153000 08:01 8698449                    /usr/lib/libgnutls.so.30.9.0
7f22818c7000-7f22818c8000 rw-p 00160000 08:01 8698449                    /usr/lib/libgnutls.so.30.9.0
7f22818c8000-7f22818c9000 rw-p 00000000 00:00 0 
7f22818c9000-7f22818e3000 r-xp 00000000 08:01 8695710                    /usr/lib/gio/modules/libgiognutls.so
7f22818e3000-7f2281ae3000 ---p 0001a000 08:01 8695710                    /usr/lib/gio/modules/libgiognutls.so
7f2281ae3000-7f2281ae4000 r--p 0001a000 08:01 8695710                    /usr/lib/gio/modules/libgiognutls.so
7f2281ae4000-7f2281ae5000 rw-p 0001b000 08:01 8695710                    /usr/lib/gio/modules/libgiognutls.so
7f2281ae5000-7f2281aea000 r-xp 00000000 08:01 8696063                    /usr/lib/libnss_dns-2.24.so
7f2281aea000-7f2281ce9000 ---p 00005000 08:01 8696063                    /usr/lib/libnss_dns-2.24.so
7f2281ce9000-7f2281cea000 r--p 00004000 08:01 8696063                    /usr/lib/libnss_dns-2.24.so
7f2281cea000-7f2281ceb000 rw-p 00005000 08:01 8696063                    /usr/lib/libnss_dns-2.24.so
7f2281ceb000-7f2281cf5000 r-xp 00000000 08:01 8697672                    /usr/lib/libnss_files-2.24.so
7f2281cf5000-7f2281ef5000 ---p 0000a000 08:01 8697672                    /usr/lib/libnss_files-2.24.so
7f2281ef5000-7f2281ef6000 r--p 0000a000 08:01 8697672                    /usr/lib/libnss_files-2.24.so
7f2281ef6000-7f2281ef7000 rw-p 0000b000 08:01 8697672                    /usr/lib/libnss_files-2.24.so
7f2281ef7000-7f2281efd000 rw-p 00000000 00:00 0 
7f2281efd000-7f2282efd000 rw-s 00000000 00:05 21561351                   /SYSV00000000 (deleted)
7f2282ffe000-7f2282fff000 ---p 00000000 00:00 0 
7f2282fff000-7f22837ff000 rw-p 00000000 00:00 0 
7f22837ff000-7f2283800000 ---p 00000000 00:00 0 
7f2283800000-7f2284000000 rw-p 00000000 00:00 0 
7f2284000000-7f2284021000 rw-p 00000000 00:00 0 
7f2284021000-7f2288000000 ---p 00000000 00:00 0 
7f2288000000-7f2288ae3000 rw-p 00000000 00:00 0 
7f2288ae3000-7f228c000000 ---p 00000000 00:00 0 
7f228c000000-7f228c021000 rw-p 00000000 00:00 0 
7f228c021000-7f2290000000 ---p 00000000 00:00 0 
7f2290088000-7f22900bf000 r-xp 00000000 08:01 8697079                    /usr/lib/libcroco-0.6.so.3.0.1
7f22900bf000-7f22902bf000 ---p 00037000 08:01 8697079                    /usr/lib/libcroco-0.6.so.3.0.1
7f22902bf000-7f22902c2000 r--p 00037000 08:01 8697079                    /usr/lib/libcroco-0.6.so.3.0.1
7f22902c2000-7f22902c3000 rw-p 0003a000 08:01 8697079                    /usr/lib/libcroco-0.6.so.3.0.1
7f22902c3000-7f22902f7000 r-xp 00000000 08:01 8697511                    /usr/lib/librsvg-2.so.2.40.18
7f22902f7000-7f22904f7000 ---p 00034000 08:01 8697511                    /usr/lib/librsvg-2.so.2.40.18
7f22904f7000-7f22904f8000 r--p 00034000 08:01 8697511                    /usr/lib/librsvg-2.so.2.40.18
7f22904f8000-7f22904f9000 rw-p 00035000 08:01 8697511                    /usr/lib/librsvg-2.so.2.40.18
7f22904f9000-7f22904fb000 r-xp 00000000 08:01 8697731                    /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f22904fb000-7f22906fa000 ---p 00002000 08:01 8697731                    /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f22906fa000-7f22906fb000 r--p 00001000 08:01 8697731                    /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f22906fb000-7f22906fc000 rw-p 00002000 08:01 8697731                    /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7f22906fc000-7f22906fd000 ---p 00000000 00:00 0 
7f22906fd000-7f2290efd000 rw-p 00000000 00:00 0 
7f2290efd000-7f2290efe000 ---p 00000000 00:00 0 
7f2290efe000-7f22916fe000 rw-p 00000000 00:00 0 
7f22916fe000-7f22916ff000 ---p 00000000 00:00 0 
7f22916ff000-7f2291eff000 rw-p 00000000 00:00 0 
7f2291eff000-7f2291f00000 ---p 00000000 00:00 0 
7f2291f00000-7f2292800000 rw-p 00000000 00:00 0 
7f2292900000-7f2292a00000 rw-p 00000000 00:00 0 
7f2292af5000-7f2292c01000 rw-p 00000000 00:00 0 
7f2292c01000-7f2292c30000 rw-p 00000000 00:00 0 
7f2292c30000-7f2292c31000 r--p 00000000 08:01 8693335                    /usr/share/runtime/locale/fr/share/fr/LC_MESSAGES/glib-networking.mo
7f2292c31000-7f2292c42000 r--p 00000000 08:01 8674824                    /usr/share/fonts/cantarell/Cantarell-Bold.otf
7f2292c42000-7f2292c49000 r--p 00000000 08:01 8692283                    /usr/share/runtime/locale/fr/share/fr/LC_MESSAGES/gdk-pixbuf.mo
7f2292c49000-7f2292c4d000 rw-p 00000000 00:00 0 
7f2292c4d000-7f2292c4f000 rw-p 00000000 00:00 0 
7f2292c4f000-7f2292c6f000 r--s 00000000 08:01 8683940                    /usr/share/mime/mime.cache
7f2292c6f000-7f2292c80000 r--p 00000000 08:01 8682685                    /usr/share/fonts/cantarell/Cantarell-Regular.otf
7f2292c80000-7f2292c81000 r--s 00000000 08:01 16517831                   /home/parrenif/.var/app/org.gnome.Geary/cache/fontconfig/6f053da131463f66df8f07b1d962771d-le64.cache-7
7f2292c81000-7f2292c8c000 r--s 00000000 08:01 16517829                   /home/parrenif/.var/app/org.gnome.Geary/cache/fontconfig/80891ab9dca0556dc713b3855ca8fea6-le64.cache-7
7f2292c8c000-7f2292c90000 r--s 00000000 08:01 16517828                   /home/parrenif/.var/app/org.gnome.Geary/cache/fontconfig/da01783ec5a52f1333f3f638dd5d4fa2-le64.cache-7
Comment 12 Michael Gratton 2017-12-18 06:14:58 UTC
I'm getting the following when opening an attachment under Flatpak:

> (geary:7): GLib-GIO-CRITICAL **: g_dbus_connection_signal_unsubscribe: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
> (geary:7): GLib-GIO-CRITICAL **: g_dbus_connection_signal_subscribe: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

Running Geary under gdb in Flatpak (I just updated the wiki with instructions for this: https://wiki.gnome.org/action/edit/Apps/Geary/ReportingABug) I get a similar trace as in the previous comment, where the critical error is reported 

(geary:6): GLib-GIO-CRITICAL **: g_dbus_connection_signal_unsubscribe: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

Thread 1 "geary" received signal SIGTRAP, Trace/breakpoint trap.
_g_log_abort (breakpoint=breakpoint@entry=1) at gmessages.c:554
554	}
(gdb) bt
  • #0 _g_log_abort
    at gmessages.c line 554
  • #1 g_logv
    at gmessages.c line 1362
  • #2 g_log
    at gmessages.c line 1403
  • #3 g_return_if_fail_warning
    at gmessages.c line 2702
  • #4 g_dbus_connection_signal_unsubscribe
    at gdbusconnection.c line 3638
  • #5 open_call_done
    at gopenuriportal.c line 228
  • #6 g_task_return_now
    at gtask.c line 1145
  • #7 g_task_return
    at gtask.c line 1203
  • #8 reply_cb
    at gdbusproxy.c line 2589
  • #9 g_task_return_now
    at gtask.c line 1145
  • #10 g_task_return
    at gtask.c line 1203
  • #11 g_dbus_connection_call_done
    at gdbusconnection.c line 5722
  • #12 g_task_return_now
    at gtask.c line 1145
  • #13 complete_in_idle_cb
    at gtask.c line 1159
  • #14 g_main_context_dispatch
    at gmain.c line 3148
  • #15 g_main_context_dispatch
    at gmain.c line 3813
  • #16 g_main_context_iterate
    at gmain.c line 3886
  • #17 g_main_context_iteration
    at gmain.c line 3947
  • #18 g_application_run
    at gapplication.c line 2401
  • #19 _vala_main
    at /run/build/geary/src/client/application/main.vala line 33
  • #20 __libc_start_main
    at /usr/src/debug/glibc/2.24-r0/git/csu/libc-start.c line 289
  • #21 _start
    at ../sysdeps/x86_64/start.S line 120

From from frame 5 above, it looks like the problem is actually with GIO, not Geary, so I have reported GLib Bug 791720.
Comment 13 Michael Gratton 2018-01-27 03:27:39 UTC
The fix for Bug 792406 as been released in glib 2.54.3, so this will stop being an issue once that built in the Flathub org.gnome.Platform runtime.
Comment 14 Michael Gratton 2018-02-05 10:32:54 UTC
Flathub's org.gnome.Platform//3.26 now has glib 2.54.3, and after doing an update I can no longer reproduce this issue, so closing as fixed.