Search Issue Tracker

Fixed in 2019.3

Fixed in 2019.1, 2019.2

Votes

49

Found in

2019.1.4f1

2019.1.7f1

2019.2.0a1

2019.3.0a1

Issue ID

1163795

Regression

Yes

[iOS] UnityWebRequest test fails sending large data

iOS

-

To reproduce:
1. Open user attached project "iosWebRequestFailures.zip"
2. Open "SmapleScene.unity" scene
3. Enter Play mode
4. Observe in the Game window as all tests are passing ( it should cycle 5 times )
5. Build for iOS
6. Deploy the Xcode project to an iOS device

Expected result: all the test are passing as in the Editor
Actual result: tests start to fail almost instantly

Reproduced on:
2019.1.4f1 2019.1.8f1 2019.2.0b7 2019.3.0a7

Doesn't reproduce on:
2018.4.3f1 2019.1.3f1

Devices reproduced on:
- iPhone 8 Plus iOS 12.0
- iPhone XR iOS 12.0

Device not reproduced on:
- VLNQA00263, Google Pixel 3 (Pixel 3), Android 9, CPU: Snapdragon 845, GPU: Adreno (TM) 630
- macOS 10.14 machine

Notes:
- In 2019.3.0a7 on Editor tests fail on the last tests because of a timeout, changing line 32 in "NetworkTester.cs" script from WaitForSeconds(20.0f); to 30.0f all the tests pass

Comments (22)

  1. 11bc4e34b61afeb19498b62df7a25cd3?d=mm

    harryred

    Jul 05, 2019 06:18

    If the users get some issues with these bugs on Editor or other platform as well. To get rid of these errors can take help from https://supportphonenumberaustralia.com/blog/xbox-sign-in-error-0x87dd0006/ so that they can easily remove these issues.

  2. D85d1d506e78ef51ec508d62048081f0?d=mm

    andreyul

    Jul 04, 2019 18:32

    Delete the line
    [self writeMoreBody];
    from
    - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:...
    in Classes/Unity/UnityWebRequest.mm
    to fix this problem.

  3. D6189aad811bf8bea3b144be8014f365?d=mm

    sier_ua

    Jun 29, 2019 09:51

    I'm experiencing the same issue on iOs devices. However I was able to temporarily work around the problem by using System.Net.Http.HttpClient which sends large amount of data from iOs devices without any issues.

  4. 064623ceaf9f9613ab38369522fe3bc1?d=mm

    nia_ru

    Jun 28, 2019 09:49

    Having the same problem with sending big `byte[] postData` using WWW on iOS platform. And even switching to the recommended UnityWebRequest does not help, so the problem is common to both. We too have reproduced steadily this on all released versions of 2019.1.* branch (.1.4 through .1.8) on iPad, and our customers have also the same problem on a wide variety of iOS devices (hopefully other problems are not affected).

    This critically affects our app. Since the app is cross-platform, we currently have no idea how to address this issue without using external libraries that can limit our cross-platformness. Please pay as much attention as possible to the problem. Having this still not fixed after 8 patches is unbelievable!

  5. D9b8ea2931a2e0a0d5bc42b6cb5f0fa8?d=mm

    vl_avan

    Jun 28, 2019 07:19

    We have the same issue when sending large (6K+) base-64 encoded tokens to our server. 40% of the data is corrupted. Please fix this bug as soon as possible.

  6. 4ba73c55dadab1931d3f8388c30a9b34?d=mm

    tcvpromo

    Jun 27, 2019 06:14

    Fix it please! Thats a big problem for us

  7. 25616df50c478868a0ef9ccc02748476?d=mm

    UnityDev_

    Jun 25, 2019 16:11

    @RCAMDUELL Thank you, you're a life saver!

  8. 4f69d240746bb729eadb84aa4435a58d?d=mm

    rcamduell

    Jun 25, 2019 16:08

    I found that the method "- (void)writeMoreBody" in Classes/Unity/UnityWebRequest.mm is being called on the same instance from multiple threads when the issue happens. I added @synchronized (self) {<method body>} and it seems to have worked without any obvious performance issues. I assume this method was developed to be thread safe, but something broke that.

  9. B08fa1bd61727fa0fe4b26d3ccadbb3e?d=mm

    movingdimensions

    Jun 25, 2019 15:36

    This is also affecting our release. Please address this quickly.

  10. 7cc4d427bc8b0bb580ab236d6d20fc4f?d=mm

    winterhalder

    Jun 25, 2019 12:46

    This will block any app dealing with a backend. Corrupts the messages - and could result in corruption of save data. Please fix ASAP!

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.