Part continuously loads
saabfan started this discussion in Bug Reporting

So I was just working on my project and I clicked a part to add it to the pallet but it loaded very long. Even after about 5 minutes. My internet connection seemed fine (I could browse in other tabs) but I could click nothing on the mecabricks tab. There was nothing left to do but to refresh the page and my project got lost. 😕
It was the part 60592.

12 replies · Page 1 of 1

Autosave will attempt to get your project back. (File -> Recover Autosave)
Try that.

For the rest, I was just able to load 60592 succesfully, what means that there is not really a problem. It was probably just a short server failure.

I investigated this issue and ThreeJS simply throws an error that it can't load the model. The workshop encountered a JS error and simply refuses to do anything else causing the user to refresh.

Simulated Request:
GET http://mecabricks.com/assets/parts/json/3023.js 404 (Not Found)

THREE.JSONLoader: Couldn't load "http://mecabricks.com/assets/parts/json/3023.js" (404)

Avatar of Scrubs
Administrator

Hello.

I'm aware of this issue. It can happen that sometimes there is a communication error between the browser and the server which generates an error.
Currently, when you click on a part in the library, it creates a transparent div in front that covers the whole page and prevent the user to do anything - This was made to ensure that the part would be loaded before continuing to work on the model (If you look in the DOM tree, you can hide this div).
Shall I just remove this div and leave users free to work while part is loading (if there is an error during part loading, you can still keep working/saving)?

There are a couple of other things I can try to put in place to help loading/reloading parts that failed due to communication errors.

PS: remember that you can recover the last auto-saved model if your browser or the workshop crashed or encountered a bug/issue (model auto-saved every minute).

Thanks a lot for your reply. I'm glad there's an autosave function. 😃 I'll try it tomorrow for sure!
It seems a good idea to remove that div. At least for now I think.
Thanks for your help. 😃

Somehow the "recover autosave" is not highlighted for me and I can't click it. 😦

Avatar of Scrubs
Administrator

Which browser/version are you using?

I'm using Safari (the latest version I think). However I tried it in Chrome as well.

Avatar of Scrubs
Administrator

Can you do this test:

  • Open the workshop and put a part from the library.
  • Wait at least a couple of minutes to make sure the autosave function was triggered (you can check the logs in your console).
  • Reload the workshop page.
  • Check the "recover autosave" menu and select it if highlighted.

Let me know how it goes.

I'll try. Though I have to clarify that I turned off the computer over the night and only checked the next morning. Does it keep the Auto Save that long?

Avatar of Scrubs
Administrator

Normally it shall work even if the computer has been turned off or the browser closed. I use the Local Storage of the browser.
However, if you reopen / reload the browser multiple times, it is lost. It only works the first time.

Then it's my fault...
I think I restarted the browser several times inbetween.
Now I have to rebuild it. Oh well at least I know now there's an autosave function. Thanks for your help. 😃

Avatar of Scrubs
Administrator

I will still try to improve it in a near future to avoid something like that from happening.

Advertising
3 participants
Avatar of saabfan
Avatar of Scrubs
Avatar of Sim

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.