octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56651] "warning: unable to open X11 DISPLAY"


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56651] "warning: unable to open X11 DISPLAY" is raised on start when DISPLAY is not set
Date: Sat, 20 Jul 2019 22:42:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?56651>

                 Summary: "warning: unable to open X11 DISPLAY" is raised on
start when DISPLAY is not set
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Sat 20 Jul 2019 07:42:28 PM PDT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The warning message "warning: unable to open X11 DISPLAY" is now raised by
Octave when the interpreter first starts, when the DISPLAY variable is not
set. This warning is unnecessary information, in particular when the user just
wants to run Octave for number crunching and does not need any graphical
capabilities. This is a regression introduced recently in commit 596312d4f25d
(https://hg.savannah.gnu.org/hgweb/octave/rev/596312d4f25d), which deals with
how the display_info class is initialized.

Example _correct_ behavior in Octave 3.8.2 through 5.1.0:


$ unset DISPLAY
$ octave --eval 1
octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
ans =  1
$ octave --quiet --eval 1
ans =  1
$ octave-cli --eval 1
ans =  1


New behavior since 596312d4f25d:


$ unset DISPLAY
$ octave --eval 1
octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
warning: unable to open X11 DISPLAY
ans =  1
$ octave --quiet --eval 1
warning: unable to open X11 DISPLAY
ans =  1
$ octave-cli --eval 1
warning: unable to open X11 DISPLAY
ans =  1


As you can see this warning is now raised in all three scenarios, where it was
not at all before. The 'octave' wrapper program does print its own information
about DISPLAY not being set, which I think is appropriate, and can be silenced
easily with '--quiet'.

This was detected by https://gitlab.com/mtmiller/octave-test-suite (see the
log at https://gitlab.com/mtmiller/octave-test-suite/-/jobs/255845834), which
is my attempt at an automated daily external test suite to catch regressions
with how Octave behaves from the command line, for example.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56651>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]