Big Interface update - Fixes for models and the creation of "Entities"


#1

Big changes:

  • Models replaced by Entities - naming, classes, etc.
  • Entities have all the features that models had, but also support some features of particles (like velocity, gravity, damping, etc)
  • ModelItems used to be stored in the element as vectors of ModelItem instances, this has been switched to being heap allocated EntityItem derived class instances, and the tree elements now contain lists of pointers to those heap allocated items. This optimizes our ability to move them around easily when being edited or animated.
  • There are now 3 types of entities, more to come, the three types are: Box, Sphere, and Model.
    The old 32bit server assigned IDs have been replaced by server assigned UUIDs - this fixes several collision bugs in the old code.
  • All the editing APIs (add, update, delete, getProperties, etc) have been updated to use faster recursion operators and better strategies for minimal traversal of the tree. - This improved large tree performance significantly (up to 20,000x improvement).
  • Entities can be accessed by ID through a hash instead of searching the tree… another big performance improvement.
  • Delete entity is now a true message/command and no longer uses the goofy “should die” property.
    Some renaming of “node” in trees to be “element” so as to stick with our naming conventions.
    cleaned up some dead code in the voxel system

Find out more here: https://github.com/highfidelity/hifi/pull/3335


#2

After I updated, I’m unable to log into localhost (either with localhost or using my external IP). I can get to alpha.highfidelity.io no problems, but when I go to my domain (stack manager all updated too), I cannot connect to my domain.

I rebooted my system, deleted interface.ini as well, the stack manager comes up fine, but I cannot connect.

Also can’t get to domain manager web page at localhost:40100 either.

Running Windows 7 64 bit, Win build 1047


#3

@John_Laury are you able to connect today? I was having the same issue last night but it is now resolved.


#4

I cant get on my windows domain just tried and updated it a min ago

I notice that alpha and the sandbox are all empty, do we make all new or are you all likely to restore things?
either’s fine if the vanishing things bugs fixed
:slight_smile:


#5

@judas the guys are looking at the voxels on Alpha and Sandbox.

For your domain server, you are seeing 0 servers when you connect. Correct?


#6

@judas can you confirm your domain server is running, do you have a domain-server.exe process when you look in your task manager?


#7

yeah getting 0 servers in world in task manager @leo i have the domain server exe


#8

ok, and I take it you’ve maybe even restarted your computer and started stack manager/domain-server from scratch since last night, correct?


#9

Also you’re not getting the domain server web interface either?


#10

@leo haven’t restarted my pc but have restarted the stack manager domain server.

did you just suggest have you tried turning it off and on again lol


#11

Already the hifi website works normal again.
Just updated interface to 1049. updated domain server.
But still noi luck. NOT CONNECTED, red line etc.


#12

lol doesnt that solve all problems!! no, just wondering if we were certain that was a recently spawned process or maybe it was just hanging. I will suggest you stop the domain-server and look at task manager to make sure its gone, and then start it again. I just want to make sure we’re certain we have a single, “valid” domain server process.


#13

Using 1049 Interface and Stack Manager updated soon as I launched - Windows 7 64 Bit.

Interface doesn’t connect to local host - this repeats in debug outout

[2014-09-04T12:59:35] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:36] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:37] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:38] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:39] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:40] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:40] Clearing the NodeList. Deleting all nodes in list.
[2014-09-04T12:59:40] Application title set to: OmegaHeron @ localhost (NOT CONNECTED) (build 1049) - ?401.93460083
[2014-09-04T12:59:41] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:42] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:43] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:44] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:45] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:46] Sending connect request to domain-server at “localhost”
[2014-09-04T12:59:46] Clearing the NodeList. Deleting all nodes in list.
[2014-09-04T12:59:46] Application title set to: OmegaHeron @ localhost (NOT CONNECTED) (build 1049) - ?401.93460083

Attempt to connect to domain web interface http://localhost:40100/ - seems to connect but no content is delivered leading to a waiting for page to load indication (Firefox Win64 latest).

Output from domain-server:

C:\Users*\AppData\Local\High Fidelity\Stack Manager>domain-server.exe
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Could not find JSON config file at "C:/Users/
*/AppData/Local/High Fidelity/Stack Manager/resources/config.json"
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Setting up LimitedNodeList and assignments.
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Inserting assignment UUID: {a9cc5222-6237-4194-975c-37d06545632e}, Type: 0 to static assignment hash.
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Inserting assignment UUID: {744a3f58-876e-4210-9579-33cec519d6f0}, Type: 1 to static assignment hash.
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Inserting assignment UUID: {31876c77-db42-4cb9-8c9e-e897acf3806e}, Type: 3 to static assignment hash.
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Inserting assignment UUID: {15248e17-75da-4ef1-8639-b678e6158716}, Type: 4 to static assignment hash.
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Inserting assignment UUID: {1f4dea09-cc63-43ac-b60f-3ff2686739f8}, Type: 5 to static assignment hash.
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Inserting assignment UUID: {96d51b90-a8fb-423f-ae08-cace5e9fabe8}, Type: 6 to static assignment hash.
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] NodeList socket is listening on 40102
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Reset UUID for assignment - UUID: {94d6e0b3-eb09-404e-b903-46441e1859a8}, Type: 1 - and added to queue. Old UUID was “744a3f58-876e-4210
-9579-33cec519d6f0”
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Reset UUID for assignment - UUID: {0dc92c2c-b83d-4b7f-917d-c9bab1ed7399}, Type: 0 - and added to queue. Old UUID was “a9cc5222-6237-4194
-975c-37d06545632e”
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Reset UUID for assignment - UUID: {86d00c97-1675-46b0-9111-03e67dc06a9c}, Type: 3 - and added to queue. Old UUID was “31876c77-db42-4cb9
-8c9e-e897acf3806e”
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Reset UUID for assignment - UUID: {44be4347-83a8-42b6-b560-026c3c0dea1e}, Type: 5 - and added to queue. Old UUID was “1f4dea09-cc63-43ac-b60f-3ff2686739f8”
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Reset UUID for assignment - UUID: {33cab1f1-1c2-44f7-8840-f265397852ed}, Type: 6 - and added to queue. Old UUID was “96d51b90-a8fb-423f-ae08-cace5e9fabe8”
[DEBUG] [2014-09-04 12:56:13 Eastern Daylight Time] [3144:3144] Reset UUID for assignment - UUID: {422033f8-899-43b9-81ab-fc1f666e7874}, Type: 4 - and added to queue. Old UUID was “15248e17-75da-4ef1-8639-b678e6158716”

Output from AC:

[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69ae0
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [7304:7304] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69b70
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [7304:7304] [assignment-client] NodeList socket is listening on 55357
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [7304:7304] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [7304:7304] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [7304:7304] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [1760:1760] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69bd0
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [1760:1760] [assignment-client] NodeList socket is listening on 55358
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [1760:1760] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [1760:1760] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [1760:1760] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [3580:3580] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69c00
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [3580:3580] [assignment-client] NodeList socket is listening on 55359
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [3580:3580] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [3580:3580] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [3580:3580] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6472:6472] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69c30
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6472:6472] [assignment-client] NodeList socket is listening on 55360
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6472:6472] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6472:6472] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6472:6472] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [9192:9192] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69c60
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [9192:9192] [assignment-client] NodeList socket is listening on 55361
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [9192:9192] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [9192:9192] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [9192:9192] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6748:6748] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69c90
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6748:6748] [assignment-client] NodeList socket is listening on 55362
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6748:6748] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6748:6748] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6748:6748] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6872:6872] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5620:5620] [assignment-client-monitor] Spawned a child client with PID 0xb69cc0
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6872:6872] [assignment-client] NodeList socket is listening on 55363
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6872:6872] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6872:6872] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [6872:6872] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5388:5388] [assignment-client] Could not find JSON config file at “C:/Users/***/AppData/Local/High Fidelity/Stack Manager/resources/config.json”
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5388:5388] [assignment-client] NodeList socket is listening on 55364
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5388:5388] [assignment-client] Changed socket “send” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5388:5388] [assignment-client] Changed socket “receive” buffer size from 8192 to 1048576 bytes
[DEBUG] [2014-09-04 12:55:47 Eastern Daylight Time] [5388:5388] [assignment-client] Waiting for assignment - UUID: {00000000-0000-0000-0000-000000000000}, Type: 7

Also - process manager shows all tasks running and I’ve restarted/reinstalled. ACs show minimal memory and cpu usage (as expected since they’re doing nothing).

It’s also worth noting that I can no longer connect ACs to alpha.highfidelity.io and process work units, prior to last night I had been running several ACs - now (regardless of old/new version) they sit and wait for work that never comes - same as the localhost experience.


#14

This is expected, credits pool has been temporarily stopped since it was causing crashes in the voxel servers.

Thank you for the log information, looking into this.


#15

@leo Thanks and if there’s anything else I can provide please let me know.


#16

More ductape needed. tested the new stack manager. i see logs but the keep at 0 Bytes. teleporting to own domain gives still RED square and NOT CONNECTED the interface.exe console keeps hanging at.“sending connect request to domain server bla bla”


#17

I did notice it does write the log on exit though.


#18

Domain Manager on Windows (for hifi://hifi.aiai.ed.ac.uk) still seems not to be working as reported elsewhere, interface attempt to connect to it just reports “NOT CONNECTED”, even with update a few moments ago. Calls to web interface on port :40100 just hangs


#19

Can I suggest that the central “Browse Models” icon be changed to have 3 light coloured dot and bars on the standard dark grey background to provide contrast against any scene. The current icon is lost on dark background (like the standard starry night sky).

The new box and sphere icons do not “lock on” when clicked to indicate they are selected. Ah, I just realised they act to put one cube or sphere in world… but it appears behind the avatar so I had not seen that until I rotated.