Image loading gets stuck

I have an app where, if I turn on Behavior --> Offline/Sync --> Offline use --> Store content for offline use, the image loading gets stuck:

Screenshot_20220824-165752.png

This is where it stops -- the last 5 images never load.  On my iPhone I think this issue caused my device to overheat.  I discussed that in this thread:
https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/App-makes-my-iPhone-hot/m-p/448809/highlight/tr...

My question is, have any of you encountered a similar situation with some image or expression causes the image loading process to get stuck like this?  I don't have a situation where an image I have put in fails to display.  Rather, some image I haven't been able to identify just won't load.


Solved Solved
0 8 408
1 ACCEPTED SOLUTION

My QuickChart URLs are working now but I always write them to my sheet with an action in order to avoid the "expense" of the virtual column.  In regard to the "Store content for offline use" issue, I decided to replace my interface images with SVG images, thereby getting the functionality of "Store content for offline use" for those images while not needing to use the function:

https://www.googlecloudcommunity.com/gc/Tips-Tricks/Using-SVG-quot-interface-quot-images/m-p/504387

Doing so allowed me to avoid the issue I posted about here.

View solution in original post

8 REPLIES 8

Steve
Platinum 4
Platinum 4

Please contact AppSheet Support for help with this.

Thanks!  I should have mentioned it earlier but I have contacted them.  My first interaction went nowhere -- never got a substantive response about the actual issue -- so I opened a second ticket.   I'm currently waiting for a substantive response in the new ticket.  I thought I'd ask if anyone had experienced a similar problem in part to give more information to the engineer who might wind up looking at this for me.

One more footnote:  I think I've been having this problem for a long, long time -- perhaps years.  But, after an app opens for the first time, the "Loading images" bar is hidden.  So, I think other people might have the problem and not realize it if they didn't notice it the first time.

Escalated.

Thanks so much @Steve .  @Aleksi is helping me now.  I'm in good hands and very grateful.  😂

With @Aleksi's prompting, I was able to determine that the following kind of QuickChart URL was not loading: 

 

https://quickchart.io/chart?c={type:%22scatter%22,data:{datasets:[{label:%22Data2%22,showLine:true,steppedLine:true,fill:false,lineTension:0,pointStyle:%27line%27,borderWidth:1,pointRotation:90,radius:20,pointRadius:15,borderColor:%27black%27,data:[{x:1870%20,y:3,},{x:%201874%20,y:3,},{x:%201881%20,y:3,},{x:%201894%20,y:3,},{x:%201915%20,y:3,},{x:%201951,y:3,}],},%20{label:%22Data5%22,showLine:false,steppedLine:true,pointStyle:%27line%27,fill:false,lineTension:0,pointRadius:110,pointRotation:90,borderWidth:3,radius:3,borderColor:%27lightblue%27,data:[{x:1870,y:3,}],},],},options:{legend:{display:false,position:%27bottom%27,labels:{fontSize:20,fontStyle:%27bold%27,}},scales:{yAxes:[{scaleLabel:{display:true,labelString:%27Schedule%20Sample%27,},ticks:{min:1,max:5,display:false,reverse:true,stepSize:1,}}],xAxes:[{scaleLabel:{display:true,labelString:%27Session%20numbers%27,},}],}}}

 

It's valid but the length seems to be a problem.

So, now I know what is causing the problem.  We may know in the next few days or so if there's a workaround.  I really want to keep these QuickChart URLs in my app because they serve an important function.  My current work around is to turn off the "load image for offline" (or whatever it's called) function.  I hope to be able to have both my QuickChart images and image loading someday in the future.

Did you ever get a resolution regarding long URLs not working from an app? I'm encountering an issue that may or may not have the same root cause.

I have a virtual column whose expression generates a QuickChart URL. When I test the expression and copy the URL generated, I can use it to access my intended chart. However, within the app that column always returns an error from QuickChart, which makes me think the URL the app is actually using is somehow truncated or otherwise corrupted.

FWIW, I don't even have Store content for offline use enabled.

My QuickChart URLs are working now but I always write them to my sheet with an action in order to avoid the "expense" of the virtual column.  In regard to the "Store content for offline use" issue, I decided to replace my interface images with SVG images, thereby getting the functionality of "Store content for offline use" for those images while not needing to use the function:

https://www.googlecloudcommunity.com/gc/Tips-Tricks/Using-SVG-quot-interface-quot-images/m-p/504387

Doing so allowed me to avoid the issue I posted about here.

Thanks, Kirk.

FYI, I realize now that in my comment I actually conflated (at least) two very separate issues related to QuickChart that I'm currently troubleshooting. I'll get it sorted it out in my head and post new questions if I don't find resolutions. Anyway, anyone who found their way here should just ignore my prior comment--it doesn't accurately describe what I'm observing.

Top Labels in this Space