I add the following command to remove exception 3
String? token = await FirebaseMessaging.instance.getAPNSToken();
I add the following command to remove exception 3
String? token = await FirebaseMessaging.instance.getAPNSToken();
Update
I have following exceptions without crash
Exception 1
SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = ssq.eu.amity.co, port = 54665
Exception 2
SocketException: Write failed (OS Error: Broken pipe, errno = 32), address = ssq.eu.amity.co, port = 54646
Stack
#0 _NativeSocket.write (dart:io-patch/socket_patch.dart:1244)
#1 _RawSocket.write (dart:io-patch/socket_patch.dart:2002)
#2 _ExternalBuffer.readToSocket (dart:io/secure_socket.dart:1327)
#3 _RawSecureSocket._writeSocket (dart:io/secure_socket.dart:1089)
#4 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1035)
Exception 3
SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = ssq.eu.amity.co, port = 54494
Hello, I assume these are the only exceptions you are currently encountering, and there have been no crashes, is that correct?
Hello, could you please include the complete error stack trace as well? Without it, itâs rather challenging for us to assist in identifying the issue. Thank you.
Update
I hade more crashes
Now on the same time App moved to background and after some seconds
exception
SocketException: Write failed (OS Error: Broken pipe, errno = 32), address = ssq.eu.amity.co, port = 55757
Stack
"#0 _NativeSocket.write (dart:io-patch/socket_patch.dart:1244)
#1 _RawSocket.write (dart:io-patch/socket_patch.dart:2002)
#2 _ExternalBuffer.readToSocket (dart:io/secure_socket.dart:1327)
#3 _RawSecureSocket._writeSocket (dart:io/secure_socket.dart:1089)
#4 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1035) "
device
BaseDeviceInfo{data: {systemName: iOS, isPhysicalDevice: true, utsname: {release: 22.6.0, sysname: Darwin, nodename: Kobis-iPhone, machine: iPhone15,3, version: Darwin Kernel Version 22.6.0: Wed Jun 28 20:51:46 PDT 2023; root:xnu-8796.142.1~1/RELEASE_ARM64_T8120}, model: iPhone, localizedModel: iPhone, systemVersion: 16.6.1, name: iPhone, identifierForVendor: C00EFA5F-7161-48EB-B4A4-BE1F5C0A71D2}}
So you have one new crash from when app moved to background?
Also, can we have full error stacktraces for the previous exceptions as well please?
I have some crashes of the same type I sent you
I time I write you an exception I added the stack, some exceptions donât have stack information
Update
crash & exception at same time
Exception
SocketException: Write failed (OS Error: Broken pipe, errno = 32), address = ssq.eu.amity.co, port = 56747"
Stack
#0 _NativeSocket.write (dart:io-patch/socket_patch.dart:1244) #1 _RawSocket.write (dart:io-patch/socket_patch.dart:2002) #2 _ExternalBuffer.readToSocket (dart:io/secure_socket.dart:1327) #3 _RawSecureSocket._writeSocket (dart:io/secure_socket.dart:1089) #4 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1035) <asynchronous suspension>
I created a new version without background_fetch
and had the exception twice
1 When killed the App
2 When move the App to background
Exception
SocketException: Write failed (OS Error: Broken pipe, errno = 32), address = ssq.eu.amity.co, port = 60523
Stack
#0 _NativeSocket.write (dart:io-patch/socket_patch.dart:1244)
#1 _RawSocket.write (dart:io-patch/socket_patch.dart:2002)
#2 _ExternalBuffer.readToSocket (dart:io/secure_socket.dart:1327)
#3 _RawSecureSocket._writeSocket (dart:io/secure_socket.dart:1089)
#4 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1035) "
Device
BaseDeviceInfo{data: {systemName: iOS, isPhysicalDevice: true, utsname: {release: 22.6.0, sysname: Darwin, nodename: Kobis-iPhone, machine: iPhone15,3, version: Darwin Kernel Version 22.6.0: Wed Jun 28 20:51:46 PDT 2023; root:xnu-8796.142.1~1/RELEASE_ARM64_T8120}, model: iPhone, localizedModel: iPhone, systemVersion: 16.6.1, name: iPhone, identifierForVendor: C00EFA5F-7161-48EB-B4A4-BE1F5C0A71D2}}
Update: replied via email
Update
I updated the new plugins, reduce firebase activities as possible.
I still have crashes on iOS I think less than before.
I created some crashes after doing the following again some times and fast
A. intensive scrolling the feed
B. lock the screen
C. open screen
iOS
SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = ssq.eu.amity.co, port = 49593
SocketException: Can't assign requested address (OS Error: Can't assign requested address, errno = 49), address = ssq.eu.amity.co, port = 56324
Android
SocketException: Software caused connection abort (OS Error: Software caused connection abort, errno = 103), address = ssq.eu.amity.co, port = 43300
Hello @meridork as previously mentioned in the email where we offered our suggestions, if you could respond and provide the information we requested, we would be able to continue with our investigation. Thank you
Thanks for your response
Thanks for trying to create a crash with your code.
I updated the card with how I created a crash and thought it was important to you.
We will try to improve the App and remove the crashing.
Kobi
@meridork Thank you for your understanding and cooperation. However, Iâve come across a topic that appears to be related to the issue youâve been experiencing. It seems to be a problem associated with Flutter, as discussed here: Frequent bad file descriptor errors on iOS #197.
You may need to do further research to address the remaining errors, as they could potentially originate from Flutter itself. I hope this information is helpful!
Apart from this, if you have any questions or encounter any issues with our product, please donât hesitate to get in touch
Thanks
Can you please describe the process that using following address that in the exception error?
SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = ssq.eu.amity.co, port = 50391
It may not be related to the address. We still recommend conducting additional research around that topic. Until you have the debugging tool and can provide logs from the iOS side, we wonât be able to provide further assistance
Hello,
I add the following to my code and from this time I donât have creashes
||<key>FLTEnableImpeller</key>|
|---|---|
||<false/>|
didChangeAppLifecycleState
to stop listen on going to background and start on going to foreground