bugGNU Octave - Bugs: bug #38372, Lots of warning messages when plot...

 
 

bug #38372: Lots of warning messages when plot with 3.7.2 version

Submitter:  José Luis García Pallero <jgpallero>
Submitted:  Fri 22 Feb 2013 11:06:45 AM UTC
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

( Jump to the original submission )

Wed 27 Mar 2013 09:06:55 PM UTC, comment #12: 

Now I have not graphic access to mu workstation, but I've tried to sincronize the repository and after hg pull+hg update I have had some problems with different versions of some files, one of them libgui/src/octave-adapter/octave-main-thread.cc that was changed in changeset 16350. The problem is that I'm not an expert in Mercurial and I don't know if I broke something. I can try to compile again next week

José Luis García Pallero <jgpallero>
Wed 27 Mar 2013 08:34:54 PM UTC, comment #11: 

José, are you still seeing the message

QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread

at startup after Johns changeset 16350 six days ago?

Torsten Lilge <ttl>
Project Member
Fri 01 Mar 2013 08:48:12 PM UTC, comment #10: 

Done in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/8650eec57e9f).  Marking bug as fixed and closing report.

Rik <rik5>
Project Administrator
Fri 01 Mar 2013 01:22:20 PM UTC, comment #9: 

It works!

Thank you Rik for the patch. It can be added to the octave sources

José Luis García Pallero <jgpallero>
Thu 28 Feb 2013 07:36:43 PM UTC, comment #8: 

Thanks for all the testing work you've done.  I think we're getting close to a solution.

The GUI is the problem and I have a small patch (patch.setlocale) which I am attaching to this bug report.  To test it, download it to the Octave source directory that you are building from and execute

patch -p1 < patch.setlocale
make
./run-octave

And test whether plotting works.  You shouldn't have to set any other locale variables such as LANG or LC_ALL.

(file #27549)

Rik <rik5>
Project Administrator
Thu 28 Feb 2013 12:30:50 PM UTC, comment #7: 

Hello:

My system is Debian GNU/Linux Sid. GCC 4.7.2, QT 4.8.2, GraphicsMagick 1.3.16 and Java Openjdk-7 7u3-2.1.6

One question, how about is Java used?

Normal installation

./configure
./run-octave produces warnings
./run-octave --no-gui not produces prarnings

Without GraphicsMagick

./configure --without-magick
./run-octave produces warnings
./run-octave --no-gui not produces prarnings

Without Java

./configure --disable-java
./run-octave produces warnings
./run-octave --no-gui not produces prarnings

In all cases when I run the GUI this message appears in the GUI command line

octave:1> QCoreApplication::sendPostedEvents: Cannot send posted events for objects in another thread

José Luis García Pallero <jgpallero>
Thu 28 Feb 2013 02:24:28 AM UTC, comment #6: 

I know it is the locale setting, but figuring out why it is striking you alone is a bit difficult.

First, are you running the GUI or the command-line interface?  I would try both with my guess being that the GUI will work.

./run-octave --no-gui  # try without GUI
./run-octave # try with GUI

Second, Do you have the Graphic Magick libraries installed?  If so, can you configure Octave to build without them?

./configure --without-magick

Third, the final place in the code that makes use of locales is Java.  If you are compiling with Java, can you try it without?

./configure --disable-java

Rik <rik5>
Project Administrator
Wed 27 Feb 2013 10:33:58 AM UTC, comment #5: 

I've clone the repo (changeset 16135:98b211a163ce) and I've compiled it but the warnings remains:

octave:2> plot(randn(2))

multiplot> set grid linewidth 0,500000, linewidth 0,500000;
                                ^
           line 0: ';' expected

warning: division by zero
           line 0: undefined variable: Inf

           line 0: undefined variable: Inf

           line 0: undefined variable: Inf


multiplot> set style line 1 linecolor rgb "#0000ff" linetype 1 linewidth 0,500000;
                                                                          ^
           line 0: Extraneous arguments to set style line


multiplot> set style line 2 linecolor rgb "#0000ff" pointsize 2,000000;
                                                               ^
           line 0: Extraneous arguments to set style line


multiplot> set style line 2 linecolor rgb "#008000" linetype 1 linewidth 0,500000;
                                                                          ^
           line 0: Extraneous arguments to set style line


multiplot> set style line 3 linecolor rgb "#008000" pointsize 2,000000;
                                                               ^
           line 0: Extraneous arguments to set style line


multiplot> set xrange [1,000000000000000e+00:2,000000000000000e+00] noreverse;
                        ^
           line 0: ':' or keyword 'to' expected


multiplot> set yrange [-5,000000000000000e-01:2,500000000000000e+00] noreverse;
                         ^
           line 0: ':' or keyword 'to' expected


multiplot> set cbrange [0,000000000000000e+00:1,000000000000000e+00];
                         ^
           line 0: ':' or keyword 'to' expected


multiplot> set border lw 0,500000;
                          ^
           line 0: invalid expression

José Luis García Pallero <jgpallero>
Tue 26 Feb 2013 04:56:11 PM UTC, comment #4: 

I backed out a changeset which I believe was causing the problem.  Can you get new sources from Mercurial (anything >= 16099:4b6c44096862) and re-build and re-test?  If it works I will close this bug.

Rik <rik5>
Project Administrator
Fri 22 Feb 2013 06:20:02 PM UTC, comment #3: 

Thanks.  This is just what I expected.  I know where the issue is, but I will need to bring it up on the Octave Maintainer's list to figure out best solution.

Rik <rik5>
Project Administrator
Fri 22 Feb 2013 05:23:22 PM UTC, comment #2: 

My locale are configured as Spanish via the systemsettings application from KDE (but the LANG environment variable are not set).

I've set it to en_US.UTF-8 and now the plot works (no warnings appear, as previously). But now when I start ./run-octave appears this warnings:

/home/topo/octave-3.7.2/libtool: line 3072: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
/home/topo/octave-3.7.2/libtool: line 3072: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
/home/topo/octave-3.7.2/libtool: line 3072: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory

With octave 3.6.x versions and prior I don't need to change the locales

Attached send the generated files via drawnow

(file #27503, file #27504)

José Luis García Pallero <jgpallero>
Fri 22 Feb 2013 05:02:10 PM UTC, comment #1: 

This is interesting.  It appears that in your locale the radix separator is ',' rather than '.'.

Can you try running the following:

sombrero ();
drawnow ("x11", "/dev/null", false, "default_locale.gp");

Then exit Octave entirely and switch your LANG/LOCALE to something else.
The example below uses CSH format for setting environment variables.  If you use a Bourne shell you will need to change that.

setenv LANG en_US.UTF-8
run-octave
sombrero ();
drawnow ("x11", "/dev/null", false, "US_locale.gp");

If the second test works can you upload both .gp files?

Rik <rik5>
Project Administrator
Fri 22 Feb 2013 11:06:45 AM UTC, original submission:  

I have compiled the 3.7.2 version of octave. When I try to plot a simple figure as

plot(randn(2))

the plot is created but lots of warnings are emmited:

octave:2> plot(randn(2))

multiplot> set grid linewidth 0,500000, linewidth 0,500000;
                                ^
           line 0: ';' expected

warning: division by zero
           line 0: undefined variable: Inf

           line 0: undefined variable: Inf

           line 0: undefined variable: Inf


multiplot> set style line 1 linecolor rgb "#0000ff" linetype 1 linewidth 0,500000;
                                                                          ^
           line 0: Extraneous arguments to set style line


multiplot> set style line 2 linecolor rgb "#0000ff" pointsize 2,000000;
                                                               ^
           line 0: Extraneous arguments to set style line


multiplot> set style line 2 linecolor rgb "#008000" linetype 1 linewidth 0,500000;
                                                                          ^
           line 0: Extraneous arguments to set style line


multiplot> set style line 3 linecolor rgb "#008000" pointsize 2,000000;
                                                               ^
           line 0: Extraneous arguments to set style line


multiplot> set xrange [1,000000000000000e+00:2,000000000000000e+00] noreverse;
                        ^
           line 0: ':' or keyword 'to' expected


multiplot> set yrange [-2,000000000000000e+00:1,000000000000000e+00] noreverse;
                         ^
           line 0: ':' or keyword 'to' expected


multiplot> set cbrange [0,000000000000000e+00:1,000000000000000e+00];
                         ^
           line 0: ':' or keyword 'to' expected


multiplot> set border lw 0,500000;
                          ^
           line 0: invalid expression

José Luis García Pallero <jgpallero>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #27549:  patch.setlocale added by rik5 (458B - application/octet-stream)
file #27503:  default_locale.gp added by jgpallero (56KiB - application/x-gnuplot)
file #27504:  US_locale.gp added by jgpallero (56KiB - application/x-gnuplot)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jgpallero (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-01 rik5 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2013-02-28 rik5 Attached File- Added patch.setlocale, #27549
    2013-02-26 rik5 StatusNeed Info In Progress
    2013-02-22 jgpallero Attached File- Added default_locale.gp, #27503
        Attached File- Added US_locale.gp, #27504
    2013-02-22 rik5 StatusNone Need Info
    2013-02-22 rik5 CategoryPlotting Plotting with gnuplot

    Back to the top

    Powered by Savane 3.9