devscoutsweden / aktivitetsbanken-android

2 stars 0 forks source link

Problem with loading favourites directly after logging in or starting #100

Closed mikaelsvensson closed 9 years ago

mikaelsvensson commented 9 years ago

Det verkar finnas något sorts timing-problem om man först loggar in i appen och sedan växlar över till favoriter-fliken innan appen har hämtat information om alla användarens favoriter.

Loggade fel som kan vara av intresse:

Fellogg från app:

App version: 0.1 (10) Android release: 4.0.4 Device: SEMC ST25i ST25i ST25i_1262-3293

23:01:38.385 [thread 1] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Wants to display one of http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=854, http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=480, http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=180 in an image view.

23:01:38.394 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Progress view has been hidden and list view has been shown.

23:01:38.397 [thread 1] se.devscout.android.view.NonBlockingSearchView: Measurements: | 0 ms Starting stopwatch SearchTask | 0 ms initExceptionLogging done | 0 ms Start of onPreExecute | 0 ms End of onPreExecute | 195 ms Start of doSearch | 0 ms Acquired ActivityBank | 190 ms Query server | 374 ms Added search to history | 0 ms Created list items | 0 ms End of doSearch | 6 ms Start of onPostExecute | 52 ms End of onPostExecute | 819 ms Total

23:01:38.533 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 6 ms Received 3103 bytes from server. | 6 ms Total

23:01:38.534 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_andakt_stilla_stund.png | 0 ms Connection has been opened | 0 ms Data sent | 315 ms Read 6144 bytes from connection. | 0 ms Done | 315 ms Total

23:01:38.539 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-6dabc6074dc9ddbb4eddc7b22b6de733

23:01:38.539 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_andakt_stilla_stund.png

23:01:38.544 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:38.900 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 0 ms Received 1083 bytes from server. | 0 ms Total

23:01:38.901 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_cermonier.png | 0 ms Connection has been opened | 0 ms Data sent | 354 ms Read 3072 bytes from connection. | 0 ms Done | 354 ms Total

23:01:38.903 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-7112799483b4a4bfc596c40bad192c1b

23:01:38.904 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_cermonier.png

23:01:38.904 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:39.026 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 23 ms Received 6734 bytes from server. | 23 ms Total

23:01:39.033 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_diskussioner.png | 0 ms Connection has been opened | 0 ms Data sent | 121 ms Read 11264 bytes from connection. | 0 ms Done | 121 ms Total

23:01:39.381 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-c9cf140711211f069a4d68355965be14

23:01:39.382 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_diskussioner.png

23:01:39.382 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:39.490 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 22 ms Received 3503 bytes from server. | 22 ms Total

23:01:39.491 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_friluftsliv_land.png | 0 ms Connection has been opened | 0 ms Data sent | 107 ms Read 6144 bytes from connection. | 0 ms Done | 107 ms Total

23:01:39.626 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-9052dc5100a200b5f822a6fcdc26ed2d

23:01:39.626 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_friluftsliv_land.png

23:01:39.627 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:39.739 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 9 ms Received 3699 bytes from server. | 9 ms Total

23:01:39.740 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_friluftsliv_vatten.png | 0 ms Connection has been opened | 0 ms Data sent | 108 ms Read 7168 bytes from connection. | 0 ms Done | 108 ms Total

23:01:39.744 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-f8b2c8ac9fa48ccc722f8259bdc23307

23:01:39.744 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_friluftsliv_vatten.png

23:01:39.744 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:39.852 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 14 ms Received 4749 bytes from server. | 14 ms Total

23:01:39.854 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_hajk.png | 0 ms Connection has been opened | 0 ms Data sent | 106 ms Read 8192 bytes from connection. | 0 ms Done | 106 ms Total

23:01:39.857 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-0bbad68828d6a1e817db4678dd329eeb

23:01:39.858 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_hajk.png

23:01:39.858 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:39.971 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 16 ms Received 5291 bytes from server. | 16 ms Total

23:01:39.971 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_hantverk_pyssel.png | 0 ms Connection has been opened | 0 ms Data sent | 112 ms Read 9216 bytes from connection. | 0 ms Done | 112 ms Total

23:01:39.975 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-b11f5332d90e945277fcca8456ea768c

23:01:39.975 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_hantverk_pyssel.png

23:01:39.983 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:40.130 [thread 4531] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 33 ms Received 7395 bytes from server. | 33 ms Total

23:01:40.131 [thread 4531] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_lgerbl.png | 0 ms Connection has been opened | 0 ms Data sent | 146 ms Read 10240 bytes from connection. | 0 ms Done | 146 ms Total

23:01:40.282 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Saved data as /data/data/se.devscout.android/cache/image-cache-4306e9ef61b80b2cc820b37cb97d75aa

23:01:40.282 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Downloaded image from http://www.mikaelsvensson.info/scoutapi/media/category_upplgg_lgerbl.png

23:01:40.282 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:40.286 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Because of earlier failure, downloading http://devscout.mikaelsvensson.info:10081/api/v1/media_files/59/file?size=854 will not be reattempted. The earlier failure was caused by a se.devscout.android.util.http.ContentTooLongException.

23:01:40.302 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Retrieved http://devscout.mikaelsvensson.info:10081/api/v1/media_files/59/file?size=480 from cache.

23:01:40.541 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:40.550 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Retrieved http://devscout.mikaelsvensson.info:10081/api/v1/media_files/13/file?size=854 from cache.

23:01:40.712 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:40.716 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Because of earlier failure, downloading http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=854 will not be reattempted. The earlier failure was caused by a se.devscout.android.util.http.ContentTooLongException.

23:01:40.717 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Because of earlier failure, downloading http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=480 will not be reattempted. The earlier failure was caused by a se.devscout.android.util.http.ContentTooLongException.

23:01:40.719 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Retrieved http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=180 from cache.

23:01:40.729 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:40.734 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Because of earlier failure, downloading http://devscout.mikaelsvensson.info:10081/api/v1/media_files/59/file?size=854 will not be reattempted. The earlier failure was caused by a se.devscout.android.util.http.ContentTooLongException.

23:01:40.735 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Retrieved http://devscout.mikaelsvensson.info:10081/api/v1/media_files/59/file?size=480 from cache.

23:01:40.751 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:40.753 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Retrieved http://devscout.mikaelsvensson.info:10081/api/v1/media_files/13/file?size=854 from cache.

23:01:40.888 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:40.890 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Because of earlier failure, downloading http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=854 will not be reattempted. The earlier failure was caused by a se.devscout.android.util.http.ContentTooLongException.

23:01:40.923 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Because of earlier failure, downloading http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=480 will not be reattempted. The earlier failure was caused by a se.devscout.android.util.http.ContentTooLongException.

23:01:40.925 [thread 4531] se.devscout.android.util.concurrency.BackgroundTasksHandlerThread: Retrieved http://devscout.mikaelsvensson.info:10081/api/v1/media_files/79/file?size=180 from cache.

23:01:40.971 [thread 4531] se.devscout.android.util.concurrency.CleanImageCacheTaskExecutor: Will not purge image cache since it has been less than one minute since the last clean-up.

23:01:46.402 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Saving state

23:01:46.402 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: State saved

23:01:46.405 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Saving state

23:01:46.405 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: State saved

23:01:46.405 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Saving state

23:01:46.405 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: State saved

23:01:57.118 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Saving state

23:01:57.118 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: State saved

23:01:57.121 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Saving state

23:01:57.121 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: State saved

23:01:57.121 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Saving state

23:01:57.121 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: State saved

23:02:27.334 [thread 4530] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:27.358 [thread 4530] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:27.361 [thread 1] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:27.426 [thread 1] se.devscout.android.model.repo.sql.DatabaseHelper: SQLiteQuery: SELECT id, server_id, server_revision_id, display_name, api_key FROM user

23:02:27.479 [thread 4530] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:27.480 [thread 4530] se.devscout.android.util.http.HttpRequest: Header Authorization: Token token="eyJhbGciOiJSUzI1NiIsImtpZCI6ImM5NWQ3ZGE0NjY3OTA4NjEwYWI1NWUwZmU4NDE1M2ZjMjFlOGUwNGEifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTExNzE0NzM0NzI3NjAwNDc5MDIzIiwiYXpwIjoiNTUxNzEzNzM2NDEwLTI0cWMwcTMzaGtxNDNzZWJmdjNyN2RpbzZoMHRvdHE4LmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJtaWthZWwua2plbGwuc3ZlbnNzb25AZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImF1ZCI6IjU1MTcxMzczNjQxMC1xNTVvbWZvYmdzOWo4aWE0YWUzcjdzYmkyMHZjdnQ0OS5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbSIsImlhdCI6MTQyOTMwNDUyMSwiZXhwIjoxNDI5MzA4MTIxfQ.0-IFcQWS5dUP_m0eZOV9RNPeXQq-KM0MMzFPUkpoLXeLqSboO8mTn44qjaTTmlC0j8IUuuPgNcfJJwqNDvClZN_cn1ZOPWJcntEVtNQuEcDzkPAuypIcxHlOJU5wzyBLyJlzkCE0WuJzKF3VgekKnbau0hO3Uqlt6HDjpTlbaT8", type="google"

23:02:27.480 [thread 4530] se.devscout.android.util.http.HttpRequest: Sending request to http://devscout.mikaelsvensson.info:10081/api/v1/users/profile

23:02:27.500 [thread 4530] se.devscout.android.util.http.StringRequestBodyStreamHandler: Measurements: | 0 ms Starting stopwatch Writing to stream | 0 ms Sent 76 bytes to server. | 0 ms Total

23:02:27.543 [thread 4530] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:27.545 [thread 4530] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://devscout.mikaelsvensson.info:10081/api/v1/users/profile | 0 ms Connection has been opened | 19 ms Data sent | 43 ms Done | 62 ms Total

23:02:27.546 [thread 4530] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:27.546 [thread 4530] se.devscout.android.util.http.HttpRequest: Header Authorization: Token token="XYZ", type="apikey"

23:02:27.547 [thread 4530] se.devscout.android.util.http.HttpRequest: Sending request to http://devscout.mikaelsvensson.info:10081/api/v1/favourites

23:02:27.585 [thread 4530] se.devscout.android.util.http.ByteArrayResponseStreamHandler: Measurements: | 0 ms Starting stopwatch Reading stream | 0 ms Received 183 bytes from server. | 0 ms Total

23:02:27.589 [thread 4530] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://devscout.mikaelsvensson.info:10081/api/v1/favourites | 0 ms Connection has been opened | 0 ms Data sent | 38 ms Read 522 bytes from connection. | 1 ms Done | 39 ms Total

23:02:27.589 [thread 4530] se.devscout.android.model.repo.remote.RemoteActivityRepoImpl: Server response: [14,15,59,68,82,91,119,132,137,157,165,185,188,196,231,236,246,253,266,280,332,345,353,401,404,447,512,542,546,562,574,586,661,663,690,697,705,787,795,800,817,822,823,840,877,936,985]

23:02:27.597 [thread 4530] se.devscout.android.model.repo.remote.RemoteActivityRepoImpl: Measurements: | 0 ms Starting stopwatch getJSONArray from http://devscout.mikaelsvensson.info:10081/api/v1/favourites | 43 ms Fetched 183 characters of data | 5 ms Parsed data | 48 ms Total

23:02:27.617 [thread 4530] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:27.617 [thread 4530] se.devscout.android.util.http.HttpRequest: Header Authorization: Token token="XYZ", type="apikey"

23:02:27.617 [thread 4530] se.devscout.android.util.http.HttpRequest: Sending request to http://devscout.mikaelsvensson.info:10081/api/v1/activities?id=14%2C15%2C59%2C68%2C82%2C91%2C119%2C132%2C137%2C157%2C165%2C185%2C188%2C196%2C231%2C236%2C246%2C253%2C266%2C280%2C332%2C345%2C353%2C401%2C404%2C447%2C512%2C542%2C546%2C562%2C574%2C586%2C661%2C663%2C690%2C697%2C705%2C787%2C795%2C800%2C817%2C822%2C823%2C840%2C877%2C936%2C985

23:02:34.228 [thread 1] se.devscout.android.util.auth.CredentialsManager: Getting current_user_id = 1

23:02:34.741 [thread 1] se.devscout.android.controller.fragment.ActivitiesListFragment: Progress view has been hidden and list view has been shown.

23:02:37.629 [thread 4530] se.devscout.android.util.http.HttpRequest: Http request #18 failed because of timeout #1. Wait: 10010 ms. URL: http://devscout.mikaelsvensson.info:10081/api/v1/activities?id=14%2C15%2C59%2C68%2C82%2C91%2C119%2C132%2C137%2C157%2C165%2C185%2C188%2C196%2C231%2C236%2C246%2C253%2C266%2C280%2C332%2C345%2C353%2C401%2C404%2C447%2C512%2C542%2C546%2C562%2C574%2C586%2C661%2C663%2C690%2C697%2C705%2C787%2C795%2C800%2C817%2C822%2C823%2C840%2C877%2C936%2C985 java.net.SocketTimeoutException at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491) at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46) at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240) at java.io.InputStream.read(InputStream.java:163) at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142) at java.io.BufferedInputStream.read(BufferedInputStream.java:227) at libcore.io.Streams.readAsciiLine(Streams.java:201) at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:544) at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:791) at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:479) at se.devscout.android.util.http.HttpRequest.run(HttpRequest.java:74) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.readUrl(RemoteActivityRepoImpl.java:974) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.readUrlAsBytes(RemoteActivityRepoImpl.java:918) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.readUrlAsString(RemoteActivityRepoImpl.java:905) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.getJSONArray(RemoteActivityRepoImpl.java:714) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.findActivities(RemoteActivityRepoImpl.java:492) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.synchronizeFavourites(RemoteActivityRepoImpl.java:321) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.onAuthenticated(RemoteActivityRepoImpl.java:231) at se.devscout.android.util.auth.CredentialsManager.fireAuthenticated(CredentialsManager.java:164) at se.devscout.android.util.auth.CredentialsManager.onLogInDone(CredentialsManager.java:57) at se.devscout.android.util.auth.GoogleAuthenticationStrategy$2.doInBackground(GoogleAuthenticationStrategy.java:218) at se.devscout.android.util.auth.GoogleAuthenticationStrategy$2.doInBackground(GoogleAuthenticationStrategy.java:203) at android.os.AsyncTask$2.call(AsyncTask.java:264) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856)

23:02:37.631 [thread 4530] se.devscout.android.util.http.HttpRequest: Measurements: | 0 ms Starting stopwatch readUrl http://devscout.mikaelsvensson.info:10081/api/v1/activities?id=14%2C15%2C59%2C68%2C82%2C91%2C119%2C132%2C137%2C157%2C165%2C185%2C188%2C196%2C231%2C236%2C246%2C253%2C266%2C280%2C332%2C345%2C353%2C401%2C404%2C447%2C512%2C542%2C546%2C562%2C574%2C586%2C661%2C663%2C690%2C697%2C705%2C787%2C795%2C800%2C817%2C822%2C823%2C840%2C877%2C936%2C985 | 0 ms Connection has been opened | 0 ms Data sent | 10,010 ms Http request failed because of socket timeout after roughly 10010 ms. | 0 ms Done | 10,011 ms Total

23:02:37.753 [thread 4530] se.devscout.android.model.repo.remote.RemoteActivityRepoImpl: Could not search for activities java.net.SocketTimeoutException at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491) at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46) at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240) at java.io.InputStream.read(InputStream.java:163) at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142) at java.io.BufferedInputStream.read(BufferedInputStream.java:227) at libcore.io.Streams.readAsciiLine(Streams.java:201) at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:544) at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:791) at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274) at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:479) at se.devscout.android.util.http.HttpRequest.run(HttpRequest.java:74) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.readUrl(RemoteActivityRepoImpl.java:974) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.readUrlAsBytes(RemoteActivityRepoImpl.java:918) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.readUrlAsString(RemoteActivityRepoImpl.java:905) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.getJSONArray(RemoteActivityRepoImpl.java:714) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.findActivities(RemoteActivityRepoImpl.java:492) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.synchronizeFavourites(RemoteActivityRepoImpl.java:321) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.onAuthenticated(RemoteActivityRepoImpl.java:231) at se.devscout.android.util.auth.CredentialsManager.fireAuthenticated(CredentialsManager.java:164) at se.devscout.android.util.auth.CredentialsManager.onLogInDone(CredentialsManager.java:57) at se.devscout.android.util.auth.GoogleAuthenticationStrategy$2.doInBackground(GoogleAuthenticationStrategy.java:218) at se.devscout.android.util.auth.GoogleAuthenticationStrategy$2.doInBackground(GoogleAuthenticationStrategy.java:203) at android.os.AsyncTask$2.call(AsyncTask.java:264) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856)

23:02:37.790 [thread 4530] se.devscout.android.model.repo.remote.RemoteActivityRepoImpl: Measurements: | 0 ms Starting stopwatch findActivity SERVERID-14,15,59,68,82,91,119,132,137,157,165,185,188,196,231,236,246,253,266,280,332,345,353,401,404,447,512,542,546,562,574,586,661,663,690,697,705,787,795,800,817,822,823,840,877,936,985 | 0 ms Preparing request | 10,173 ms The last things | 10,173 ms Total

23:02:38.407 [thread 4530] se.devscout.android.util.LogUtil: Thread 'AsyncTask #4' (id: 4530) crashed due to uncaught java.lang.RuntimeException java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:278) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) at java.util.concurrent.FutureTask.run(FutureTask.java:137) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856) Caused by: java.lang.UnsupportedOperationException: Cannot search for activities based on server-side identifiers in local database. at se.devscout.android.model.repo.sql.SQLActivityFilterVisitor.visit(SQLActivityFilterVisitor.java:74) at se.devscout.android.model.repo.sql.SQLActivityFilterVisitor.visit(SQLActivityFilterVisitor.java:9) at se.devscout.android.model.repo.remote.RemoteServerObjectIdentifiersFilter.visit(RemoteServerObjectIdentifiersFilter.java:21) at se.devscout.android.model.repo.sql.DatabaseHelper.readActivities(DatabaseHelper.java:612) at se.devscout.android.model.repo.sql.SQLiteActivityRepo.findActivity(SQLiteActivityRepo.java:36) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.findActivities(RemoteActivityRepoImpl.java:527) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.synchronizeFavourites(RemoteActivityRepoImpl.java:321) at se.devscout.android.model.repo.remote.RemoteActivityRepoImpl.onAuthenticated(RemoteActivityRepoImpl.java:231) at se.devscout.android.util.auth.CredentialsManager.fireAuthenticated(CredentialsManager.java:164) at se.devscout.android.util.auth.CredentialsManager.onLogInDone(CredentialsManager.java:57) at se.devscout.android.util.auth.GoogleAuthenticationStrategy$2.doInBackground(GoogleAuthenticationStrategy.java:218) at se.devscout.android.util.auth.GoogleAuthenticationStrategy$2.doInBackground(GoogleAuthenticationStrategy.java:203) at android.os.AsyncTask$2.call(AsyncTask.java:264) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) ... 5 more