Search Issue Tracker

Third Party Issue

Votes

1

Found in

2021.3.33f1

2022.3.15f1

2023.2.3f1

2023.3.0a17

Issue ID

UUM-59116

Regression

No

[Android] Socket.BeginConnect() doesn't call the SocketConnectCallback when the network is not reachable in the Player

--

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Switch to the Android Platform (File > Build Settings > Android > Switch Platform)
4. Make sure Mobile data and Wi-Fi are disabled on the Android device
5. Select Development Build
6. Build and Run on an Android device
7. Open the Android LogCat (Window > Analysis > Android LogCat)
8. Search for “SocketConnectCallback“

Expected result: “ReproScript:SocketConnectCallback (System.IAsyncResult)“ is present
Actual result: “ReproScript:SocketConnectCallback (System.IAsyncResult)“ can’t be found in Android LogCat

Reproducible with: 2021.3.33f1, 2022.3.15f1, 2023.2.3f1, 2023.3.0a17

Reproducible on devices:
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: Exynos 9 (9825), GPU: Mali-G76
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830

Not reproducible on devices:
iPhone 12 mini (iOS 14.1)

Testing environment: Windows 10 Enterprise 21H2

Not reproducible on:
Windows Standalone Player
Play Mode
MacOS 13.6.3 (Intel)
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS

Notes:
- Reproduces only with no internet connection

  1. Resolution Note:

    On different platforms Socket.BeginConnect can resolve IAsyncResult synchronously resulting in callback not being invoked thus this issue is not related to Unity Engine.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.