Uncaught TypeError: Cannot read property 'dirty' of undefined

Hello fellow developers!

Since last week (about thursday) I’m getting this error:

Uncaught TypeError: Cannot read property 'dirty' of undefined
    at ForwardRenderer.renderForward (playcanvas-stable.js:10362)
    at ForwardRenderer.renderComposition (playcanvas-stable.js:11283)
    at Application.render (playcanvas-stable.js:24982)
    at playcanvas-stable.js:25334

I’ve never gotten this error before and now suddenly it keeps happening when switching scenes. The other scene has assets which are not preloaded, and I load them in the background in the main menu or when entering the level before displaying anything. Now when all assets are loaded the error does not occur, but if it has to load in the level before displaying anything this error happens.

Anyone got any idea on why this is happening ? My guess is that some asset tries to be displayed which isn’t loaded yet. Does this happen if you deselect “preload” on materials and then try to display them, when they’re not loaded yet?

Thanks!

Hi @Bfischlin,

I think there is some work being done right now in the engine on the scene loader, it may be some bug introduced there. Especially if your code used to work.

Would you like to submit an issue on the engine repo about this?

1 Like

Thank you for the Tip @Leonidas !

I’ve submitted the issue to the repo.

1 Like