Search Issue Tracker

Status: Fixed in Unity 5.5.0

Votes

15

Found in

5.3.1p3

Issue ID

763240

Regression

No

[iOS] WebRequest system initialization fails on IL2CPP builds with disabled stripping and all Mono2x builds

iOS

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2No workaround

Steps to reproduce:

1. Open attached project
2. Build for iOS with Mono2x scripting backend OR IL2CPP with 'Strip Engine Code' disabled
3. Build the Xcode project to iOS device
4. Click 'Load random image' button
5. Notice the following errors are thrown in Xcode log:
> Cannot create web request without initializing the system
> Unable to initialize UnityWebRequest
> NullReferenceException: UnityWebRequest has already been destroyed

IL2CPP build with 'Strip Engine Code' enabled works fine.

Comments (6)

  1. 16009306a0b1ee7d27a9338311165f01?d=mm

    panuaani

    Aug 11, 2016 06:35

    Issue persists in 5.4.0f3 (Mono2x scripting backend)

  2. B74fb5e5f0333e2bb48edbe787b68ed5?d=mm

    v0kb0l0k

    Jun 10, 2016 15:48

    Cannot create web request without initializing the system
    UnityEngine.Networking.UnityWebRequest:.ctor(String)

    Unable to initialize UnityWebRequest
    UnityEngine.Networking.UnityWebRequest:.ctor(String)

    System.NullReferenceException: UnityWebRequest has already been destroyed
    at UnityEngine.Networking.UnityWebRequest.InternalSetUrl (System.String url)
    at UnityEngine.Networking.UnityWebRequest.set_url (System.String value)
    at UnityEngine.Networking.UnityWebRequest..ctor (System.String url)

  3. B74fb5e5f0333e2bb48edbe787b68ed5?d=mm

    v0kb0l0k

    Jun 10, 2016 15:46

    Unity 5.4.0b1 WebGL same

  4. Ae2980a0fa54de6a3431904cbc37fa55?d=mm

    MaT67

    Feb 22, 2016 13:17

    Same issue here on WebGL build.

  5. 67cbf196dd167be91e1d8045895a1723?d=mm

    Reza-AUS

    Feb 22, 2016 02:54

    I have the same issue on WebGL builds with 5.3.2p3.

  6. 28d5d8f787dc497f7f6e99cad283a6d1?d=mm

    DimensionU

    Jan 27, 2016 16:08

    This happens on WebGL builds as well.

All about bugs

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