Some additional info. What is weird is that I now tried it on the most low end device, iPhone 4S with 512mb ram and that by default uses 25mb cache.
It works pretty well, with some disk writing, but seems on healthy levels. The difference in patterns I see is that on iPad 3 it is writing "Flushed 0 tiles" and "Flushed 1 tiles" a lot, which seems pretty unhealthy? In either case, that seems to be the big difference that is causing it to stall the whole process. Any ideas? iPhone 4S log (25mb cache): Input file size is 5000, 5000 GDAL: GDAL_CACHEMAX = 25 MB GDAL: GDALWarpKernel()::GWKGeneralCase() Src=0,0,2395x1172 Dst=0,0,3328x1536 GDAL: GDALWarpKernel()::GWKGeneralCase() Src=2340,0,1290x2435 Dst=3328,0,1536x3328 GDAL: GDALWarpKernel()::GWKGeneralCase() Src=3503,0,1497x1016 Dst=4864,0,1960x1536 GPKG: Partial tiles DB is 28405760 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 129 GPKG: Flushed 43 tiles. Target was 64 GPKG: Partial tiles DB is 39493632 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 123 GPKG: Flushed 44 tiles. Target was 61 GDAL: GDALWarpKernel()::GWKGeneralCase() Src=0,1067,2457x1470 Dst=0,1536,3328x1792 GDAL: GDALWarpKernel()::GWKGeneralCase() Src=3560,935,1440x1445 Dst=4864,1536,1960x1792 GPKG: Partial tiles DB is 32014336 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 144 GPKG: Flushed 43 tiles. Target was 72 GPKG: Partial tiles DB is 30134272 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 181 GPKG: Flushed 32 tiles. Target was 90 GPKG: Partial tiles DB is 34451456 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 165 GPKG: Flushed 16 tiles. Target was 82 GPKG: Partial tiles DB is 35696640 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 145 GPKG: Flushed 29 tiles. Target was 72 GDAL: Potential thrashing on band 1 of /var/containers/Bundle/Application/3477D684-F817-4DA9-853A-98B988AF419B/fjallkartan.app/fjallkarta/vf73_6_50.tif. GDAL: GDALWarpKernel()::GWKGeneralCase() Src=0,2432,2509x1280 Dst=0,3328,3328x1536 GPKG: Partial tiles DB is 29904896 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 90 GPKG: Flushed 35 tiles. Target was 45 GPKG: Partial tiles DB is 35098624 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 106 GPKG: Flushed 53 tiles GDAL: GDALWarpKernel()::GWKGeneralCase() Src=2454,2299,2546x1310 Dst=3328,3328,3496x1536 GDAL: GDALWarpKernel()::GWKGeneralCase() Src=0,3664,1194x1336 Dst=0,4864,1536x1967 GPKG: Partial tiles DB is 34304000 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 92 GPKG: Flushed 46 tiles GDAL: GDALWarpKernel()::GWKGeneralCase() Src=1131,3606,1446x1394 Dst=1536,4864,1792x1967 GDAL: GDALWarpKernel()::GWKGeneralCase() Src=2506,3551,1256x1449 Dst=3328,4864,1536x1967 GPKG: Partial tiles DB is 30826496 bytes. Flushing part of partial tiles GPKG: Active partial tiles before flush: 118 GPKG: Flushed 57 tiles. Target was 59 GDAL: GDALWarpKernel()::GWKGeneralCase() Src=3685,3473,1315x1527 Dst=4864,4864,1960x1967 -- View this message in context: http://osgeo-org.1560.x6.nabble.com/MBTiles-creation-problems-on-some-iOS-devices-tp5270469p5270704.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev