MyLocations V5.0 Running on iPad Mini2 wi-fi only - not timing out

I have been testing MyLocations on my iPad Mini2 wi-fi only.
The main problem that I experience is that when I tap “Get Location”: button text changes to “Stop”
I can get a location and street address, but the “Get Location” never changes back to “Get Location”. It never ‘times out’. (I can get it to time out in the simulator.)

When I switch over to ‘Map’ and tap on the ‘user’ bar button, I can see my ‘pin’ on the map but I can also and can also see the blue dot dancing around.

I have also pressed the ‘Stop’ button and switched over to ‘Map’ but the blue dot is still dancing around.

Is this a situation inherent with wi-fi only? I do not have any other devices available to test.

Thanks, gerry

It’s possible that this particular situation isn’t handled by the code. If you still have the print() statements in the location code, I’d be interested to see what it prints out when you’re using the device and it does not time out (you’d have to have your device connected to your Mac and run the app from Xcode to see these print messages).

Thanks Matthijs,
Here is the print out. I deleted the app from the iPad, and ran my version of Locations with no previous data. This time I did get a '*** Time out ’ message - the first time that has occurred. But the ‘Stop’ never reverted back to ‘Get My Location’.

CoreData: annotation: Connecting to sqlite database file at “/var/mobile/Containers/Data/Application/BF2189B3-0064-4650-90F2-0594D2A658D5/Library/Application Support/DataModel.sqlite”
CoreData: annotation: creating schema.
CoreData: sql: pragma page_size=4096
CoreData: sql: pragma auto_vacuum=2
CoreData: sql: BEGIN EXCLUSIVE
CoreData: sql: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = ‘Z_METADATA’
CoreData: sql: CREATE TABLE ZLOCATION ( Z_PK INTEGER PRIMARY KEY, Z_ENT INTEGER, Z_OPT INTEGER, ZDATE TIMESTAMP, ZLATITUDE FLOAT, ZLONGITUDE FLOAT, ZCATEGORY VARCHAR, ZLOCATIONDESCRIPTION VARCHAR, ZPLACEMARK BLOB )
CoreData: annotation: Creating primary key table.
CoreData: sql: CREATE TABLE Z_PRIMARYKEY (Z_ENT INTEGER PRIMARY KEY, Z_NAME VARCHAR, Z_SUPER INTEGER, Z_MAX INTEGER)
CoreData: sql: INSERT INTO Z_PRIMARYKEY(Z_ENT, Z_NAME, Z_SUPER, Z_MAX) VALUES(1, ‘Location’, 0, 0)
CoreData: sql: CREATE TABLE Z_METADATA (Z_VERSION INTEGER PRIMARY KEY, Z_UUID VARCHAR(255), Z_PLIST BLOB)
CoreData: sql: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = ‘Z_METADATA’
CoreData: sql: DELETE FROM Z_METADATA WHERE Z_VERSION = ?
CoreData: sql: INSERT INTO Z_METADATA (Z_VERSION, Z_UUID, Z_PLIST) VALUES (?, ?, ?)
CoreData: sql: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = ‘Z_MODELCACHE’
CoreData: sql: CREATE TABLE Z_MODELCACHE (Z_CONTENT BLOB)
CoreData: sql: INSERT INTO Z_MODELCACHE (Z_CONTENT) VALUES (?)
CoreData: sql: COMMIT
CoreData: sql: pragma journal_mode=wal
CoreData: sql: pragma recursive_triggers=1
CoreData: sql: pragma journal_mode=wal
CoreData: sql: SELECT Z_VERSION, Z_UUID, Z_PLIST FROM Z_METADATA
CoreData: sql: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = ‘Z_MODELCACHE’
file:///var/mobile/Containers/Data/Application/BF2189B3-0064-4650-90F2-0594D2A658D5/Documents/
CoreData: sql: SELECT 0, t0.Z_PK FROM ZLOCATION t0 ORDER BY t0.ZCATEGORY, t0.ZDATE
CoreData: annotation: sql connection fetch time: 0.0008s
CoreData: annotation: total fetch execution time: 0.0010s for 0 rows.
didUpdatLocations <+61.58730870,-149.44886707> +/- 65.00m (speed -1.00 mps / course -1.00) @ 3/13/17, 9:29:28 AM Alaska Daylight Time
didUpdatLocations <+61.58730870,-149.44886707> +/- 65.00m (speed -1.00 mps / course -1.00) @ 3/13/17, 9:29:19 AM Alaska Daylight Time
didUpdatLocations <+61.58730870,-149.44886707> +/- 65.00m (speed -1.00 mps / course -1.00) @ 3/13/17, 9:29:28 AM Alaska Daylight Time
didUpdatLocations <+61.58739942,-149.45013365> +/- 65.00m (speed -1.00 mps / course -1.00) @ 3/13/17, 9:34:17 AM Alaska Daylight Time
*** Going to Geocode
*** Found placemarks: Optional([101 E Kara Cir, 101 E Kara Cir, Wasilla, AK 99654, United States @ <+61.58751600,-149.45003300> +/- 100.00m, region CLCircularRegion (identifier:’<+61.58747370,-149.45005740> radius 34.32’, center:<+61.58747370,-149.45005740>, radius:34.32m)]), error: nil
101
101 E Kara Cir,
101 E Kara Cir, Wasilla,
101 E Kara Cir, Wasilla, AK
101 E Kara Cir, Wasilla, AK 99654,
101 E Kara Cir, Wasilla, AK 99654, United States
about to return from formatter <NSDateFormatter: 0x17024f540>
2017-03-13 09:34:22.453979 MyLocations2[2329:422537] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-03-13 09:34:22.456280 MyLocations2[2329:422537] [MC] Reading from public effective user settings.
2017-03-13 09:34:28.004303 MyLocations2[2329:422587] 0x170143700 Copy matching assets reply: XPC_TYPE_DICTIONARY <dictionary: 0x170143700> { count = 2, transaction: 0, voucher = 0x0, contents =
“Assets” => <data: 0x17067a9c0>: { length = 236 bytes, contents = 0x62706c6973743030d4010203040506141558247665727369… }
“Result” => <int64: 0x17023f4a0>: 0
}
2017-03-13 09:34:33.130281 MyLocations2[2329:422587] 0x1701432e0 Copy matching assets reply: XPC_TYPE_DICTIONARY <dictionary: 0x1701432e0> { count = 2, transaction: 0, voucher = 0x0, contents =
“Assets” => <data: 0x17447b400>: { length = 6169 bytes, contents = 0x62706c6973743030d4000100020003000400050006023202… }
“Result” => <int64: 0x174236560>: 0
}
2017-03-13 09:34:33.136800 MyLocations2[2329:422587] 0x170142b50 Copy assets attributes reply: XPC_TYPE_DICTIONARY <dictionary: 0x170142b50> { count = 2, transaction: 0, voucher = 0x0, contents =
“Attributes” => <data: 0x17026ad00>: { length = 302 bytes, contents = 0x62706c6973743030d40102030405061a1b58247665727369… }
“Result” => <int64: 0x17023f3c0>: 0
}
2017-03-13 09:34:33.153315 MyLocations2[2329:422587] 0x1701432e0 Copy assets attributes reply: XPC_TYPE_DICTIONARY <dictionary: 0x1701432e0> { count = 3, transaction: 0, voucher = 0x0, contents =
“Attributes” => <data: 0x170868940>: { length = 515 bytes, contents = 0x62706c6973743030d4010203040506232458247665727369… }
“Result” => <int64: 0x17023f280>: 0
“SandboxExtension” => <string: 0x17024ea00> { length = 258, contents = “4b772e94a572f8afa1848bdedb829384fac38af7;00000000;00000000;0000000000000015;com.apple.assets.read;00000001;01000002;00000000010545a5;/private/var/MobileAsset/Assets/com_apple_MobileAsset_LinguisticData/12124144ce3f42648e61a6a8064d2fb9b2d42605.asset/AssetData” }
}
2017-03-13 09:34:33.157724 MyLocations2[2329:422587] 0x174140f20 Copy assets attributes reply: XPC_TYPE_DICTIONARY <dictionary: 0x174140f20> { count = 2, transaction: 0, voucher = 0x0, contents =
“Attributes” => <data: 0x17447bd80>: { length = 302 bytes, contents = 0x62706c6973743030d40102030405061a1b58247665727369… }
“Result” => <int64: 0x1742369a0>: 0
}
2017-03-13 09:34:33.163617 MyLocations2[2329:422587] 0x170142b50 Copy assets attributes reply: XPC_TYPE_DICTIONARY <dictionary: 0x170142b50> { count = 3, transaction: 0, voucher = 0x0, contents =
“Attributes” => <data: 0x170867f40>: { length = 515 bytes, contents = 0x62706c6973743030d4010203040506232458247665727369… }
“Result” => <int64: 0x17023f500>: 0
“SandboxExtension” => <string: 0x17024e790> { length = 258, contents = “52ce048fdb25ff1871a091033e86a2285fc8f348;00000000;00000000;0000000000000015;com.apple.assets.read;00000001;01000002;000000000105459a;/private/var/MobileAsset/Assets/com_apple_MobileAsset_LinguisticData/2e428a59a8c74acf82b249f73fcbbc785b892f69.asset/AssetData” }
}
2017-03-13 09:34:33.168199 MyLocations2[2329:422587] 0x1741418c0 Copy assets attributes reply: XPC_TYPE_DICTIONARY <dictionary: 0x1741418c0> { count = 2, transaction: 0, voucher = 0x0, contents =
“Attributes” => <data: 0x17447c100>: { length = 302 bytes, contents = 0x62706c6973743030d40102030405061a1b58247665727369… }
“Result” => <int64: 0x1742367c0>: 0
}
2017-03-13 09:34:33.172291 MyLocations2[2329:422587] 0x1741425d0 Copy assets attributes reply: XPC_TYPE_DICTIONARY <dictionary: 0x1741425d0> { count = 3, transaction: 0, voucher = 0x0, contents =
“Attributes” => <data: 0x17447ca00>: { length = 515 bytes, contents = 0x62706c6973743030d4010203040506232458247665727369… }
“Result” => <int64: 0x174236880>: 0
“SandboxExtension” => <string: 0x1742436c0> { length = 258, contents = “14b21789ae54b4b3a75d43f8516130035d19ff14;00000000;00000000;0000000000000015;com.apple.assets.read;00000001;01000002;00000000014e57c4;/private/var/MobileAsset/Assets/com_apple_MobileAsset_LinguisticData/fe1bc1f2e8c52a987b179fc9cd2f3ee6bf9aca10.asset/AssetData” }
}
didFailWitError Error Domain=kCLErrorDomain Code=0 “(null)”
*** controllerWillChangeContent
*** NSFetchedResultsChangeInsert (section)
*** NSFetchedResultsChangeInsert (object)
*** controllerDidChangeContent
CoreData: sql: BEGIN EXCLUSIVE
CoreData: sql: SELECT Z_MAX FROM Z_PRIMARYKEY WHERE Z_ENT = ?
CoreData: sql: UPDATE OR FAIL Z_PRIMARYKEY SET Z_MAX = ? WHERE Z_ENT = ? AND Z_MAX = ?
CoreData: sql: COMMIT
CoreData: sql: BEGIN EXCLUSIVE
CoreData: sql: INSERT INTO ZLOCATION(Z_PK, Z_ENT, Z_OPT, ZCATEGORY, ZDATE, ZLATITUDE, ZLOCATIONDESCRIPTION, ZLONGITUDE, ZPLACEMARK) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)
CoreData: sql: COMMIT
CoreData: sql: pragma page_count
CoreData: annotation: sql execution time: 0.0002s
CoreData: sql: pragma freelist_count
CoreData: annotation: sql execution time: 0.0001s
CoreData: sql: SELECT 0, t0.Z_PK, t0.Z_OPT, t0.ZCATEGORY, t0.ZDATE, t0.ZLATITUDE, t0.ZLOCATIONDESCRIPTION, t0.ZLONGITUDE, t0.ZPLACEMARK FROM ZLOCATION t0
CoreData: annotation: sql connection fetch time: 0.0005s
CoreData: annotation: total fetch execution time: 0.0036s for 1 rows.
didUpdatLocations <+61.58739942,-149.45013365> +/- 65.00m (speed -1.00 mps / course -1.00) @ 3/13/17, 9:34:17 AM Alaska Daylight Time
*** Time out
Have a good day, It is a beautiful, cold and windy morning here.

Gerry

I’m not sure why you say it’s not timing out as the log clearly shows: