Frontend gets stuck on last asset


#1

Hello,

when loading an experiment in NRP the frontend always gets stuck on the last asset. Interestingly, if I resize my browsers window, the message disappears and I am able to launch the experiment. I cannot post a screenshot yet, but it says:

Loading Experiment…
4/4 assets loaded
Preparing 3D scene: Loading settings.

I am using firefox with i3 as a window manager which could be the reason. This behavior is not a problem for me but nevertheless I thought you might find it interesting - it took some time to find the workaround.

Regards

Fedor


#2

Hi,

I am having the same issue but only when loading iCub-related experiments (custom experiments and example experiments). I have a fresh installation on Ubuntu 16.04 and it provides no error signal in the cle terminal. It always gets stuck after last asset is loaded (with Preparing 3D scene: Loading settings).

Do you have any clue regarding where this issue may come from?

Regards,

Jesús


#3

Hi Fedor, Hi Jesus,

If there is any error in your webconsole (I would expect some 404 errors related to settings not found) you could share them here. To see such errors on Firefox: Tools --> Web Developer --> Web console or shift + ctrl + K.

Best regards,
Luc


#4

Hello again,

I also have the issue with not iCub-related experiments, e.g. Mouse Braitenberg experiment. The web console didn’t show any error at all.

Regards

Fedor


#5

Hi,

One (not too smart, admittedly) suggestion is to use Chrome instead of Firefox. I have noticed that this circumvents the issue, while we try to fix the root of it.

Regards,
Manos


#6

Hi @ManosAngelidis,

your suggestion worked for me. It runs smoothly on Chrome. Can Chrome be set as the default browser when calling cle-frontend?

@lguyot, I didn’t get any error in the web console neither.

Thanks both of you.

Jesús


#7

Hi Jesus,

This is an ubuntu issue, which can be addressed like this https://askubuntu.com/questions/96080/how-to-set-google-chrome-as-the-default-browser . Hope it helps.

Regards,
Manos


#8

Thanks @ManosAngelidis. It is correctly set now.

Finally, we are trying to export our experiment from another computer with an older NRP version (october/2017) to my fresh installation. We have copied the experiment folder in the new installation.

However it gets stuck on loading the experiment (Loading sky box) because it cannot find some texture files (sky/blur/blur-*.jpg). The error at the web console is as follows:
GET http://localhost:8080/assets/sky/img/3denv/sky/blur/blur/img/3denv/sky/blur/blur-pz.jpg 404 (Not Found)

Our experiment is a modification of the iCub visual tracking experiment (using the same environment but with different brain model and transfer functions). The example iCub visual tracking experiment runs with no issue.

I have checked that those texture files can be found and accessed in <NRP_path>/Models/sky/blur/. I have found where those files are reference with no luck. Do you have any idea where I should look at?

Regards,

Jesús


#9

Hi Jesus,

I think that your problem is due to an outdated .3ds file (texture paths have changed and cause a backward compatibility issue).
The solution:

  • either edit your version of visual_tracking_icub/ExDVisualTrackingICub.3ds and make sure that the skyBox texture is specified this way: “skyBox”: “blur”,
  • or use the latest visual_tracking_icub/ExDVisualTrackingICub.3ds instead.

Best regards,
Luc


#10

Hi Luc,

I have followed your suggestion and the .3ds file is now exactly the same as ExDVisualTrackingICub.3ds. However, I still get the same error messages. The CLE has not changed the path where it is looking for. Thinking on something related to caches I have tried to clear browser site cache or even restarting the computer, but the error still persists.

Any further suggestion?
Thanks for your time,

Jesús


#11

Ok. Forget my last message.

I managed our experiment running by clearing all browsing data (all sites, not only NRP related site).

Thanks a lot.

Regards,
Jesús


#12

Hi,

I have installed the NRP in my computer using the docker version. I am having the same issue (“Preparing 3D scene: loading sky box”) when I try to execute the templates includes in platform (firefox and chrome).

Do you have any clue regarding where this issue may come from?

Regards,

Francisco.


#13

Hi Francisco,

Do you have 404 errors in the web console? (CTRL+SHIFT+I) in your browser, then select the Network tab and reload.
You might also have a cache issue, try from within a private bowsing window (aka incognito).

Cheers
Axel


#14

Hi Axel.

Yes, I have a 404 errors in the web console with the skybox_library.json (http://172.19.0.3:8080/assets/libraries/skybox_library.json) and model_library.json (http://172.19.0.3:8080/assets/libraries/model_library.json)

Both files are the folder /var/lib/docker/volumes/nrp_models/_data/libraries/, but the system is not able to find them.

I also have a 404 error with the six files of LOWSKY:

These six files are in the folder /var/lib/docker/volumes/nrp_models/_data/sky/softgradient/, but the system is not able to find them.

How can I solve this problem?

Best regards,

Francisco.


#15

Symlinks for sky and libraries are broken

Connect to the backend container:

nrp_installer.sh connect_backend

Execute:

ln -sf /home/bbpnrsoa/nrp/src/Models/sky /home/bbpnrsoa/nrp/src/gzweb/http/client/assets/sky
ln -sf /home/bbpnrsoa/nrp/src/Models/libraries /home/bbpnrsoa/nrp/src/gzweb/http/client/assets/libraries

For some reason these directories are ignored in ~/nrp/src/Models/create-symlinks.sh


#16

Thank you Fedor for your finding,
In the next repo sync (probably tomorrow), we will add this fix to create-symlinks.sh.

Side note: a new version of the installer script has been released,
which should updates your templates Models and Experiments folders too
(was missing before). Just running the nrp_installer.sh with any command
should auto-update it.