I have a Flutter application using Flutter version 2.0.4. The application is set up for Android and iOS. The application is running fine since a self-defined search function is called which is communicating with Google Firestore. When I start searching, the following error occurs and the app stops responding.
[VERBOSE-2:profiler_metrics_ios.mm(203)] Error retrieving thread information: (os/kern) invalid argument Exhausted heap space, trying to allocate 8589934608 bytes. Exhausted heap space, trying to allocate 8589934608 bytes. Exhausted heap space, trying to allocate 8589934608 bytes. ...
At first I thought that the Firestore communication is corrupt or provides too much data, but this can be ruled out since the search requires a previous query of the database, which succeeds every time. Additionally, the sign-in functionality works with the Google Cloud Platform and succeed every time.
I already tried to checkout the complete project from github again, run "flutter clean" several times and reinstall Intellij and the Flutter SDK. I don't know what else I can do to avoid this problem.
Thanks for your help!!!
Best regards, Simon