sunlightlabs / congress-ios

iOS app for tracking and contacting your legislators, and learning about new bills and laws.
http://congress.sunlightfoundation.com
Other
46 stars 22 forks source link

RMTileCache issues causing view loading delay? #424

Closed dcloud closed 9 years ago

dcloud commented 10 years ago

Seeing this when building for device:

2014-11-03 18:16:13.162 Congress[8529:3275107] Using watermarked example map ID examples.map-z2effxa8. Please go to https://mapbox.com and create your own map style.
2014-11-03 18:16:13.164 Congress[8529:3275107] Memory cache configuration: {capacity : 32}
2014-11-03 18:16:13.164 Congress[8529:3275107] initializing memory cache <RMMemoryCache: 0x174622b00> with capacity 32
2014-11-03 18:16:13.164 Congress[8529:3275107] Database cache configuration: {capacity : 1000, strategy : FIFO, minimalPurge : 100, expiryPeriod: 0, useCacheDir : NO}
2014-11-03 18:16:13.165 Congress[8529:3275107] Opening database at /var/mobile/Containers/Data/Application/40250FBE-EDEB-4F49-B24E-C4D5325A546E/Documents/RMTileCache.db
2014-11-03 18:16:13.166 Congress[8529:3275107] DB Error: 1 "near "-": syntax error"
2014-11-03 18:16:13.166 Congress[8529:3275107] DB Query: PRAGMA cache-size=100
2014-11-03 18:16:13.167 Congress[8529:3275107] DB Path: /var/mobile/Containers/Data/Application/40250FBE-EDEB-4F49-B24E-C4D5325A546E/Documents/RMTileCache.db

This is after pressing the map button to make SFLocalLegislatorsViewController load, so it looks like this DB issue may cause a delay in the view appearing.

dcloud commented 10 years ago

Tracking against https://github.com/mapbox/mapbox-ios-sdk/issues/527.

Sounds like not a cause of view render delay.

dcloud commented 10 years ago

This comment is correct. The DB query in RMDatabaseCache.m, PRAGMA cache-size=100, should be an underscore. This means the cache size isn't getting set.

dcloud commented 9 years ago

Should be fixed as of bd8e562 where we updated to Mapbox 1.6