Containers's content gets randomly corrupted upon close

https://files.catbox.moe/cm5quy.log ← saved my console into a log file

edited out, refer at the end of the post

omg i forgot to take a screenshot rip

well im gonna describe it

when you close a container (in my case, blue), and then ~1 sec later you open it, sometimes the container refuses to open and the arrow grows bigger (not intended). the code upon save inside the container is lost, and in the console the code shows the error above ^^

well, unless if you do like me, save when the player returns a 404 error :stuck_out_tongue: that wont save it
at least its not a lot of code that didnt get saved

EDIT:

looks like the duo error throws are not the same, so below are the TWO err:

viewer.js:1 Uncaught TypeError: Cannot read properties of null (reading 'controlScript')
    at j (viewer.js:1:36074)
    at renderer.js:878:10
    at Array.forEach (<anonymous>)
    at S (renderer.js:873:1)
    at E (viewer.js:1:44175)
    at T (renderer.js:981:3)
    at o.end (renderer.js:1002:3)
    at o.endPress (pressure.js:35:16)
    at HTMLBodyElement.i (pressure.js:65:41) // BODY element
j @ viewer.js:1
(anonymous) @ renderer.js:878
S @ renderer.js:873
E @ viewer.js:1
T @ renderer.js:981
end @ renderer.js:1002
endPress @ pressure.js:35
i @ pressure.js:65
viewer.js:1 Uncaught TypeError: Cannot read properties of null (reading 'controlScript')
    at j (viewer.js:1:36074)
    at renderer.js:878:10
    at Array.forEach (<anonymous>)
    at S (renderer.js:873:1)
    at E (viewer.js:1:44175)
    at T (renderer.js:981:3)
    at o.end (renderer.js:1002:3)
    at o.endPress (pressure.js:35:16)
    at HTMLDivElement.i (pressure.js:65:41) // DIV element here
j @ viewer.js:1
(anonymous) @ renderer.js:878
S @ renderer.js:873
E @ viewer.js:1
T @ renderer.js:981
end @ renderer.js:1002
endPress @ pressure.js:35
i @ pressure.js:65

shouldnt matter much but hey! shouldnt ignore any details

6 Likes

you can simulate the arrow growing when you long-press the arrow when a container is a close mode - but unlike the bug, upon release the container does in fact open itself

e: should i make a bug report lol

5 Likes

Intended (secret feature discovered!) [1]

Not intended

I think I’ve fixed this before but I’m not sure where the fix went :sweat_smile:
Also, this may be a bug that current THT staff may have to look at, as I’m not interning with them this summer. Unless I’m really really bored and spot the cause quickly, but I also have not touched the code base since last summer


  1. Big arrow means expand everything nested inside; i.e. all nested custom rules, if blocks, etc. The bug usually comes from infinite recursion of some sort, though your error seems to be more with corruption of block data or ability data ↩︎

6 Likes

oh wow thats awesome(e)!

bahahaha what :joy::sob:

mhmm okay - should i portal everything into a new bug report topic?

4 Likes

are you actually kidding me
this happened again
AND THIS TIME its hours of work
hoping saving work will work this time

3 Likes

okay this is really bad
console returns 404 each time i try to play the project which means on save the project will not save
also the player is broken i cant play the project and now i cant scroll in the editor

EDIT:
ok boom
@/Awesome_E undo undones the bug :joy:
i was able to save my project and it works perfectly

4 Likes

yes you definitely should

Oh good, undo works as intended! I remember being proud of that system

5 Likes

@t1_hopscotch portalled everything into this new topic:)

5 Likes