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

does not come to end on Gitpod #67

Closed
5chufti opened this issue May 19, 2020 · 7 comments
Closed

does not come to end on Gitpod #67

5chufti opened this issue May 19, 2020 · 7 comments

Comments

@5chufti
Copy link

5chufti commented May 19, 2020

Hi, wanted to (re)compile shutterversion what worked ok in march, now after this message

Compiling .pioenvs/custom/FrameworkArduino/umm_malloc/umm_poison.c.o
Archiving .pioenvs/custom/libFrameworkArduino.a
Indexing .pioenvs/custom/libFrameworkArduino.a
Linking .pioenvs/custom/firmware.elf
Welcome stranger!

runs for ever ...

@benzino77
Copy link
Owner

It means that there was a problem with WebSocket connection. You can have only one tab/window open with TasmoCompiler.
In other cases just refresh the page.

@5chufti
Copy link
Author

5chufti commented May 20, 2020

Hi,
thanks for the reply. On several tries I did make sure I stopped the workspace, logged in to gitpod on a different machine, started the workspace, went through the config, hit "compile" and ... still the same. no more action after "Welcome stranger!" And I am sure there was no other tab/window with the TasmoCompiler. Refreshing the page just brought me back to the first config screen.
Did the same today, several times, different machines. Now, suddenly on the x-th try it finally brought

Retrieving maximum program size .pioenvs/custom/firmware.elf
Checking size .pioenvs/custom/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [====== ] 56.3% (used 46128 bytes from 81920 bytes)
Flash: [===== ] 53.2% (used 544804 bytes from 1023984 bytes)
Building .pioenvs/custom/firmware.bin
Creating BIN file ".pioenvs/custom/firmware.bin" using ".pioenvs/custom/firmware.elf"
========================= [SUCCESS] Took 50.95 seconds =========================
Finished. Exit code: 0.

and showed the download buttons.
but at the end again

Welcome stranger!

if this "welcome stranger" is wanted, why did the compile skip the elf/bin conversion earlier.
if it is not intended to bring "Welcome stranger, where is this coming from?

p.s.: now on another go I have the circle spinning w/o any output in the compiler window...

@benzino77
Copy link
Owner

Sorry, I cannot reproduce your problem. I'm pretty sure that this is a network problem. WebSocket connection is interrupted.
Before click "compile" button You can hit "F12" key to open browser dev tools. Choose "console" and observe if there is some information.

@5chufti
Copy link
Author

5chufti commented May 21, 2020

I dont get anything in console at the time of "welcome stranger!" and the messages in network window are the same in both cases (not ending and showing download buttons). At the moment it is a 50:50 chance for me. Is there a way to retrieve the files (asuming the compile comes to a regular end)?

@benzino77
Copy link
Owner

This is really strange... I do believe that you should see some errors in the browser console tab. You can find the websocket connection (screen below) on the network tab and watch how messages are flowing from server side to your browser:
image

Yes, you can download binary by hand. It is located in /tmp/Tasmota/.pioenvs/custom. Just open new terminal, type cp /tmp/Tasmota/.pioenvs/custom/firmware.bin . and the firmware.bin file should be available to download from the gitpod IDE:
image

benzino77 added a commit that referenced this issue Jun 8, 2020
@benzino77
Copy link
Owner

Hi @5chufti
I was able to reproduce your problem (well at least I think so). I do believe that the problem is with the amount of data send via WebSocket in very short time. This will occur when the compilation messages arrive very fast (fast compute unit on which the compilation is performed). I've prepared new branch pa/patch-socketio to address this problem (it groups messages to bunch of 20 lines and then send it to browser). Could you please check, if that solves your issue?

To test it on gitpod just go to https://gitpod.io/#https://github.com/benzino77/tasmocompiler/tree/pa/patch-socketio

@5chufti
Copy link
Author

5chufti commented Jun 9, 2020

Hi,
looks like you did put the finger on the right spot. I tried several runs with different configurations and all went well.
Thanks for your great work!

@5chufti 5chufti closed this as completed Jun 9, 2020
benzino77 added a commit that referenced this issue Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants