dave / jsgo

GopherJS compiler, serving framework and CDN.
https://jsgo.io/<path>
MIT License
269 stars 11 forks source link

Odd JS error (wrong cache?) #18

Closed hajimehoshi closed 5 years ago

hajimehoshi commented 5 years ago

https://jsgo.io/github.com/hajimehoshi/ebiten/examples/flappy

Uncaught Error: vertex float num must be 12 but 0
    at $callDeferred (prelude.157dde98f7d79d4d93872fe9c9189c7296ccac3e.js:1)
    at $panic (prelude.157dde98f7d79d4d93872fe9c9189c7296ccac3e.js:1)
    at U (opengl.cdcce353b737028b027174b308dc30189620f637.js:1)
    at Object.$init (opengl.cdcce353b737028b027174b308dc30189620f637.js:1)
    at Object.$init (graphicscommand.a4b4695ffe4eec74aab191cbe71d906557c46cd7.js:1)
    at Object.$init (ebiten.a48728df35f1ea1ed3ca664fad11a7b200509733.js:1)
    at $init (flappy.dcb6c5748448680140437fcad3d6359c801a24ec.js:1)
    at r (prelude.157dde98f7d79d4d93872fe9c9189c7296ccac3e.js:1)
    at $runScheduled (prelude.157dde98f7d79d4d93872fe9c9189c7296ccac3e.js:1)
    at $schedule (prelude.157dde98f7d79d4d93872fe9c9189c7296ccac3e.js:1)
    at $go (prelude.157dde98f7d79d4d93872fe9c9189c7296ccac3e.js:1)
    at flappy.226c58554d92fac0df9471238fd663105dd28104.js:1
    at HTMLScriptElement.o [as onreadystatechange] (flappy.226c58554d92fac0df9471238fd663105dd28104.js:1)

This sounds like there are some inconsistency versions of libs. I am not sure.

I've confirmed the same project worked on my local machine.

hajimehoshi commented 5 years ago

I fixed the error (the order of init function https://github.com/hajimehoshi/ebiten/commit/de788603d6090c6ddbd6e340f484a0f56949de81), but there is still rendering issue. I'm investigating this now.

hajimehoshi commented 5 years ago

Now it is fixed by reducing init functions.

https://github.com/hajimehoshi/ebiten/commit/99e4c874fe85a4a8d828d0e89b6fcef791ee5034