Search Unity

Does Unity Intend to update the WebGL runs?

Discussion in 'WebGL' started by Gamegenorator, Aug 10, 2019.

  1. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    Chrome removed support for Unity's WebGL a while back, I upload many of my games to itch.io to play in a browser, but most of the world uses chrome which has dropped support for npapi making it impossible to be played in the web browser. Does Unity have any plans to change this?
     
  2. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    108
    I assume you mean WebPlayer.
    Unfortunately WebPlayer is dead and now we have WebGL.
     
    De-Panther and Ryiah like this.
  3. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    No, I mean WebGL, it doesn't play in chrome.
     
  4. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287
    WebGL runs on Chrome...
     
  5. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    Can you get any of these games to run in chrome? https://itch.io/games/html5/tag-unity

    I always get this chrome error

    And this is what shows up in my console:

    UnityLoader.js:4 exception thrown: TypeError: Cannot read property 'length' of null,TypeError: Cannot read property 'length' of null
    at emscriptenWebGLGet (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:256801)
    at _glGetIntegerv (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:258629)
    at wasm-function[6205]:176
    at wasm-function[6184]:157
    at wasm-function[6151]:185
    at wasm-function[10137]:159
    at wasm-function[10097]:486
    at wasm-function[10086]:52
    at wasm-function[10065]:17
    at wasm-function[9934]:992
    at wasm-function[9933]:7
    at Object._main (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:415179)
    at Object.callMain (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:443762)
    at doRun (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:444438)
    at run (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:444606)
    at runCaller (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:443381)
    at Object.removeRunDependency (blob:https://v6p9d9t4.ssl.hwcdn.net/e4c8f105-164d-4f04-8a51-dd67ac366cc7:8:28399)
    at processDataJob (https://v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/Build/UnityLoader.js:4:5421)
    at i.callback (https://v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/Build/UnityLoader.js:3:19246)
    printErr @ UnityLoader.js:4
    callMain @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    doRun @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    run @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    runCaller @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    removeRunDependency @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    processDataJob @ UnityLoader.js:4
    i.callback @ UnityLoader.js:3
    setTimeout (async)
    schedule @ UnityLoader.js:3
    (anonymous) @ UnityLoader.js:4
    callRuntimeCallbacks @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    preRun @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    run @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    runCaller @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    removeRunDependency @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    receiveInstance @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    receiveInstantiatedSource @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    Promise.then (async)
    instantiateArrayBuffer @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    doNativeWasm @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    (anonymous) @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    (anonymous) @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    UnityLoader.loadCode.Module @ UnityLoader.js:4
    i.onload @ UnityLoader.js:4
    load (async)
    loadCode @ UnityLoader.js:4
    processWasmFrameworkJob @ UnityLoader.js:4
    i.callback @ UnityLoader.js:3
    setTimeout (async)
    i.complete @ UnityLoader.js:3
    processWasmCodeJob @ UnityLoader.js:4
    i.callback @ UnityLoader.js:3
    setTimeout (async)
    i.complete @ UnityLoader.js:3
    (anonymous) @ UnityLoader.js:4
    r.worker.onmessage @ UnityLoader.js:3
    UnityLoader.js:3 Invoking error handler due to
    Uncaught TypeError: Cannot read property 'length' of null
    e4c8f105-164d-4f04-8a51-dd67ac366cc7:8 Uncaught TypeError: Cannot read property 'length' of null
    at emscriptenWebGLGet (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at _glGetIntegerv (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[6205]:176
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[6184]:157
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[6151]:185
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[10137]:159
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[10097]:486
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[10086]:52
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[10065]:17
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[9934]:992
    at v6p9d9t4.ssl.hwcdn.net/html/1607154/gmtkbuilds/wasm-function[9933]:7
    at Object._main (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at Object.callMain (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at doRun (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at run (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at runCaller (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at Object.removeRunDependency (e4c8f105-164d-4f04-8a51-dd67ac366cc7:8)
    at processDataJob (UnityLoader.js:4)
    at i.callback (UnityLoader.js:3)
    emscriptenWebGLGet @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    _glGetIntegerv @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    (anonymous) @ wasm-036f72e6-6205:80
    (anonymous) @ wasm-036f72e6-6184:69
    (anonymous) @ wasm-036f72e6-6151:97
    (anonymous) @ wasm-036f72e6-10137:71
    (anonymous) @ wasm-036f72e6-10097:218
    (anonymous) @ wasm-036f72e6-10086:23
    (anonymous) @ wasm-036f72e6-10065:10
    (anonymous) @ wasm-036f72e6-9934:444
    (anonymous) @ wasm-036f72e6-9933:5
    (anonymous) @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    callMain @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    doRun @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    run @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    runCaller @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    removeRunDependency @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    processDataJob @ UnityLoader.js:4
    i.callback @ UnityLoader.js:3
    setTimeout (async)
    schedule @ UnityLoader.js:3
    (anonymous) @ UnityLoader.js:4
    callRuntimeCallbacks @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    preRun @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    run @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    runCaller @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    removeRunDependency @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    receiveInstance @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    receiveInstantiatedSource @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    Promise.then (async)
    instantiateArrayBuffer @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    doNativeWasm @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    (anonymous) @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    (anonymous) @ e4c8f105-164d-4f04-8a51-dd67ac366cc7:8
    UnityLoader.loadCode.Module @ UnityLoader.js:4
    i.onload @ UnityLoader.js:4
    load (async)
    loadCode @ UnityLoader.js:4
    processWasmFrameworkJob @ UnityLoader.js:4
    i.callback @ UnityLoader.js:3
    setTimeout (async)
    i.complete @ UnityLoader.js:3
    processWasmCodeJob @ UnityLoader.js:4
    i.callback @ UnityLoader.js:3
    setTimeout (async)
    i.complete @ UnityLoader.js:3
    (anonymous) @ UnityLoader.js:4
    r.worker.onmessage @ UnityLoader.js:3
     

    Attached Files:

  6. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287
    The fact that you got an error, doesn't meen that chrome doesn't support WebGL...
    I'm currently on my mobile phone and even then some of those games loaded on Chrome for android.

    Did you tried to build something by yourself and it didn't work?
    Which version number of Chrome do you use?
     
  7. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11

    I've tried Chrome 77 (newest version), newest version of brave (which is currently based on 76), and I can't get it to work with the latest version of MS Edge Canary (78.0.250)
     
  8. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287
    The current official release of chrome is 76. 77 is the current beta, and 78 is dev.

    I tested some of the games in the list using Chrome 76, and current Canary(78), and they all worked. Including the game from your log.
     
  9. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    108
    ammm... "dropped support for npapi" is not related to WebGL, but WebPlayer.
    Also you wrote "a while back"... what also points on webplayer.

    I just tested on v76 and i don't have any problems.
     
  10. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    @De-Panther @OneManArmy3D If you think that's not the problem can you tell me why none of my Chrome devices can do it? They all come up with the same error?
     
  11. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287
    My guess is that you have some flags disabled.
    Try to look at chrome's flags for "webassembly", and see if any of them is disabled or not on default
     
  12. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    They're all on deualt, anything else?
     
  13. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    287
  14. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    On that site I don't get any errors however they are all just blank screens, but it all still works fine in Firefox.
     
  15. JJJohan

    JJJohan

    Joined:
    Mar 18, 2016
    Posts:
    206
    See if anything strange comes up on this page on Chrome - this can test both WebGL 1 and 2 functionality.
    https://webglreport.com
     
    De-Panther likes this.
  16. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    On Firefox I get a full page of useful information: Annotation 2019-09-03 231933.jpg On Chrome and Brave I literally get nothing...
    Annotation 2019-09-03 231952.jpg
     
    De-Panther likes this.
  17. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    108
    Problem must be with your browser configuration. Maybe try to reset/reinstall.
     
  18. Gamegenorator

    Gamegenorator

    Joined:
    Jul 3, 2017
    Posts:
    11
    Nope, It happens on all chromium based browsers from Chrome, to De-googled Chromium to Brave To Edge Canary.