# Spinner loading forever without text (core v3.11.0)

**URL:** <https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680>\
**Category:** Technical Support\
**Created:** [January 27, 2022, 1:32pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680 "2022-01-27T13:32:17Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [January 27, 2022, 1:32pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/1 "2022-01-27T13:32:17Z")

</div>

I’m running a 3.11.0 system with Android v0.8.0-5-webview. A user is complaining that is “app is slow”. When I open the app on this user’s device, I see a white screen with no text and a spinner. I’ve waited nearly 5 minutes and nothing changes (no text, no page load, etc).

Is this is a known problem? Will it be solved by upgrading to v3.13?

If I close the app and turn off mobile data, then open the app - it starts almostly instantly. But this is serious problem here - people are seeing the spinner forever and assume the app is broken and they are uninstalling the app. Then users don’t have the tools available to re-install and several users have been locked out of the system for multiple months.

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 27, 2022, 2:45pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/2 "2022-01-27T14:45:33Z")

</div>

Hi @kenn

There are a couple of startup tasks that only happen when the user is online, for example purging. Is purging set up for this instance?

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 27, 2022, 2:51pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/3 "2022-01-27T14:51:11Z")

</div>

Also, is the server online and responding to requests?

---

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [January 27, 2022, 5:15pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/4 "2022-01-27T17:15:34Z")

</div>

I believe purging is not enabled (there is no purgelog). There is no text at any point in the UI. The server is responding.

I can shut down the app, turn off mobile data (but i believe he has no mobile data credit), and start the app again. If I do this, the app fires right up.  
[Here is a video](https://youtu.be/_0Kx2uTOV2Q)

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 27, 2022, 5:33pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/5 "2022-01-27T17:33:02Z")

</div>

Thanks!  
The fact that turning off your internet connection makes the app start, I’m tempted to believe some server request hangs and we don’t implement a timeout on webapp-side.

Can you access the server from a browser on your device?

---

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [January 27, 2022, 5:50pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/6 "2022-01-27T17:50:34Z")

</div>

Yes I can access the server. I synced and logged in as new users multiple times throughout the day on other devices/connections. [https://vhtapp.cphluganda.org/](https://vhtapp.cphluganda.org/) It is self-hosted and a bit slow but was stable today AFAIK.

I’ve also been using the server today (before and after this video) as an online user to create user accounts and manage hierarchy.

---

<div class="post-metadata">

**Author:** ![mrjones](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/mrjones/32/681_2.png) [@mrjones](https://forum.communityhealthtoolkit.org/u/mrjones)\
**Post date:** [January 27, 2022, 5:58pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/7 "2022-01-27T17:58:40Z")

</div>

Is there a possibility the phone or the phone’s cellular provider is having some connectivity issues? Are you able to log into [https://vhtapp.cphluganda.org/](https://vhtapp.cphluganda.org/) via the phone’s chrome browser while on the same data connection that the app has trouble with?

---

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [January 27, 2022, 6:02pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/8 "2022-01-27T18:02:00Z")

</div>

This user is back in the community with their device. I don’t have the repro with me anymore and so I cannot perform this test.

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 27, 2022, 6:19pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/9 "2022-01-27T18:19:12Z")

</div>

When accessing [https://vhtapp.cphluganda.org/](https://vhtapp.cphluganda.org/) it took 36 seconds to download the `main.js` file on my desktop connection (under 1MB).  
 ![image](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/8/842a97a53303085358ffa6fbbf86dfc259e80e91.png)

I’m not sure how it affects local connections. I still suspect a hanging request without a timeout stalling app bootstrap.

---

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [January 27, 2022, 6:24pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/10 "2022-01-27T18:24:41Z")

</div>

I’m in Uganda co-located with server (like users) and main.js downloads in under 1 second from my desktop. I remember it being very slow when doing this from Canada. I’m surprised at this difference. I guess it is some kind of complex series of tubes?

I didn’t wait more than 3 or 4 minutes in any of my tests - maybe it loads eventually (?)

Regardless of connection - is this a problem with CHT? How long is reasonable to wait? 3 minutes felt unreasonable without any feedback. Anecdotally, users here are uninstalling the app when this happens (mentioned above).

---

<div class="post-metadata">

**Author:** ![mrjones](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/mrjones/32/681_2.png) [@mrjones](https://forum.communityhealthtoolkit.org/u/mrjones)\
**Post date:** [January 27, 2022, 8:44pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/11 "2022-01-27T20:44:47Z")

</div>

@diana I’m seeing what I find to be odd results with this test command to download the `main.js` file :

```bash
curl -o /dev/null https://vhtapp.cphluganda.org/main.js

```

```bash
device connection time speed
desktop LAN 5s 501k/s
laptop WiFi 22s 130k/s
mobile Cellular 4m55s 9.9k/s

```

The jump from 5s to 4m55s seems HUGE!? I’m located in the western part of the United States, for reference.

Here’s the same chart testing against [gamma.dev.medicmobile.org](http://gamma.dev.medicmobile.org):

```bash
device connection time speed
desktop LAN 1s 1692k/s
laptop WiFi 7s 416k/s
mobile Cellular 5s 580k/s

```

@kenn - Maybe you could find a similar mobile device that is using the same connection (cellular data I assume?) to see if you get comparable results?

---

<div class="post-metadata">

**Author:** ![mrjones](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/mrjones/32/681_2.png) [@mrjones](https://forum.communityhealthtoolkit.org/u/mrjones)\
**Post date:** [January 27, 2022, 9:44pm UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/12 "2022-01-27T21:44:26Z")

</div>

I was chatting with an Internet infrastructure friend about this problem and he suggested that some mobile carriers can send data on their network not only out of country, but some times out of continent to reach it’s final destination. If this was the case for @kenn’s test phone, the Desktop mentioned above from one ISP could take only 1s to download, but then a phone on mobile data could be MUCH slower.

Also - for those following along in this thread - understanding the **cause of the spinner loading forever** is different than the **fix of the spinner loading forever**. Once we understand the former, we can hopeful put in defensive code in the CHT for a better UX to provide for the latter.

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 28, 2022, 4:31am UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/13 "2022-01-28T04:31:42Z")

</div>

> [@kenn](#):
>
> Regardless of connection - is this a problem with CHT? How long is reasonable to wait? 3 minutes felt unreasonable without any feedback.

It might be with the CHT (server might not respond) or there might be a network problem.  
It would be reasonable to add client-side timeouts to server requests done at bootstrap. Not sure about the UI, is a message “loading, please wait” or “waiting for connection” better than just the spinner?

Added an issue to track this: [User stuck on spinner on app load on a poor connection · Issue #7492 · medic/cht-core · GitHub](https://github.com/medic/cht-core/issues/7492)

---

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [January 28, 2022, 8:19am UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/14 "2022-01-28T08:19:38Z")

</div>

I think a timeout is reasonable. This current experience isn’t very _offline first_. I can reproduce this fairly consistently on other phones here in Jinja today.

---

<div class="post-metadata">

**Author:** ![kenn](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/kenn/32/55_2.png) [@kenn](https://forum.communityhealthtoolkit.org/u/kenn)\
**Post date:** [May 4, 2022, 6:36am UTC](https://forum.communityhealthtoolkit.org/t/spinner-loading-forever-without-text-core-v3-11-0/1680/15 "2022-05-04T06:36:53Z")

</div>

This is fixed in 3.15.0
