Exception on Android & iOS

Hello,
I’m developing using Flutter and have the following exceptions
What is the reason?
Thanks Kobi

iOS
SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = ssq.eu.amity.co, port = 54714

Android
SocketException: Software caused connection abort (OS Error: Software caused connection abort, errno = 103), address = ssq.eu.amity.co, port = 40946

Hello, let us check with the team for you.

Could you please help provide more detail on the previous actions, what function did you call/steps before you getting these exceptions?

following more information about the exception
I don’t know what function was excecuted
I was on Android device and not on iPhone
I’m using amity_sdk: ^0.23.0
Kobi

-12:29-08/03/2023-1020-2020-BaseDeviceInfo{data: {product: dandelion_global, supportedAbis: [armeabi-v7a, armeabi], serialNumber: unknown, displayMetrics: {xDpi: 268.9410095214844, widthPx: 720.0, heightPx: 1600.0, yDpi: 269.1390075683594}, supported32BitAbis: [armeabi-v7a, armeabi], display: RP1A.200720.011, type: user, isPhysicalDevice: true, version: {baseOS: , securityPatch: 2022-07-01, sdkInt: 30, release: 11, codename: REL, previewSdkInt: 0, incremental: V12.5.6.0.RCDMIXM}, systemFeatures: [android.hardware.sensor.proximity, android.hardware.sensor.accelerometer, android.software.controls, android.hardware.faketouch, android.hardware.usb.accessory, android.software.backup, android.hardware.touchscreen, android.hardware.touchscreen.multitouch, android.software.print, android.hardware.ethernet, android.software.activities_on_secondary_displays, android.software.voice_recognizers, android.software.picture_in_picture, android.hardware.audio.low_latency, android.software.vulkan.deqp.level, android.software.cant_save_state, android.hardware.opengles.aep, android.hardware.bluetooth, android.hardware.camera.autofocus, android.hardware.telephony.gsm, android.hardware.telephony.ims, android.software.incremental_delivery, android.hardware.usb.host, android.hardware.audio.output, android.software.verified_boot, android.hardware.camera.flash, android.hardware.camera.front, android.hardware.screen.portrait, com.google.android.feature.TURBO_PRELOAD, android.hardware.sensor.stepdetector, android.software.home_screen, android.hardware.microphone, android.software.autofill, android.software.securely_removes_users, android.hardware.bluetooth_le, android.hardware.touchscreen.multitouch.jazzhand, android.software.app_widgets, android.software.input_methods, android.hardware.sensor.light, android.hardware.vulkan.version, android.software.companion_device_setup, android.software.device_admin, com.google.android.feature.WELLBEING, android.hardware.wifi.passpoint, android.hardware.camera, android.hardware.screen.landscape, android.hardware.ram.normal, android.software.managed_users, android.software.webview, android.hardware.sensor.stepcounter, android.hardware.camera.capability.manual_post_processing, android.hardware.camera.any, android.hardware.camera.capability.raw, android.hardware.vulkan.compute, com.google.android.apps.dialer.call_recording_audio, android.software.connectionservice, android.hardware.touchscreen.multitouch.distinct, android.hardware.location.network, android.software.cts, android.hardware.camera.capability.manual_sensor, android.software.app_enumeration, com.google.android.apps.dialer.SUPPORTED, android.hardware.camera.level.full, android.hardware.wifi.direct, android.software.live_wallpaper, android.software.ipsec_tunnels, android.hardware.location.gps, android.software.midi, android.hardware.wifi, android.hardware.location, com.google.android.mainline.patchlevel.1, android.hardware.vulkan.level, com.google.android.feature.PREMIER_TIER, android.software.secure_lock_screen, android.hardware.telephony, android.software.file_based_encryption], manufacturer: Xiaomi, tags: release-keys, supported64BitAbis: , bootloader: unknown, fingerprint: Redmi/dandelion_global/dandelion:11/RP1A.200720.011/V12.5.6.0.RCDMIXM:user/release-keys, host: m1-xm-ota-bd093.bj.idc.xiaomi.com, model: M2006C3LG, id: RP1A.200720.011, brand: Redmi, device: dandelion, board: dandelion, hardware: mt6762}}-

Thank you for providing the additional information. I just want to confirm: so it only displays exceptions in the log but it doesn’t cause any crashes or other issues, correct?

Hello,
Yes No crashes
Thanks Kobi

The exception was also on iPhone

Could you please share what exception did you receive on iphone as well?

SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = ssq.eu.amity.co, port = 57415

1 Like

From your android log, the error seems to be related to the connection, could you double check the the device’s connectivity and the internet permissions please?

For iOS, it possible, could you please provide the exception log as a textFile?

Thanks I will check
what Amity suppose to do on network error?

I found following in the log
[log] AMITY_MQTT::Ping response client callback invoked
[log] AMITY_MQTT::Ping response client callback invoked

following exceptions
SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = ssq.eu.amity.co, port = 50634

SocketException: Bad file descriptor (OS Error: Bad file descriptor, errno = 9), address = ssq.eu.amity.co, port = 50634

Hi @meridork ,

Can you help share which SDK vers. you’re using for this?

Thank you,
Amity Support

At this time using version: “0.25.0”

following exception
SocketException: Write failed (OS Error: Broken pipe, errno = 32), address = ssq.eu.amity.co, port = 57540

stack
#0 _NativeSocket.write (dart:io-patch/socket_patch.dart:1223
)#1 _RawSocket.write (dart:io-patch/socket_patch.dart:1966)
#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)

May we confirm that this is the only exception you’re facing in this version 0.25? or are there other exceptions as well?

Note: To prevent confusion, let’s maintain this topic as the primary one for further discussion on the exception issue.

Yes this is the only one