[Qgis-developer] QGIS crash on Mac OS X -- 0.8 release branch
Gary Sherman
sherman at mrcc.com
Wed May 9 01:06:30 EDT 2007
This problem turns out to happen here in providers/ogr/
qgsogrprovider.cpp
:
void QgsOgrProvider::loadFields()
{
//the attribute fields need to be read again when the encoding
changes
attributeFields.clear();
...
}
When attributeFields.clear() is called, the crash occurs. If I
comment it out, the layer will load fine, with the untidy side effect
of having two sets of every field in the attribute table.
The attributeFields member is a std::vector. I thought maybe
something was amiss in my setup, so I wrote a small test program to
create a vector, populate it, and clear it. It works fine.
Any mac experts have any ideas as to why this is happening? I'm using
the frameworks from kyngchaos.com.
-gary
On May 5, 2007, at 10:19 AM, Gary Sherman wrote:
>
> On May 5, 2007, at 9:29 AM, Tom Elwertowski wrote:
>
>> Gary Sherman wrote:
>>> I just built the latest from the 0.8 release branch. It crashes
>>> when loading a vector layer (shapefile)
>>> Before I chalk this up to my bad build (I had to manually edit
>>> CMakeCache.txt to change libdal.so to libgdal.dylib after running
>>> cmake), can anybody confirm this problem? Or does the build work
>>> for you?
>>
>> Works for me. I also changed libdal.so.
>>
>> Tom
>
> Rasters work for me so I'm thinking it must be something recently
> changed in QgsOgrProvider::loadFields(). I'm compiling against
> Revision: 6930, checked out today (https://svn.qgis.org/repos/qgis/
> branches/Release-0_8_0)
>
> -gary
>
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
> Gary Sherman
> Micro Resources: http://mrcc.com
> *Geospatial Hosting
> *Web Site Hosting
> "We work virtually everywhere"
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Gary Sherman
Micro Resources: http://mrcc.com
*Geospatial Hosting
*Web Site Hosting
"We work virtually everywhere"
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
More information about the Qgis-developer
mailing list