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 619073 - Crash upon opening any filechooser due to missing XDG paths
Crash upon opening any filechooser due to missing XDG paths
Status: RESOLVED FIXED
Product: pdfmod
Classification: Other
Component: general
0.8.x
Other Linux
: Normal critical
: ---
Assigned To: pdfmod-maint
pdfmod-maint
: 625246 630590 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-05-19 11:58 UTC by Martin Szulecki
Modified: 2010-10-06 19:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Szulecki 2010-05-19 11:58:40 UTC
Using version 0.8.3 on openSUSE 11.2, attempts to open or save files in pdfmod lead to a crash:

[SNIP]
Marshaling activate signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: path2
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] 
  at Hyena.XdgBaseDirectorySpec.GetUserDirectory (System.String key, System.String fallback) [0x00000] 
  at Hyena.XdgBaseDirectorySpec.GetXdgDirectoryUnderHome (System.String key, System.String fallback) [0x00000] 
  at PdfMod.Gui.Client.<CreateChooser>m__A (System.String s) [0x00000]
[/SNIP]

However, by running pdfmod with XDG_DOCUMENTS_DIR and XDG_DOWNLOAD_DIR set makes it work again.
Comment 1 Gabriel Burt 2010-05-19 17:41:58 UTC
Thanks for the report!  I've fixed this in master - it'll be in the next release.

commit 1bf89353c53ee111c0088462557e2cc693dcdbbb
Author: Gabriel Burt <gabriel.burt@gmail.com>
Date:   Wed May 19 10:40:25 2010

    Avoid XDG-related crash in file chooser (bgo#619073)
Comment 2 Gabriel Burt 2010-10-06 19:49:15 UTC
*** Bug 630590 has been marked as a duplicate of this bug. ***
Comment 3 Gabriel Burt 2010-10-06 19:59:08 UTC
*** Bug 625246 has been marked as a duplicate of this bug. ***