Hi Radim,


> It is most probably the problem with different off_t size in GRASS and
> QGIS. I have already implemented fix, but the problem is how to get
> real off_t size from GRASS. On Windows, it is now hard coded 8 bytes.
> build_off_t_size was added to g.version but it will but available in
> 7.1. For now, you have to ensure that QGIS and GRASS are compiled with
> the same off_t size (I am not sure how) or change in
> qgsgrassprovider.cpp
>   typedef off_t grass_off_t;
> to
>   typedef qint32 grass_off_t;
> or
>   typedef qint64 grass_off_t;
> according to the size used in GRASS.
>
>
I made this change and with qint64 (typedef qint64 grass_off_t;) QGIS does
not crash, but the geometry just disappears after editing. Please see here:

https://dl.dropboxusercontent.com/u/5772257/qgis/grass_node_tool.ogv

The same is happening with GRASS6.

With typedef qint32 grass_off_t it still crashes.

I'm using GRASS 7.0.1-2~ubuntu14.04.1 from
https://launchpad.net/~grass/+archive/ubuntu/grass-stable
and GRASS 6.4.3-3 from http://packages.ubuntu.com/trusty/grass
on Xubuntu 14.04 LTS.

Thanks!
Pedro
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to