Hi All,
I am on macbook pro (macOs BigSur 11.6.3) using chrome browser. Playgrounds stopped working. Anyone else seeing this?
-k
Hi All,
I am on macbook pro (macOs BigSur 11.6.3) using chrome browser. Playgrounds stopped working. Anyone else seeing this?
-k
Can you share the error?
The tab panel is all white. This is the error from developers tool console:
index.js:99 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘length’)
at loadInSequence (index.js:99:27)
at index.js:115:9
at new Promise ()
at checkBabylonVersionAsync (index.js:114:12)
at index.js:119:1
Looks like your local storage might be corrupt. Can you log it out here from the dev console?
for (i = 0; i < localStorage.length; i++) {
console.log(localStorage.key(i) + "=[" + localStorage.getItem(localStorage.key(i)) + "]");
}
edit: actually just need localStorage.getItem("version")
In the meantime @kri100s - you can run this:
localStorage.setItem("version", "4.2.0")
I am not sure what do you mean. Where should I run it? I get the white screen in the tab even I go to https://www.babylonjs-playground.com/ not running any code.
Ok, Its back. Playgrounds working again.
cc @RaananW
Confirm I am seeing the same. Chrome / Windows 10. Hitting playground results in white screen and the same error in console. Opening with incognito, it works.
> localStorage.getItem("version")
'4.2.1'
@RaananW might be a version redirection missing here ? in the new playground ?
In case it helps, I can see in the code being loaded that there is no “4.2.1” key in the Versions
array.
https://playground.babylonjs.com/index.js
// Version
var Versions = {
Latest: [
"https://preview.babylonjs.com/babylon.js",
"https://preview.babylonjs.com/gui/babylon.gui.min.js",
"https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js",
"https://preview.babylonjs.com/nodeEditor/babylon.nodeEditor.js",
"https://preview.babylonjs.com/guiEditor/babylon.guiEditor.js",
"https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.min.js",
"https://preview.babylonjs.com/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js",
"https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.min.js",
"https://preview.babylonjs.com/loaders/babylonjs.loaders.min.js",
"https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js",
"https://rawcdn.githack.com/BabylonJS/Extensions/f43ab677b4bca0a6ab77132d3f785be300382760/ClonerSystem/src/babylonx.cloner.js",
"https://rawcdn.githack.com/BabylonJS/Extensions/785013ec55b210d12263c91f3f0a2ae70cf0bc8a/CompoundShader/src/babylonx.CompoundShader.js",
],
local: [
"//localhost:1337/babylon.js",
"//localhost:1337/gui/babylon.gui.min.js",
"//localhost:1337/inspector/babylon.inspector.bundle.js",
"//localhost:1337/nodeEditor/babylon.nodeEditor.js",
"//localhost:1337/guiEditor/babylon.guiEditor.js",
"//localhost:1337/materialsLibrary/babylonjs.materials.min.js",
"//localhost:1337/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js",
"//localhost:1337/postProcessesLibrary/babylonjs.postProcess.min.js",
"//localhost:1337/loaders/babylonjs.loaders.min.js",
"//localhost:1337/serializers/babylonjs.serializers.min.js",
"https://rawcdn.githack.com/BabylonJS/Extensions/f43ab677b4bca0a6ab77132d3f785be300382760/ClonerSystem/src/babylonx.cloner.js",
"https://rawcdn.githack.com/BabylonJS/Extensions/785013ec55b210d12263c91f3f0a2ae70cf0bc8a/CompoundShader/src/babylonx.CompoundShader.js",
],
"4.2.0": [
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/babylon.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/gui/babylon.gui.min.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/inspector/babylon.inspector.bundle.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/nodeEditor/babylon.nodeEditor.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/materialsLibrary/babylonjs.materials.min.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/postProcessesLibrary/babylonjs.postProcess.min.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/loaders/babylonjs.loaders.min.js",
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.2.0/dist/serializers/babylonjs.serializers.min.js",
],
"4.1.0": [
"https://cdn.jsdelivr.net/gh/BabylonJS/Babylon.js@4.1.0/dist/babylon.js",
//etc
I am going to make latest the default, in case nothing was found. thanks for reporting this!
this change was just merged. the new playground will be deployed soon
Hello @kri100s just checking in to see if Raanan’s fix helped you.
I dont see this issue anymore, thanks