Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[BUG] Video fails to play via URL when serving from a slow static server (1210792)

Discussion in 'WebGL' started by Elringus, Jan 11, 2020.

  1. Elringus

    Elringus

    Joined:
    Oct 3, 2012
    Posts:
    482
    Reproduced with Unity 2019.3.0f4.

    When a video is served from a slow static server, video playback (url mode) fails with the following warnings (from the browser console):
    "Error: WebGL warning: drawElements: TEXTURE_2D at unit 0 is incomplete: The dimensions of `level_base` are not all positive."
    "Error: WebGL warning: texSubImage2D: Offset+size must be <= the size of the existing specified image."



    For the test I've used a free Netlify static hosting, which limits the bandwidth for static files: https://elringus.me/static/chromevideoissue/

    Notice, that it's not an issue with the hosting config, the video itself is accessible just fine (though it takes time to load): https://elringus.me/static/ChromeVideoIssue/StreamingAssets/Video.mp4

    The video plays fine when run on a hosting without the bandwidth limitations.

    I've sent a bug report; case number is 1210792.
     
  2. Elringus

    Elringus

    Joined:
    Oct 3, 2012
    Posts:
    482
  3. -Aymeric-

    -Aymeric-

    Joined:
    Oct 21, 2014
    Posts:
    110
    Having this bug also... can't believe it.
     
  4. Uli_Okm

    Uli_Okm

    Joined:
    Jul 10, 2012
    Posts:
    94
    Having this issue too, in Unity 2019.3.1, but in my case, don't seems to be related to hosting bandwith limits, as I am using AWS S3 + Cloudfront as CDN (so, no limits on host side)
     
  5. -Aymeric-

    -Aymeric-

    Joined:
    Oct 21, 2014
    Posts:
    110
    Tested with 2019.3.2 still here. Downgraded project to 2019.2.21 : no problem.