New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AC script generating temporary entities stopped to work after moved my domain to Overte #122
Comments
Been testing it a bit. So far, entities seem to be generated but not transmitted. Also, the problem seems to go a very long way back and to be present in the current Vircadia. |
Very possible that the build used by the domain wasn't the latest Vircadia's build but the one just before. (I might not have update it if there was no protocol changes) |
I'm looking into it. Do you have a server I could connect to and see what it's supposed to look like? |
Sadly only one whit the script broken (See the "firepit" outside at Virz-Junction) You can also make a copy of the script, change the position (in the begining of the script) and run it on your own. |
I should see the cubes in the entity list in Create, right? So far I've gone back to Nov 1, 2021, and it still doesn't seem to work. So I'm wondering if it's very old, or I'm looking for the wrong thing there. |
Edit: I instrumented the script incorrectly. It works like it should.
Init-related messages should show only once. |
I noticed a few error messages in AC server:
I'm not sure if two first ones are a problem, but the third one probably is. |
The first one of those I'm fairly sure is a harmless bug. Not sure about the second, but the third is definitely worth a check. |
This is also suspicious:
|
perhaps this change is causing this? , vircadia/vircadia-native-core#1353 |
This seems to be related to a lot of other problems where entity messages are not sent. For example with voxels sometimes the messages about properties such as scale or dimensions are not sent too, and sometimes just restarting the server helps. |
This would be worth checking, especially since the problem happens in a lot of different situations |
Definitely worth looking into |
I tried adding more such scripts, but they fail to run at all with this message:
|
It turns out we don't have this PR merged yet. |
might be a fix then to this issue. |
When I run assignment client in a debugger, I get entirely different message:
|
The problem is that every time I run it in debugger it works in a different way. Sometimes critical error message appears and sometimes nothing happens at all. |
Most of the time when adding script from Domain Server's web UI, script content is displayed as empty, and the script won't run:
It happens at line 352 in assignment-client/src/Agent.cpp |
It seems like the part that downloads script is broken:
|
Well! That looks like a buffer overflow somewhere |
That would explain the random behavior |
For example this time I got:
And later an error:
|
It looks like the first time the script is sent from domain server it is correct, and the second time it gets corrupted. The bug is on domain server side and not on assignment client side. |
It seems that it's being correctly received from the domain server web UI evert time (line 2499), but gets corrupted before being sent. One example of corrupted data: |
When domain server runs with Valgrind everything works perfectrly each time. |
I think we might have found a fix. I will test it tomorrow and post a PR. |
Somewhere during the 2 last months, I added this AC script
that simply generates a temporary entity (50 sec lifetime) every 3 seconds.
http://metaverse.bashora.com/objects/virz_junction/ACfirepitCubili.js
It was working fine on Vircadia, but after has moved my domain to Overte, the script has stopped stopped to work.
No more entities are generated.
The script doesn't seems to fail. so it could be a problem to transmit this to the client.
The text was updated successfully, but these errors were encountered: