I am getting a "maximum call stack size exceeded" error on my app when using an iOS device and the Powerapps app that causes galleries to go blank. It doesn't happen on desktop.
The app is fairly simple. It shows 2 galleries. The first gallery displays about 40-50 items, the second gallery displays 1-3 items. The galleries are tied to a collection that is formed from combining 4 collections using a lookup field. Each individual collection has about 500 records in it. The app refreshes the data every 90 seconds and recollects the combined collection, and when it does, the first gallery with ~50 items goes blank and the error message shows. The second gallery usually doesn't have a problem. Changing the refresh duration doesn't seem to make a difference. The app starts up just fine, the problem only occurs when refreshing.
How do you refresh data within your app? Could you please share a bit more about the formula you used?
Do you mean that this issue occurs within your iOS device rather than Desktop?
Based on the error message that you mentioned, I think this issue may be related to the available RAM in your iOS device.
Please make sure you have enough RAM in your iOS device to run your PowerApps app. You could consider close other applications in your device, just run the PowerApps Mobile App, check if the issue is solved.
The user @NikoClau has faced same issue with you, please check the response within the following thread:
On your side, please also consider set the "Data row limits for Non-delegable queries" option to maximum value -- 2000, then re-publish your app, try your app in your iOS device again, check if the issue is solved.
Community Support Team _ Kris Dai If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.