On Feb 16, 2010, at 4:30 PM, Dair Grant wrote: > > Hi, > > I think I have run into a crashing bug in the Rtree module, > triggered by > changing the database page size.
Thanks for working this out. A new version of rtree.c with the fix included is here: http://www.sqlite.org/src/raw/ext/rtree/rtree.c?name=30945 > One fix would be to memcpy only the actual size of the blob into the > node, > however I'm not sure if this is the best fix or if there are wider > issues > with the iNodeSize on disk (for a given blob) being larger/smaller > than the > iNodeSize calculated by rtreeInit. Changing just the memcpy() will only work if the Rtree.iNodeSize is larger than the actual node-size on disk. If it is smaller, only the first part of each node will be loaded. Chaos follows. The patched version above changes rtreeInit() to use the on-disk node-size when connecting to an existing rtree structure. Dan. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users