We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Cannot read property ‘dispose’ of null

Home Forums Bug Reports and Feature Requests Cannot read property ‘dispose’ of null

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #29876
    Avatarweb
    Licensee

    I’ve got an issue creating a material on runtime. I get the error “Cannot read property ‘dispose’ of null” in the console.
    However the application is running normal and the material is also created normally. But I would like to get rid of that error.

    Maybe it has something todo with the 3.3.0 pre1 version I’m testing.

    This is the code:

    • This topic was modified 2 months, 2 weeks ago by Avatarweb.
    #29992

    Hi,
    That’s strange. dispose happens when you’re unloading something. Are you sure these lines of code generate the error?

    Co-founder and CTO at Soft8Soft
    FB | Twitter | VK

    #30001
    Avatarweb
    Licensee

    As soon as I got the last line for creating the material I get this error. At the moment the workaround I’m using is creating a “MeshLambertMaterial” instead of “MeshStandardMaterial”. With the lambert one there is no error, dont know why? :unsure:

    #30036

    I made a simple test case based on your code, still no errors :unsure: Can you share a link to your project sources?

    Co-founder and CTO at Soft8Soft
    FB | Twitter | VK

    #30125
    Avatarweb
    Licensee

    I think I found the issue. I’ve upped the world cubemap res on runtime. As soon as I got the updateEnvironment in the code, I get the error with the MeshStandardMaterial.

    This is the code in the runCode()

    This is the error log in chrome:

    • This reply was modified 2 months, 1 week ago by Avatarweb.
    #30136

    I think I found the issue. I’ve upped the world cubemap res on runtime. As soon as I got the updateEnvironment in the code, I get the error with the MeshStandardMaterial.

    Thanks for investigating the issue! It will be fixed in the next verge3d update.

    Co-founder and lead developer at Soft8Soft.

    #30148
    Avatarweb
    Licensee

    Great :good:

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.