question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors in the threejs.org editor

See original GitHub issue
Description of the problem

In the r113 editor (https://threejs.org/editor/), the following issues occured:

Menubar.Edit.js:161 Uncaught TypeError: Cannot read property 'isShaderMaterial' of undefined
    at Menubar.Edit.js:161
    at Scene.traverse (three.module.js:5707)
    at UIRow.<anonymous> (Menubar.Edit.js:157)
Sidebar.Object.js:571 Uncaught TypeError: Cannot set property 'needsUpdate' of undefined
    at UIBoolean.update (Sidebar.Object.js:571)
Sidebar.Object.js:571 Uncaught TypeError: Cannot set property 'needsUpdate' of undefined
    at UIBoolean.update (Sidebar.Object.js:571)

This was from attempting to click objects and set the shadows flags to true in the ‘Camera’ example scene. A log warning found 15 times when looking in the log:

three.module.js:18347 THREE.WebGLProgram: gl.getProgramInfoLog() C:\fakepath(231,25-83): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them

Two ‘not cached’ errors from google analytics showed up at the top of the log:

[SW] Not cached: https://ssl.google-analytics.com/ga.js
[SW] Not cached: https://ssl.google-analytics.com/__utm.gif?utmwv=5.7.2&utms=14&utmn=1003831722&utmhn=threejs.org&utmcs=UTF-8&utmsr=1536x864&utmvp=1211x700&utmsc=24-bit&utmul=en-us&utmje=0&utmfl=-&utmdt=three.js%20%2F%20editor&utmhid=1226119357&utmr=0&utmp=%2Feditor%2F&utmht=1580941272269&utmac=UA-86951-15&utmcc=__utma%3D88431582.1846809080.1557700072.1580870481.1580938466.12%3B%2B__utmz%3D88431582.1580938466.12.8.utmcsr%3Dgithub.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2Fmrdoob%2Fthree.js%3B&utmjid=&utmu=qAAAAAAAAAAAAAAAAAAAAAAE~
Three.js version
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Unknown

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Tazshelby2016commented, Feb 10, 2020

These 15 warnings look like a variation of ones seen in #18422. It may be valid to continue tracking this there.

1reaction
mrdoobcommented, Feb 10, 2020

It would be great if ANGLE could automatically inject abs() into into a pow() statement.

I think doing a max( 0, f ) would be safer, but we’ll see what they do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[resolved]There is an error in the editor - three.js forum
After I use the bottom of the editor to adjust the object scale button, this auxiliary line has a problem. The auxiliary line...
Read more >
Editor: The light does not work - Questions - three.js forum
Good day, in the editor the light does not work on the addition of a daylight, it only works after the play button....
Read more >
Black screen when I use Three js editor published project in ...
I am new in three. js. I use three js editor for create an environment. after publish project, my project run on edge...
Read more >
three.js editor
Publish. Edit. Undo (Ctrl+Z). Redo (Ctrl+Shift+Z). Clear History. Center. Clone. Delete (Del). Fix Color Maps. Add. Group. Box. Capsule. Circle. Cylinder.
Read more >
Scene exported from threejs web editor not working?
hi, I made a little scene using the online editor on the threejs site, ... and it gives me a black page with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found