Search Unity

Question 2019.3.2f1 Webrequest Error. (Apple Memory Leak And Host Error..)

Discussion in 'Scripting' started by NakOhz, Jul 2, 2020.

  1. NakOhz

    NakOhz

    Joined:
    Mar 5, 2020
    Posts:
    6
    I just use WebRequest in Unity.

    2019.3.2f1

    Failed to receive data - MOST CASE
    Cannot connect to destination host
    Unable to complete SSL connection

    The above three errors are occurring intermittently.

    The game server API is communicated, and the domain is linked to CloudFront of AWS.

    It is being proxy processed through ELB.

    Most of the communication is done by POST.

    Also, Apple devices are leaking memory.

    Is there a fatal problem with the 2019.3.2 version of WebRequest?

    The domain cannot be disclosed because it is an open place.

    If you want a related test, I can help you test it with my domain by e-mail.

    Or is there anyone who has experienced and solved the same symptoms as I have? to be in need of assistance
    CloudFront on AWS

    Or it continues to occur in the GlobalAccelerator.

    Among them, when accessing the GlobalAccelerator, the app is forced to shut down due to a memory leak on the Apple device.

    The problem is that the problem does not continue to occur, and it occurs intermittently.

    Please Help me..
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    Did it work with earlier versions? Does it work with later versions?

    Are you correctly implementing the
    IDisposable
    contract of the web requests? At least 99% of example code out there fails to do so, and that can be a source of leaks.

    Does it work fine with another domain?
     
  3. NakOhz

    NakOhz

    Joined:
    Mar 5, 2020
    Posts:
    6
    @Kurt-Dekker

    1. I didn't test ealier version. but 2019.4.1 (LTS) -> has same problem.

    2. Yes. But Even if I didn't IDsposable, it's normal for other domains to have the same symptoms.

    3. Yes.

    A case. B case. C case. D case


    A case is Domain -> CloudFront -> ELB -> EC2 (Real Server)

    B case is Domain -> ELB -> EC2 (Real server)

    C case is Domain -> Global Accelator -> ELB -> EC2(Real Server)

    D case is EC2 (Real Server)

    A, D case is OK.

    But B,C Case has Memory Leak in Apple. Android is OK.

    I attach Image.

    Memory Screenshot in XCODE.

    Looping CFNework and UnityFramework.

    HTTP2StreamBridge , CFHTTPMessage, ETC..
     

    Attached Files:

  4. Chodu

    Chodu

    Joined:
    Jan 30, 2015
    Posts:
    2
    Have you solved this problem? I have exactly the same problem. Unity 2019.4.4(LTS)
     

    Attached Files:

  5. jotesandhu

    jotesandhu

    Joined:
    Sep 11, 2020
    Posts:
    1
    Same issue for me. Sometimes it occurs within 30 minutes. Sometimes it won't occur even after 2 hours of usage.
    Android works fine. Only happening on iOS builds.

    Unity 2019.4.12 LTS
     

    Attached Files:

    • leak.png
      leak.png
      File size:
      669.9 KB
      Views:
      311