VideoPlayer.Stop() crash on Android

I use the following code to change the video source at runtime, however, it crashes sometimes on Android.

    void loadVideoToSphere(string url) {
        VideoPlayer videoPlayer = innerSphere.GetComponent<VideoPlayer> ();

        Debug.Log ("loadImageToSphere 1");

        if (videoPlayer != null) {
            Debug.Log ("loadImageToSphere 2");
            videoPlayer.Stop (); // it crashes sometimes (works fine on editor and iOS)
            Debug.Log ("loadImageToSphere 3");
        }

        Debug.Log ("loadImageToSphere 4");

        StartCoroutine (checkVideoExist(new WWW (TomsUtil.getAssetPath () + url + ".mp4")));

        Debug.Log ("loadImageToSphere 5");
    }

Here is the log:

Experiencing the same issue. Have you had any progress with this?

Edit: as a workaround, you can use pause and set the video time to 0 instead.

This issue is fixed and it will be updated into 2017.2, 2017.1 and the next 5.6

I’m Using Unity version 5.6.2f1, i still see the crash sometimes on windows IDE. Its not fixed.

Getting this crash on Android as well - Running 5.6.2f1

@d_matrix When was this supposed to be fixed?

I solved this bug. call stop method in nextframe’s update,never crash again