Search Issue Tracker

Fixed in 2019.2.X

Fixed in 2017.4.X, 2018.4.X, 2019.1.X

Votes

0

Found in

2017.4.0f1

2017.4.13f1

Issue ID

1117213

Regression

No

ArgumentNullException is thrown when yielding and disposing a WWW object

Networking

-

To reproduce:

1. Download attached project “project_610124.zip" and open in Unity
2. Open “scene” scene
3. Enter to Play mode
4. Observe that ArgumentNullException is thrown in Console:

"ArgumentNullException: Argument cannot be null.
Parameter name: _unity_self
UnityEngine.WWW.get_keepWaiting () (at /Users/builduser/buildslave/unity/build/Modules/UnityWebRequestWWW/Public/WWW.cs:316)
UnityEngine.CustomYieldInstruction.MoveNext () (at /Users/builduser/buildslave/unity/build/Runtime/Export/CustomYieldInstruction.cs:19)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at /Users/builduser/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)"

Notes:
- This issue appears on both Windows and macOS
- It seems that this issue was fixed in Unity 2017.2: https://issuetracker.unity3d.com/issues/nullreferenceexception-is-thrown-when-the-dispose-method-is-inside-the-using-block

Reproduced on Unity 2017.4.0f1, 2017.4.17f1, 2018.2.20f1, 2018.3.3f1, 2019.1.0a14 and 2019.2.0a1

  1. Response avatar

    Resolution Note (fix version 2019.2):

    Fixed in 2019.2a3

Comments (4)

  1. 14f501d6c9159e57a7bf3b5e59cbd870?d=mm

    jhoneekramm988

    Aug 18, 2021 15:21

    Build and Run user's attached project ("WebGL2018.2.6.zip") on Microsoft Edge or Safari browser, by providing a WebGL extension as an alternative to the traditional desktop browsers built with WebGL enabled (requires Windows 10) when available in your favourite app store. Click "Install Extension", Select this installation package from Browse > Extensions, select that you wish to add additional sites for use at certain times of day using JavaScript-enabled technologies such Internet Explorer 9+, Firefox 24+, Chrome 45+.
    source eworldtrade.com

  2. 9bded2e7135ce78ce4a6161531dd3f63?d=mm

    vbelkin

    Nov 20, 2020 23:50

    Reproduced in 2019.4.14f1

  3. 990fedba748bbb9f83c28623347328a1?d=mm

    miksol31

    Jul 19, 2019 15:30

    Fix for LTS

  4. A1b6b380c18f763d45729e1872619e53?d=mm

    Eldirfar

    Feb 28, 2019 13:44

    Fix for LTS?

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.