Dear community friends, once again I really need a lot of help.
I'm having a problem building my app.
BACKGROUND
A - I created my app with the "ai2" server and periodically exported the .aia files as backups (the last two are v51 and v52).
v51: 12021 blocks (.aia size 4.34MB)
v52: 12495 blocks (.aia size 4.35MB)
B - My app works properly when using the companion. I tried launching the companion from both the "ai2" and the "code" servers, and with two devices (Android 8 and 16).
C - When I tried to build the app from the "ai2" server, I received the error message
"Server error: could not save one or more files. Please try again later!"
In a previous post, we already addressed this issue and determined that the error was related to the number of blocks (>10k).
For this reason, I now use the "code" server to build my app. I built my v51 app (12021 blocks) and it works fine.
PROBLEM
When I try to build my v52 app (12495 blocks) from the "code" server, I get the error message
"Build failed! [RunD8] ERROR: d8 failed"
Doing some online research, it seems the problem is due to an excessive number of blocks, but I don't think that's the case because I've done some tests.
TESTS I CONDUCTED
1 - I gradually reduced the number of blocks in v52
*v52 with 11992 blocks: "Build" error (Strange! v51 with 12021 blocks has no problems)
*v52 with 11142 blocks: "Build" error (Strange! v51 with 12021 blocks has no problems)
2 - I have a very long "when WEB.GotText" block (3044 blocks). I split it into 3 blocks using "clocks", but that didn't solve the problem.
I'm not surprised by this because the same "when WEB.gotText" (3044 blocks) is present in v51 and doesn't cause any problems.
3 - I noticed that the "code" server address is now https://code2.appinventor.mit.edu/ (previously https://code.appinventor.mit.edu/).
Even if some limitations have changed, my v51 app still "Builds" without errors in "code2."
At this point, my attention focused on two very large "when WEB.GotText" (3044 blocks + 947 blocks).
4 - I tried collapsing the two "when WEB.GotText", but that didn't solve the problem.
5 - I tried renaming the two "when WEB.GotText", but that didn't solve the problem.
6 - I gradually eliminated the number of blocks in the two "when WEB.GotText" in v52, until only the two empty "when WEB.GotText" containers remained.
*v52 with 8506 blocks: "Build" error (Strange! v51 with 12,021 blocks has no problems)
7 - At this point, I disabled the two empty containers "when WEB.GotText". Now "code" server correctly "Builds" the app...
This is very strange because the two "when WEB.GotText" containers (now disabled) are empty! If I enable even just one of them, the error returns.
8 - I tried using AI2Offline, but I get the same error I initially received on the "ai2" server.
"Server error: could not save one or more files. Please try again later!" (see BACKGROUND)
9 - I tried using the "ai2-test" server, but I get the same error I initially received on the "ai2" server.
"Server error: could not save one or more files. Please try again later!" (see BACKGROUND)
What's going on?


