<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Please ignore this one (below). Sorry for wasting the list's time on this one. I can now build GDAL 2.x for iOS no trouble, and I do not get the crash with GDAL 2.1.2.<div class=""><br class=""></div><div class="">(After not being able to get GDAL 2.x to build for iOS last October, I gave up on it and went back to 1.11. I’ve just tried 2.1.2 and it built first time, no trouble, just using the same build script that I’d been using for 1.11. I do not know if it is my build script that has changed since October, or if 2.1.2 fixed something that was causing me problems. I can’t recall what the issue was back then.)</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 21 Jan 2017, at 11:27 am, Nik Sands <<a href="mailto:nik@nixanz.com" class="">nik@nixanz.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi all,<br class=""><br class="">Using GDAL 1.11, I’m getting a crash when attempting to OGROpen() with either the SQLite driver or the GeoPackage driver (which uses SQLite). Stack trace is below.<br class=""><br class="">My Googling for answers found no results for the specific search criteria I used. ("gdal exc_bad_access ogropen sqlite3_auto_extension”)<br class=""><br class="">I get an EXC_BAD_ACCESS at the only line in the OGR2SQLITE_Register() function in ogrsqliteviritualogr.cpp . Ie at:<br class=""><br class="">void OGR2SQLITE_Register()<br class="">{<br class=""> sqlite3_auto_extension ((void (*)(void)) OGR2SQLITE_static_register); // EXC_BAD_ACCESS HERE<br class="">}<br class=""><br class="">Has anybody come across something like this, or has any idea what I’m doing wrong here? (Stack trace below).<br class=""><br class="">(I’m stuck with GDAL 1.x until I can figure out how to build 2.x for iOS.)<br class=""><br class="">Thanks,<br class="">Nik.<br class=""><br class=""><br class="">Stack trace (top few only) from debugger console:<br class="">——————————————————<br class="">(lldb) bt<br class="">* thread #1: tid = 0x3117268, 0x0000000102423403 GIST`OGR2SQLITE_Register() + 19 at ogrsqlitevirtualogr.cpp:2460, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x600)<br class=""> * frame #0: 0x0000000102423403 GIST`OGR2SQLITE_Register() + 19 at ogrsqlitevirtualogr.cpp:2460 [opt]<br class=""> frame #1: 0x000000010240a78c GIST`OGRSQLiteDataSource::OpenOrCreateDB(this=0x0000600000193db0, flags=2) + 28 at ogrsqlitedatasource.cpp:455 [opt]<br class=""> frame #2: 0x000000010240b498 GIST`OGRSQLiteDataSource::Open(this=0x0000600000193db0, pszNewName=<unavailable>, bUpdateIn=1) + 180 at ogrsqlitedatasource.cpp:993 [opt]<br class=""> frame #3: 0x000000010240fd96 GIST`OGRSQLiteDriver::Open(this=<unavailable>, pszFilename="/Users/nsands/Library/Developer/CoreSimulator/Devices/6D46D041-C9C3-498B-A918-85036F1A7EB0/data/Containers/Data/Application/18E913B4-E19B-4C62-8910-2ACB4136C361/Documents/Tracks", bUpdate=1) + 262 at ogrsqlitedriver.cpp:165 [opt]<br class=""> frame #4: 0x0000000102401e31 GIST`OGRSFDriverRegistrar::Open(pszName="/Users/nsands/Library/Developer/CoreSimulator/Devices/6D46D041-C9C3-498B-A918-85036F1A7EB0/data/Containers/Data/Application/18E913B4-E19B-4C62-8910-2ACB4136C361/Documents/Tracks", bUpdate=<unavailable>, ppoDriver=<unavailable>) + 227 at ogrsfdriverregistrar.cpp:226 [opt]<br class=""> frame #5: 0x0000000102401f80 GIST`::OGROpen(pszName=<unavailable>, bUpdate=<unavailable>, pahDriverList=<unavailable>) + 35 at ogrsfdriverregistrar.cpp:284 [opt]<br class=""> frame #6: 0x0000000101fdf9cd GIST`-[VectorDataSource initWithURL:](self=0x00006000000269c0, _cmd="initWithURL:", url=@"<a href="file:///Users/nsands/Library/Developer/CoreSimulator/Devices/6D46D041-C9C3-498B-A918-85036F1A7EB0/data/Containers/Data/Application/18E913B4-E19B-4C62-8910-2ACB4136C361/Documents/Tracks" class="">file:///Users/nsands/Library/Developer/CoreSimulator/Devices/6D46D041-C9C3-498B-A918-85036F1A7EB0/data/Containers/Data/Application/18E913B4-E19B-4C62-8910-2ACB4136C361/Documents/Tracks</a>") + 189 at VectorDataSource.m:33<br class=""><br class="">========================================================<br class="">NIK SANDS<br class="">Line Tamer | Time Traveller | Space Cadet<br class=""><br class=""></div></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">========================================================</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">NIK SANDS</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Line Tamer | Time Traveller | Space Cadet</div></div></div></div></div></div>
</div>
<br class=""></div></body></html>