I cannot reproduce problem itself even on our MacBook's but we have some logs by users. The problem is when I try to use some of rendering methods on CanvasRenderingContext2D it crashes because it's null.
So I have the canvas element, is has getContext method but it return null. Short list of checked potentials:
- The canvas element is created, existing, has positive size and has getContext method
- getContext call executed after page loading (onload listener)
- there is NO other calls of getContext with other parameters ('webGl' for example)
- in getContext('2d') '2d' string is always in lower case
- this problem is reproducing only on Safari 10
- in some cases this error occurs not after page load but after some user actions. This mean canvas was destroyed and re-created some times, and it worked.