sfuqua / fvtt-token-visibility

Foundry VTT module for revealing tokens to players through the fog of war
MIT License
2 stars 1 forks source link

Foundry v9 canvas doesn't load with STV enabled #10

Open TheTural opened 2 years ago

TheTural commented 2 years ago

Just logging an issue since during my testing I found that SVT was causing the Foundry canvas to fail to load in the upcoming v9 release.

Disabled all other modules for testing, canvas is just gray with STV enabled. The console doesn't give a very specific indication of what may be wrong (or I'm not smart enough to identify it from this). Only error in the console during a scene load:

TypeError: Failed to render WebGL canvas: Cannot read properties of undefined (reading 'name')
    at Canvas.draw (foundry.js:19804)
    at async Scene.view (foundry.js:17589)
    at async Game.initializeCanvas (foundry.js:5661)
    at async Game.setupGame (foundry.js:5530)
    at async Game._initializeGameView (foundry.js:6480)
    at async Game.initialize (foundry.js:5426)
onError                         @ foundry.js:326
initializeCanvas                @ foundry.js:5664
async function (async)
initializeCanvas                @ foundry.js:5656
setupGame                       @ foundry.js:5530
async function (async)
setupGame                       @ foundry.js:5515
_initializeGameView             @ foundry.js:6480
_initializeView                 @ foundry.js:6456
initialize                      @ foundry.js:5426
async function (async)
initialize                      @ foundry.js:5420
window.addEventListener.once    @ foundry.js:62061
async function (async)
window.addEventListener.once    @ foundry.js:62060

localhost-1639782235173.log image

sfuqua commented 2 years ago

Thanks for the stack and the report, I'll try and see if this is something small I can fix in the next week. I am not up to speed on the v9 breaking changes (life has interfered with my RPG and Foundry time since the fall) - if it's a substantial break I may need to solicit help for this one and declare v9 unsupported for a while.