duinoapp / duinoapp-client

GNU General Public License v3.0
11 stars 9 forks source link

Uploading code stuck at 50% #22

Closed shankinsecs closed 3 years ago

shankinsecs commented 3 years ago

We currently use Chromeduino at our school and would like to transition to the Duino App. Our students and facutly utilize chromebooks. We have attempted to upload code to an Arduino Uno from several different devices and continually the upload gets stuck at 50%. Here is the output we receive in the serial box.

mrfrase3 commented 3 years ago

Hey there,

All that log is showing is that it compiled fine on the server. If you right-click on the application, select "inspect" a debug menu should open, navigate to the "console" tab.

Try to upload your code see if any errors appear in red. You can click on the errors to expand them out. If there are any, then could you upload a screenshot?

mrfrase3 commented 3 years ago

Also, just a sanity check, have you tried disconnecting and reconnecting the device, and if that didn't work, rebooting the computer?

shankinsecs commented 3 years ago

We have tried reconnecting the device and rebooting. After waiting for quite some time this message is received in the dev console.

Screenshot 2021-04-21 8 34 31 PM

MrWollenburg commented 3 years ago

Our school is having the same issue. 50% and it will not load beyond. We use Lenovo 500e Chromebooks. I have access to a windows machine with Arduino software on it and the code loads fine on it. Duino 2 always seemed to work, hoping this can be fixed. :)

shankinsecs commented 3 years ago

We have tried on HP G5 G6 and G7 chromebooks, as well as a pixelbook and the Dell 3100 EE chromebooks. Chromeduino 2 was working out for us previously as well but it no longer loads. Just a white screen.

MrWollenburg commented 3 years ago

Shankinsecs, a solution I'm using for my students right now is the following:

1.Navigate to https://edu.codebender.cc/class_demo

  1. Copy student code.
  2. Paste student code into URL bar
  3. Copy code from URL (this puts it all into a single line of code, rather than multiple lines)
  4. Delete code from codebender
  5. Paste code into codebender
  6. Upload code

Temp code fix

Hopefully this helps your school as a temp fix!

mrfrase3 commented 3 years ago

Hmmm, I think this might be the timing issue. We've just gone into a Covid lockdown for the weekend where I live so I now have plenty of time to look into this.

Side note, I'm not a huge fan of code bender after they told me to fix their code for free which they charge people for. You should still be able to use chromeduino 2 until June or something, hard to get an exact date...

MrWollenburg commented 3 years ago

I'd love to use Duino 2, but unfortunately, we can't get passed the server list screen any more.

shankinsecs commented 3 years ago

I'd love to use Duino 2, but unfortunately, we can't get passed the server list screen any more.

Same issue for us. Students who had previously used it are able to. However when I reset their settings and clear the cache it no longer works. We also aren't able to get it to work for new students who hadn't previously used it. Hopefully this information is helpful. We appreciate your time so much mrfrase3!

mrfrase3 commented 3 years ago

I found some of the older servers were timing out which paused the loading of the servers until they were all loaded/timeout. try just waiting on the empty servers list for a few minutes.

shankinsecs commented 3 years ago

Unfortunately no matter how long I leave it sitting on any of our devices I am only getting a blank screen. image

mrfrase3 commented 3 years ago

hm, I'd like to say that surprises me, but chromduino 2 has been so flaky that I'm not...

Anyway, I think I've fixed this, and I've staged a 3.2.1 update with it in beta.duino.app. If someone could test and confirm that its fixed in beta, I'll deploy it into production.

shankinsecs commented 3 years ago

Still getting hung at 50% for me. Not getting any errors in the dev console but I´m going to keep trying and I´ll let you know.

Edit: No matter how long I wait it is still sitting at 50% now on multiple devices. Prior to the beta build it would go to 100% with an error if I gave it enough time.

mrfrase3 commented 3 years ago

looks like the fix wasn't actually applied, I'm deploying version 3.2.2 now to beta. Sorry about that

shankinsecs commented 3 years ago

It appears to be working fine for us now. Thank you so much for your time. Our teachers will be thrilled.

mrfrase3 commented 3 years ago

Cool, I've merged beta into production, you should now be able to use version 3.2.2 on https://duino.app/

Enjoy!

MrWollenburg commented 3 years ago

Cool, I've merged beta into production, you should now be able to use version 3.2.2 on https://duino.app/

Enjoy!

The app works great again, thank you for your hard work! Hope the temp lockdown doesn't cause too much fuss with you guys.