[Qgis-developer] Access violation - no RTTI data

Matthias Kuhn matthias at opengis.ch
Mon Oct 17 01:36:58 PDT 2016


On 10/17/2016 10:28 AM, Nyall Dawson wrote:
> On 17 October 2016 at 18:24, Matthias Kuhn <matthias at opengis.ch> wrote:
>> Hi Tom,
>>
>> RTTI is some low-level C++ functionality to determine an objects type
>> (roughly equivalent to `type(myobject)` in python). It can be enabled
>> and disabled during compilation. Apparently it was disabled on your QGIS
>> build.
> 
> Wouldn't that cause a ton of other errors though? It's used pretty
> heavily all throughout QGIS, and there's many other sip classes
> relying on it...
> 
> Nyall

I had the same thoughts. And no final explanation.

Maybe it's something related to how sip bindings are compiled that they
have no access to RTTI. Plus I think it should be enabled on most
systems so issues don't surface too often.

But I think removing RTTI dependency where issues surface cannot hurt
(apart from some performance impacts due to string comparison here but I
guess this code here shouldn't be used so heavily that this will ever
make something feel slow.)

Matthias


More information about the Qgis-developer mailing list