Describe the bug
This error occurs in the newest version (1.0.1) when the app does not have network connectivity and the image stream is trying to load the image from the internet. My guess is that the image stream is trying to connect but then the app is suspended resulting in the error.
There's also an error thrown when the http client of the app for the api calls is unexpectedly suspended, probably also when the app is suspended. That error can be reduced with an additional dependency (cupertino_http), but not eliminated. We need to make sure that when the app is suspended the http client is closed or at least catch all the errors.
To Reproduce
More or less unknown.
Expected behavior
That this error is not thrown or gracefully catched.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Does appear on both iOS and Android, regardless of the version or smartphone.
Stacktraces
iOS
HttpException: Bad file descriptor, uri = https://engelsburg.smmp.de/files/2024/03/23_Stellenausschreibung_FSJ.jpg. Error thrown resolving a single-frame image stream.
Fatal Exception: FlutterError
0 ??? 0x0 FirebaseCrashlytics.recordError + 119 (firebase_crashlytics.dart:119)
1 ??? 0x0 FirebaseCrashlytics.recordFlutterError + 145 (firebase_crashlytics.dart:145)
2 ??? 0x0 FirebaseCrashlytics.recordFlutterFatalError + 158 (firebase_crashlytics.dart:158)
3 ??? 0x0 FlutterError.reportError + 1181 (assertions.dart:1181)
4 ??? 0x0 ImageStreamCompleter.reportError + 798 (image_stream.dart:798)
5 ??? 0x0 new OneFrameImageStreamCompleter.<fn> + 859 (image_stream.dart:859)
Android
HttpException: Software caused connection abort, uri = https://engelsburg.smmp.de/files/2024/03/23_Schaefer_Hessenmeisterschaft_03_01.jpg. Error thrown resolving a single-frame image stream.
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: HttpException: Software caused connection abort, uri = https://engelsburg.smmp.de/files/2024/03/23_Schaefer_Hessenmeisterschaft_03_01.jpg. Error thrown resolving a single-frame image stream.
at FirebaseCrashlytics.recordError(firebase_crashlytics.dart:119)
at FirebaseCrashlytics.recordFlutterError(firebase_crashlytics.dart:145)
at FirebaseCrashlytics.recordFlutterFatalError(firebase_crashlytics.dart:158)
at FlutterError.reportError(assertions.dart:1181)
at ImageStreamCompleter.reportError(image_stream.dart:798)
at new OneFrameImageStreamCompleter.<fn>(image_stream.dart:859)