Dear Lasse,
Thank you very much for updating the documentation and explaining the changes made. We can confirm that the solution worked for us and we could successfully replicate the whole Unit Test 4.
You will be able to see below the console outputs with the results we got from our machine.
Best regards,
Server output:
test@test-VirtualBox:/opt/realxtend-tundra$ xvfb-run ./Tundra --headless --file scenes/Avatar/scene.txml --server --httpport 2346 --config tundra.json
Xlib: extension "RANDR" missing on display ":99".
Starting up realXtend Tundra 2.5.2
- Installation directory : /opt/realxtend-tundra/
- Working directory : /opt/realxtend-tundra/
- User data directory : /home/test/.Tundra/
- Config directory : /home/test/.Tundra/configuration/
- Asset cache directory : /home/test/.Tundra/assetcache/
--headless
--file 'scenes/Avatar/scene.txml'
--server
--httpport '2346'
--plugin 'OgreRenderingModule'
[...]
Server started
- Port : 2345
- Protocol : UDP
- Headless : true
Loading startup scene from scenes/Avatar/scene.txml ...
Warning: EC_EnvironmentLight::DeserializeFrom: Could not find attribute "Sunlight diffuse color" specified in the XML element.
Assumption "Unable to render embedded object: File (EqualAbs(scale.x, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1593!
Assumption "Unable to render embedded object: File (EqualAbs(scale.y, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1594!
Assumption "Unable to render embedded object: File (EqualAbs(scale.z, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1595!
Assumption "r.IsFinite()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 739!
Assumption "float3x4::FromTRS(translate, rotate, scale).Equals(*this, 0.1f)" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1601!
Assumption "m.IsColOrthogonal()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 395!
Assumption "m.HasUnitaryScale()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 396!
Assumption "IsFinite()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x3.cpp, line 690!
Assumption "oldLength > 0.f" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 389!
Assumption "q.IsNormalized()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Matrix.inl, line 854!
Assumption "float3x4::FromTRS(translate, rotate, scale).Equals(*this, 0.1f)" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1581!
Assumption "Unable to render embedded object: File (EqualAbs(scale.x, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1593!
Assumption "Unable to render embedded object: File (EqualAbs(scale.y, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1594!
Assumption "Unable to render embedded object: File (EqualAbs(scale.z, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1595!
Assumption "r.IsFinite()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 739!
Assumption "float3x4::FromTRS(translate, rotate, scale).Equals(*this, 0.1f)" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1601!
Assumption "m.IsColOrthogonal()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 395!
Assumption "m.HasUnitaryScale()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 396!
Assumption "IsFinite()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x3.cpp, line 690!
Assumption "oldLength > 0.f" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 389!
Assumption "q.IsNormalized()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Matrix.inl, line 854!
Assumption "float3x4::FromTRS(translate, rotate, scale).Equals(*this, 0.1f)" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1581!
Loading of startup scene finished. 7 entities created in 27.138 msecs.
Warning: Physics: Overflow in AABB, object removed from simulation
Warning: Physics: If you can reproduce this, please email bugs@continuousphysics.com
Warning: Physics: Please include above information, your Platform, version of OS.
Warning: Physics: Thanks.
Assumption "Unable to render embedded object: File (EqualAbs(scale.x, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1593!
Assumption "Unable to render embedded object: File (EqualAbs(scale.y, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1594!
Assumption "Unable to render embedded object: File (EqualAbs(scale.z, 0)" failed) not found. in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1595!
Assumption "r.IsFinite()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 739!
Assumption "float3x4::FromTRS(translate, rotate, scale).Equals(*this, 0.1f)" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1601!
Assumption "m.IsColOrthogonal()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 395!
Assumption "m.HasUnitaryScale()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 396!
Assumption "IsFinite()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x3.cpp, line 690!
Assumption "oldLength > 0.f" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Quat.cpp, line 389!
Assumption "q.IsNormalized()" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/Matrix.inl, line 854!
Assumption "float3x4::FromTRS(translate, rotate, scale).Equals(*this, 0.1f)" failed! in file /home/cadaver/dev/tundra/src/Core/Math/Math/float3x4.cpp, line 1581!
Tests output:
test@test-VirtualBox:/opt/realxtend-tundra$ curl http://localhost:2346/entities/5
<!DOCTYPE Entity>
<entity temporary="false" id="5" sync="true">
<component temporary="false" typeId="26" type="Name" sync="true">
<attribute value="Instructions" type="string" id="name" name="Name"/>
<attribute value="" type="string" id="description" name="Description"/>
<attribute value="" type="string" id="group" name="Group"/>
</component>
<component temporary="false" typeId="5" type="Script" sync="true">
<attribute value="instructions.js" type="AssetReferenceList" id="scriptRef" name="Script ref"/>
<attribute value="true" type="bool" id="runOnLoad" name="Run on load"/>
<attribute value="0" type="int" id="runMode" name="Run mode"/>
<attribute value="" type="string" id="applicationName" name="Script application name"/>
<attribute value="" type="string" id="className" name="Script class name"/>
</component>
</entity>
test@test-VirtualBox:/opt/realxtend-tundra$ curl -X PUT http://localhost:2346/entities/3/placeable?transform=1,10,5,0,0,0,1,1,1
<!DOCTYPE Component>
<component temporary="false" typeId="20" type="Placeable" sync="true">
<attribute value="1,100000,5,000000,0,000000,1,100000,1,000000,0,000000,0,000000,0,000000,0,000000" type="Transform" id="transform" name="Transform"/>
<attribute value="false" type="bool" id="drawDebug" name="Show bounding box"/>
<attribute value="true" type="bool" id="visible" name="Visible"/>
<attribute value="1" type="int" id="selectionLayer" name="Selection layer"/>
<attribute value="" type="EntityReference" id="parentRef" name="Parent entity ref"/>
<attribute value="" type="string" id="parentBone" name="Parent bone name"/>
</component>
test@test-VirtualBox:/opt/realxtend-tundra$ curl -X POST http://localhost:2346/entities
<!DOCTYPE Entity>
<entity temporary="false" id="8" sync="true"/>
test@test-VirtualBox:/opt/realxtend-tundra$ curl -X DELETE http://localhost:2346/entities/5
Deleted
Hi,
thank you for the report.
I have now tested and replicated those errors in TestBed server. The server was running Ubuntu 14.04.1 (x64) Image. I updated 4th unit test documentation, and the changes can now be found at : https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Synchronization_-_Unit_Testing_Plan_and_Report#Unit_Test_4
To replicate the error, I ran a following command found on the error log:
xvfb-run ./Tundra --headless --file scenes\Avatar\scene.txml --server --httpport 2346 --config tundra.json --config tundra-addons.json
I noticed that there were couple of errors in Unit Test 4 documentation and order to make the Tundra run properly in the TestBed server, following changes were made to the command:
xvfb-run ./Tundra --headless --file scenes/Avatar/scene.txml --server --httpport 2346 --config tundra.json
Here is a summary what I changed. First of "--config tundra-addons.json" argument was not needed and it caused a HttpServer module to initialize twice, which made it try to bind 2346 port twice. Second --file scenes\Avatar\scene.txml line backslashes needed to be changed to slashes in order to get the scene loaded properly.
After those two changes, I successfully ran the unit test and checked that desired response was printer by the curl.