[Qgis-developer] Issues with a Python test for Processing

Germán Carrillo carrillo.german at gmail.com
Thu Oct 20 19:45:56 PDT 2016


Hi All,


I'm having troubles trying to run a custom test [1] for my PR [2].


I'm able to run it against my local build in this way:

  $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/lib/
  $ QGIS_PREFIX_PATH=/apps
PYTHONPATH=/apps/share/qgis/python:/apps/share/qgis/python/plugins:$PYTHONPATH
python ../python/plugins/processing/tests/GdalAlgorithmsMemoryTest.py

It passes (prints OK) but I get a segmentation fault:

  ERROR 10: Pointer 'hDriver' is NULL in 'OGR_Dr_GetName'.
  *** Error in `python': double free or corruption (!prev):
0x0000000003a116b0 ***

When I push a commit to my PR, Travis says there are errors [3] with my
test, I guess related to file path configurations. Travis also gets the
segmentation fault.

Could someone please give me a clue on how to solve this issues?
Why tests pass against a local build but fail with Travis?


Regards,

Germán
--
[1]
https://github.com/gacarrillor/QGIS/blob/ogrmemorylayers/python/plugins/processing/tests/GdalAlgorithmsMemoryTest.py
[2] https://github.com/qgis/QGIS/pull/3644
[3] https://travis-ci.org/qgis/QGIS/jobs/169346549

-- 
-----------
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
http://about.me/germancarrillo

<http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161020/68ac4811/attachment.html>


More information about the Qgis-developer mailing list