[GRASS-user] GRASS7 d.mon

Hi List,

In GRASS 7 (SVN from 11/10/2013) I have a problem when I try to display a raster using d.mon, i.e.:

bash-4.2$ d.mon start=wx0

bash-4.2$ d.rast global_total
ERROR: Cairo_begin_raster: Failed to create surface

Vectors display fine using d.vect and I can view the above mentioned raster when I load it thro’ the wxGUI. I’ve compiled GRASS7 with CAIRO support.

Couldn’t find help online.

Thanks in advance.

Best Regards,
Daniel

Hi,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

In GRASS 7 (SVN from 11/10/2013) I have a problem when I try to display a
raster using d.mon, i.e.:

bash-4.2$ d.mon start=wx0
bash-4.2$ d.rast global_total
ERROR: Cairo_begin_raster: Failed to create surface

this error comes from [1]. What version of cairo do you have?

Martin

[1] http://trac.osgeo.org/grass/browser/grass/trunk/lib/cairodriver/Raster.c#L67

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi Martin,

cairo.x86_64 1.12.14-2.fc18 @updates

It configured ok tho.

Best Regards,

Daniel

···

On Mon, Oct 14, 2013 at 11:49 AM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

In GRASS 7 (SVN from 11/10/2013) I have a problem when I try to display a
raster using d.mon, i.e.:

bash-4.2$ d.mon start=wx0
bash-4.2$ d.rast global_total
ERROR: Cairo_begin_raster: Failed to create surface

this error comes from [1]. What version of cairo do you have?

Martin

[1] http://trac.osgeo.org/grass/browser/grass/trunk/lib/cairodriver/Raster.c#L67


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

cairo.x86_64 1.12.14-2.fc18
@updates

It configured ok tho.

hm, I expect that displaying rasters from wxGUI also doesn't work, right? Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Yes, you’re right, it doesn’t display in wxGUI either - I thought that it had been working over the w/e.

Daniel

···

On Mon, Oct 14, 2013 at 11:56 AM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

cairo.x86_64 1.12.14-2.fc18
@updates

It configured ok tho.

hm, I expect that displaying rasters from wxGUI also doesn’t work, right? Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

Yes, you're right, it doesn't display in wxGUI either - I thought that it

please try r57994. It should at least print more details in error message.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Many thanks Martin, that revision has solved the problem.

Daniel

···

On Mon, Oct 14, 2013 at 3:21 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

Yes, you’re right, it doesn’t display in wxGUI either - I thought that it

please try r57994. It should at least print more details in error message.

Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi Daniel,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

Many thanks Martin, that revision has solved the problem.

in this revision I just changed the error message to report more
detailed info about failure. So it cannot be the reason why it's
working now for you. Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

ok. the only difference this time, is that i passed --with-cairo to ./configure. Having said that the previous install had cairo support. I also updated the region settings before running d.rast.

Daniel

···

On Mon, Oct 14, 2013 at 5:38 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi Daniel,

2013/10/14 Daniel McInerney <daniel.o.mcinerney@gmail.com>:

Many thanks Martin, that revision has solved the problem.

in this revision I just changed the error message to report more
detailed info about failure. So it cannot be the reason why it’s
working now for you. Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa