Skip to content
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

Catch or repair error if spatialTools folder contains corrupted objects #250

Open
benptc opened this issue Nov 10, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@benptc
Copy link
Member

benptc commented Nov 10, 2020

Reported error of server crashing on launch:

C:\Users\break\OneDrive\Dokumente\vuforia-spatial-edge-server\libraries\hardwareInterfaces.js:145
for (var key in objects[objectID].frames[objectID].nodes) {
^
TypeError: Cannot read property ‘nodes’ of undefined

What i did to track down possible errors was to take out every .index -file that is stored in my Spatialtoolbox/Object/interface folder. After deleting the interface folders, the server started again.

Response:

I believe the cause of this error is that there is something broken with your objects. Objects are stored in documents > spatialToolbox > [NameOfYourObject] > .identity > object.json
If your object exists but this file is missing or broken, you could potentially get such an error.

We could verify the integrity of all objects when the server starts, and either repair or disable them if they're broken and report the error gracefully.

https://forum.spatialtoolbox.vuforia.com/t/spatial-edge-server-failed-to-start/176

@benptc benptc added the bug Something isn't working label Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant