Skip to content

Uncaught TypeError: Cannot read property 'createShader' of null on Chromium 59 #160

@autra

Description

@autra

Hi there \o

Description

The chromium extension makes WebGL context crash after its activation (for one origin), until the browser is restarted.

Steps

Expected

  • The page still works correctly (you can see the texture on the globe, zoom etc)
  • The page can be debugged with webgl-inspector

Actual

  • My computer freeze some seconds, the page crashes with all lot of errors, the first of them being
(unknown) Uncaught TypeError: Cannot read property 'createShader' of null
    at new TexturePreviewGenerator (<anonymous>:9134:20)
    at SurfaceInspector.TextureView.inspector.setupPreview (<anonymous>:10656:30)
    at <anonymous>:7582:18

There are also a lot of warnings seemingly concerning my application (itowns), but I don't have them if I disable this extension. Full logs

THREE.WebGLRenderer: Error creating WebGL context.
xn @ itowns.js:1
l @ itowns.js:12
i @ itowns.js:5
i @ itowns.js:12
(anonymous) @ globe.js:11

itowns.js:1 Uncaught TypeError: Cannot read property 'getExtension' of null
    at Object.get (itowns.js:1)
    at new xn (itowns.js:1)
    at new l (itowns.js:12)
    at i [as constructor] (itowns.js:5)
    at new i (itowns.js:12)
    at globe.js:11
get @ itowns.js:1
xn @ itowns.js:1
l @ itowns.js:12
i @ itowns.js:5
i @ itowns.js:12
(anonymous) @ globe.js:11

globe.html:50 Uncaught TypeError: Cannot read property 'addEventListener' of undefined
    at globe.html:50
(anonymous) @ globe.html:50

Additionnal informations

OS: Ubuntu 16.04 LTS
Device: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)

If I embed directly the script (<script src="http://benvanik.github.com/WebGL-Inspector/core/embed.js"></script>) in my webpage, it also fails, but with other errors.

I'll be happy to provide other relevant infos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions