Debian Bug report logs - #492396
should not warn about missing DISPLAY when used at the command line

version graph

Package: dia; Maintainer for dia is Philippe SWARTVAGHER <phil.swart@gmx.fr>; Source for dia is src:dia (PTS, buildd, popcon).

Reported by: "W. Martin Borgert" <debacle@debian.org>

Date: Fri, 25 Jul 2008 18:54:05 UTC

Severity: important

Tags: fixed-upstream

Found in versions dia/0.96.1-7, dia/0.97-2

Fixed in version dia/0.97.3+git20220525-1

Done: Philippe SWARTVAGHER <phil.swart@gmx.fr>

Bug is archived. No further changes may be made.

Forwarded to https://bugzilla.gnome.org/show_bug.cgi?id=611276

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>:
Bug#492396; Package dia. (full text, mbox, link).


Acknowledgement sent to "W. Martin Borgert" <debacle@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "W. Martin Borgert" <debacle@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: should not warn about missing DISPLAY when used at the command line
Date: Fri, 25 Jul 2008 20:53:46 +0200
Package: dia
Version: 0.96.1-7
Severity: minor

Since PyGTK is "integrated" into dia, it warns about about
missing DISPLAY, when running at the command line (and DISPLAY
is not set):

$ DISPLAY='' dia --export=foo.png foo.dia
/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
foo.dia --> foo.png

Running dia with no DISPLAY is no reason to complain.
(Btw. the "foo.dia --> foo.png" line is waste, as well.)




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>:
Bug#492396; Package dia. (Wed, 23 Sep 2009 20:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Jan Dittberner <jandd@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>. (Wed, 23 Sep 2009 20:39:03 GMT) (full text, mbox, link).


Message #10 received at 492396@bugs.debian.org (full text, mbox, reply):

From: Jan Dittberner <jandd@debian.org>
To: 492396@bugs.debian.org
Subject: even worse, now dia segfaults without display
Date: Wed, 23 Sep 2009 22:24:35 +0200
[Message part 1 (text/plain, inline)]
if DISPLAY is not set or no X is available dia segfaults now:

DISPLAY='' make -C doc
make[1]: Entering directory `/tmp/buildd/ldaptor-0.0.43/doc'
dia -t png-libart --export=ldap-is-a-tree.dia.png.tmp ldap-is-a-tree.dia
/usr/lib/pymodules/python2.5/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
sys:1: Warning: invalid (NULL) pointer instance
sys:1: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
sys:1: GtkWarning: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
sys:1: PangoWarning: pango_context_set_font_description: assertion `context != NULL' failed
sys:1: PangoWarning: pango_context_set_base_dir: assertion `context != NULL' failed
sys:1: PangoWarning: pango_context_set_language: assertion `context != NULL' failed
sys:1: PangoWarning: pango_layout_new: assertion `context != NULL' failed
sys:1: PangoWarning: pango_layout_set_attributes: assertion `layout != NULL' failed
sys:1: PangoWarning: pango_layout_set_text: assertion `layout != NULL' failed
sys:1: PangoWarning: pango_layout_get_unknown_glyphs_count: assertion `PANGO_IS_LAYOUT (layout)' failed
sys:1: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
sys:1: GtkWarning: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window
sys:1: PangoWarning: pango_layout_set_alignment: assertion `layout != NULL' failed
sys:1: PangoWarning: pango_layout_set_ellipsize: assertion `PANGO_IS_LAYOUT (layout)' failed
sys:1: PangoWarning: pango_layout_set_single_paragraph_mode: assertion `PANGO_IS_LAYOUT (layout)' failed
sys:1: PangoWarning: pango_layout_set_width: assertion `layout != NULL' failed
sys:1: PangoWarning: pango_layout_get_extents: assertion `layout != NULL' failed
sys:1: PangoWarning: pango_context_get_language: assertion `context != NULL' failed
sys:1: PangoWarning: pango_context_get_metrics: assertion `PANGO_IS_CONTEXT (context)' failed
sys:1: PangoWarning: pango_font_metrics_get_ascent: assertion `metrics != NULL' failed
sys:1: PangoWarning: pango_font_metrics_get_descent: assertion `metrics != NULL' failed
sys:1: PangoWarning: pango_font_metrics_get_approximate_digit_width: assertion `metrics != NULL' failed
sys:1: GtkWarning: gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
sys:1: GtkWarning: gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed
sys:1: GtkWarning: gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
sys:1: GtkWarning: gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
make[1]: *** [ldap-is-a-tree.dia.png] Segmentation fault
make[1]: Leaving directory `/tmp/buildd/ldaptor-0.0.43/doc'
make: *** [doc-stamp] Error 2

-- 
Jan Dittberner - Debian Developer
GPG-key: 4096R/558FB8DD 2009-05-10
         B2FF 1D95 CE8F 7A22 DF4C  F09B A73E 0055 558F B8DD
http://ddportfolio.debian.net/ - http://people.debian.org/~jandd/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>:
Bug#492396; Package dia. (Wed, 23 Sep 2009 22:21:09 GMT) (full text, mbox, link).


Acknowledgement sent to "W. Martin Borgert" <debacle@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>. (Wed, 23 Sep 2009 22:21:09 GMT) (full text, mbox, link).


Message #15 received at 492396@bugs.debian.org (full text, mbox, reply):

From: "W. Martin Borgert" <debacle@debian.org>
To: Jan Dittberner <jandd@debian.org>, 492396@bugs.debian.org
Subject: Re: [Pkg-dia-team] Bug#492396: even worse, now dia segfaults without display
Date: Thu, 24 Sep 2009 00:18:10 +0200
On 2009-09-23 22:24, Jan Dittberner wrote:
> if DISPLAY is not set or no X is available dia segfaults now:
>
> DISPLAY='' make -C doc
> make[1]: Entering directory `/tmp/buildd/ldaptor-0.0.43/doc'
> dia -t png-libart --export=ldap-is-a-tree.dia.png.tmp ldap-is-a-tree.dia
> /usr/lib/pymodules/python2.5/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display

Not for me:

$ DISPLAY='' dia -s 400x400 -e foo.png -t png-libart foo.dia 
/usr/lib/pymodules/python2.5/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
foo.dia --> foo.png
$ identify foo.png 
foo.png PNG 400x400 400x400+0+0 8-bit DirectClass 1.46kb 

ii  dia            0.97-2         Diagram editor





Information forwarded to debian-bugs-dist@lists.debian.org, Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>:
Bug#492396; Package dia. (Thu, 24 Sep 2009 09:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jan Dittberner <jandd@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>. (Thu, 24 Sep 2009 09:54:03 GMT) (full text, mbox, link).


Message #20 received at 492396@bugs.debian.org (full text, mbox, reply):

From: Jan Dittberner <jandd@debian.org>
To: 492396@bugs.debian.org
Cc: 492396@bugs.debian.org
Subject: Re: [Pkg-dia-team] Bug#492396: even worse, now dia segfaults without display
Date: Thu, 24 Sep 2009 10:46:27 +0200
[Message part 1 (text/plain, inline)]
On Thu, Sep 24, 2009 at 12:18:10AM +0200, W. Martin Borgert wrote:
> On 2009-09-23 22:24, Jan Dittberner wrote:
> > if DISPLAY is not set or no X is available dia segfaults now:
> >
> > DISPLAY='' make -C doc
> > make[1]: Entering directory `/tmp/buildd/ldaptor-0.0.43/doc'
> > dia -t png-libart --export=ldap-is-a-tree.dia.png.tmp ldap-is-a-tree.dia
> > /usr/lib/pymodules/python2.5/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
> 
> Not for me:
> 
> $ DISPLAY='' dia -s 400x400 -e foo.png -t png-libart foo.dia 
> /usr/lib/pymodules/python2.5/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
>   warnings.warn(str(e), _gtk.Warning)
> foo.dia --> foo.png
> $ identify foo.png 
> foo.png PNG 400x400 400x400+0+0 8-bit DirectClass 1.46kb 
> 
> ii  dia            0.97-2         Diagram editor


The error occurs when running in a sid pbuilder chroot the used dia version is 0.97-2 too.

The ldap-is-a-tree.dia file comes from the ldaptor source package (I attached it to #538309).


Regards
Jan
[signature.asc (application/pgp-signature, inline)]

Forcibly Merged 492396 538309. Request was from Roland Stigge <stigge@antcom.de> to control@bugs.debian.org. (Sat, 27 Feb 2010 13:03:05 GMT) (full text, mbox, link).


Disconnected #492396 from all other report(s). Request was from Roland Stigge <stigge@antcom.de> to control@bugs.debian.org. (Thu, 29 Dec 2011 18:27:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>:
Bug#492396; Package dia. (Wed, 15 May 2013 19:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roland Stigge <stigge@antcom.de>:
Extra info received and forwarded to list. Copy sent to Debian Dia Team <pkg-dia-team@lists.alioth.debian.org>. (Wed, 15 May 2013 19:51:04 GMT) (full text, mbox, link).


Message #29 received at 492396@bugs.debian.org (full text, mbox, reply):

From: Roland Stigge <stigge@antcom.de>
To: 492396@bugs.debian.org
Subject: should not warn about missing DISPLAY when used at the command line
Date: Wed, 15 May 2013 21:44:19 +0200
Hi,

for the record, I can't reproduce the segfault in a pbuilder chroot.
What remains is the (valid) issues of:

- "... --> ..."
- DISPLAY warning

Roland



Added tag(s) fixed-upstream. Request was from debian-bts-link@lists.debian.org to control@bugs.debian.org. (Mon, 25 Mar 2019 19:45:51 GMT) (full text, mbox, link).


Reply sent to Philippe SWARTVAGHER <phil.swart@gmx.fr>:
You have taken responsibility. (Mon, 30 May 2022 19:57:10 GMT) (full text, mbox, link).


Notification sent to "W. Martin Borgert" <debacle@debian.org>:
Bug acknowledged by developer. (Mon, 30 May 2022 19:57:10 GMT) (full text, mbox, link).


Message #36 received at 492396-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 492396-close@bugs.debian.org
Subject: Bug#492396: fixed in dia 0.97.3+git20220525-1
Date: Mon, 30 May 2022 19:53:36 +0000
Source: dia
Source-Version: 0.97.3+git20220525-1
Done: Philippe SWARTVAGHER <phil.swart@gmx.fr>

We believe that the bug you reported is fixed in the latest version of
dia, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 492396@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philippe SWARTVAGHER <phil.swart@gmx.fr> (supplier of updated dia package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 29 May 2022 20:02:52 +0200
Source: dia
Architecture: source
Version: 0.97.3+git20220525-1
Distribution: unstable
Urgency: medium
Maintainer: Philippe SWARTVAGHER <phil.swart@gmx.fr>
Changed-By: Philippe SWARTVAGHER <phil.swart@gmx.fr>
Closes: 492396 885800 905233 936393 945876 982055 987402
Changes:
 dia (0.97.3+git20220525-1) unstable; urgency=medium
 .
   [ Philippe SWARTVAGHER ]
   * Use gbp to manage the source package
 .
   [ Nicolas Boulenguez ]
   * Move desktop file from dia-common to dia
   * Remove obsolete debian/*.dirs
   * control: explicit Rules-Requires-Root
   * copyright: HTTPS URL for copyright format
   * copyright: embed full GFDL-1.1
   * rules: remove explicit --as-needed
   * rules: include buildflags.mk
   * remove shlibs:Depends for dia-common
 .
   [ arriott NZ ]
   * mime: stop quoting %s placeholder. Closes: #987402
 .
   [ Nicolas Boulenguez ]
   * Switch to debhelper 13
   * rules: trivial optimisation
   * rules: only create the docbook symlink once
   * Style: format and order some debhelper files
 .
   [ Philippe SWARTVAGHER ]
   * clean: do not let dh_clean remove INSTALL
   * control: new maintainer (Closes: #982055)
   * control: add Vcs-* fields
   * watch: update URL
   * control: Bumped Standards-Version to 4.6.1
   * New upstream snapshot
     - Adapt packaging to the new Meson build system
     - Closes: #885800, #936393, #905233, #492396, #945876
     - Drop fix-libxml2-config.patch: not required anymore
     - Adapt fix-doc.patch
     - Adapt fix-helpdir.patch
     - Drop fix-psdoc.patch: not required anymore
     - Drop fix-makefile.patch: not required anymore
     - Drop add-thumbnailer.patch: fixed upstream in
       9ff6f043c511f5cc0225e7903e72d9c48d979c40
     - Adapt remove-backup-files.patch
     - Drop errors-to-stderr.patch: fixed upstream in
       a67db4890f859a660d88263102bd1f47d2c8cdba
     - Drop fix-cast-warnings.patch: fixed upstream in
       69c0d45c50c3bda8388e4a044c06114f6c75dacb and
       2c96a9401c73c42b8875b777e93c6946232385ab
     - Drop fix-fr-po.patch: fixed upstream in
       7659c9a4bee1a77ffc2a858fe940e4f4aaf1c014
     - Drop fix-code-messages-typo.patch: fixed upstream in
       b76cc87fad7f53a6a548a2ec870abb5fbd1c089d
     - Drop freetype.patch: freetype dependency was removed upstream in
       d2ccbfb0344d3c23719fcb9661e2623830a0142d
     - Add fix-libdia-instal-dir.patch
     - Add use-local-dbman.patch
   * Fix some lintian issues
Checksums-Sha1:
 2f38a627a7bec3b8020efa059a35ff9aeff97102 2044 dia_0.97.3+git20220525-1.dsc
 543387b352cb598e73816ea9eca844619fc392a7 11648950 dia_0.97.3+git20220525.orig.tar.gz
 18cf2d3a122ea21ed6bbb67b3665afbc83829d91 23764 dia_0.97.3+git20220525-1.debian.tar.xz
 a3a4adc8f8dc71ef007a10ecb237e18083cb26c6 15074 dia_0.97.3+git20220525-1_source.buildinfo
Checksums-Sha256:
 d962aa82a4eeddd76a9fa864a98b07d8dc283addc5f504a7bff71393a5fa4ee9 2044 dia_0.97.3+git20220525-1.dsc
 2419b3ebb9516a5f7c7581425d58b211b71fefd57e8da4762ff73c80f73918c0 11648950 dia_0.97.3+git20220525.orig.tar.gz
 b1881eeae8641f151bd8610cd54a2dbc90222e1031c08e404eeadbd0710bc123 23764 dia_0.97.3+git20220525-1.debian.tar.xz
 509e95adad1923f2684d3291574c7d9bda7734f91dc6a4f169742b2351778d53 15074 dia_0.97.3+git20220525-1_source.buildinfo
Files:
 156e8a5c1b1cd97e4e866a8c7a185c05 2044 graphics optional dia_0.97.3+git20220525-1.dsc
 c076e4be1f0070c4d57ad00f90cd6453 11648950 graphics optional dia_0.97.3+git20220525.orig.tar.gz
 1bd61d8afa282952c476ac42002e6d0d 23764 graphics optional dia_0.97.3+git20220525-1.debian.tar.xz
 8c5aa21faa606f4efe3fda82df80e5d7 15074 graphics optional dia_0.97.3+git20220525-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmKVHIYQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFKt2C/wJ0SoQQtCQn7bDY7Nc5YZnQWpc7RhSbMl6
8k6GRDtB+95FHdBeSFFvH+pMP25yt6GmcYjUHJN48UFSIaTETUh84qocBIkrdroe
fhwqcEHSVRr45d0JbwWkSZZeYiWkAmd+Yw/qDer7R3rhuGOmplLT9UZCOkyZna4j
GMef62YueDXvaeTyZxyDq4k2Ore55suJR0FHdXdF6cbIbOsDm4RC+nqvWO6wFleX
RskLydWGzMi+6rauw5Y+7nnCXGKeabN2mSF86Zv9ydsj1D0ffPgg7ln9VglQgNOU
hHHaiMvV3H/R8r0PzU4aFBtPGON2ZqhbUWrTFNu3Ce3ekJ9SSulE99YZiezR++dj
/x3iRJhnhvO3gdKbTkuTzEaqqKPFk9DdXkfMykjQiv5sUgtcuQpTFyVizVztv9sn
eLgKB5WlQwY45LGWP3O7hSc9fkR3OcHqZgJvNK+Rkltb+v8GTtULI2hj94Qj2juP
loFybVIDRq0VCtAFvPZpe2STPZTOBhU=
=2+gR
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 28 Jun 2022 07:29:14 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 07:28:05 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.