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

Console in version 5.11.1e does not work #1706

Closed
chkbln opened this issue Jan 25, 2018 · 12 comments
Closed

Console in version 5.11.1e does not work #1706

chkbln opened this issue Jan 25, 2018 · 12 comments
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended

Comments

@chkbln
Copy link

chkbln commented Jan 25, 2018

Hello,

with version 5.11.1e the console does not work anymore.
No messages are displayed, for example, from the MQTT.
Input commands do not produce output in the console.
Version 5.11.1d is fine

greetings

@arendst
Copy link
Owner

arendst commented Jan 25, 2018

It now uses chunks.

Pls provide output of command status 0. What version of esp/arduino do you use? What browser?

@auno88
Copy link

auno88 commented Jan 25, 2018

It happens the same to me. The console does not work and it works extremely slow. I have returned to version 5.10 and everything works correctly. I use basic sonoff and it happens to me with all browsers.

@chkbln
Copy link
Author

chkbln commented Jan 25, 2018

IPhone7 Safari does not work

Win 10 IE works but delayed, reports Komamndos delayed 3-5 sec. Back

Win 10 Firefox 58 does not work

Win 10 Edge works after about 1 minutes (telemetry period = 60) the messages come, commands are not returned. Back to the main menu, then back to the console. Console empty. With the telemetry the entries come again

Androit Chrome like Win 10 Edge

Hardware Wemos Mini Clone

@arendst
Copy link
Owner

arendst commented Jan 26, 2018

What version of esp/arduino do you use? 2.3.0 or 2.4.0?

Using 2.3.0 it seems to not work as you describe. Using 2.4.0 some commands are lost. I guess I have to refrain from using chunks and go back to full page. Pity as it introduces other problems.....

@arendst arendst added the bug Type - Confirmated Bug label Jan 26, 2018
arendst added a commit that referenced this issue Jan 26, 2018
5.11.1f
 * Revert chunked webserver pages as it fails on many browsers
due to chunks being too small (#1706)
 * Reduce initial console weblog
from 20 to 13 lines due to memory constraints
@arendst
Copy link
Owner

arendst commented Jan 26, 2018

Just released version 5.11.1f uses the "old" full webpage again and should solve the issue noted here.

I did notice that Microsoft Edge needs at least 9 characters on it's console input field before taking action after hitting return. This needs more investigation but workaround is entering extra spaces or hit the return key twice ;-).

@curzon01
Copy link
Contributor

Console works on 5.11.1f with browser where the webinterface works (here for example Chromium 63.0.3239.132 (official build) built on Ubuntu)

But what's the reason why webinterface does not work in general on branch "development" using Core 2.4.0/SDK 2.1.0?

  • On my smartphone there are often no response on http port 80 and if responding, the page is completely empty.
  • On Desktop browser sometimes there is garbadge on screen because the responding data does not contain the complete html text.

@arendst
Copy link
Owner

arendst commented Jan 26, 2018

Lack of ram result in incomplete pages and empty screens. This is more obviouse now as the mqtt buffer has been increased using more ram to provide hass mqtt discovery. Using 2.4.0 makes things worse as it uses more ram and is experimenting with LwIP versions.

Try 2.3.0 for a more robust experience.

@emontnemery
Copy link
Contributor

@arendst, how much extra ram is used by 2.4.0?

@chkbln
Copy link
Author

chkbln commented Jan 26, 2018

Hello
with version 5.11.1f the console works again.
I use arduino with 2.3.0

Thanks and regards

@arendst
Copy link
Owner

arendst commented Jan 27, 2018

@emontnemery ram usage is a bit dynamic. What others have noted too is that after a minute or 10 ram usage settles some 4k less than with 2.3.0. This happens because of logging which assigns up to 20 ram slots per log line of max 400k. Below 14k free heap it becomes a problem to display the Configure Module webpage for a Generic (former Wemos d1 mini) module displaying all GPIOs. Although the webpage is about 6k3 is seems to me the webserver is allocating memory again to serve the page.

@arendst arendst changed the title Console in version 5.11.1e does not work [Solved] Console in version 5.11.1e does not work Jan 27, 2018
@arendst arendst added the fixed Result - The work on the issue has ended label Jan 27, 2018
@arendst arendst changed the title [Solved] Console in version 5.11.1e does not work Console in version 5.11.1e does not work Jan 27, 2018
@emontnemery
Copy link
Contributor

@arendst I pushed a suggestion for non-dynamic log buffer in #1730 to avoid system memory use varies due to log content

@arendst
Copy link
Owner

arendst commented Feb 3, 2018

Changes implemented in 5.11.1g

@arendst arendst closed this as completed Feb 3, 2018
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.11.1f
 * Revert chunked webserver pages as it fails on many browsers
due to chunks being too small (arendst#1706)
 * Reduce initial console weblog
from 20 to 13 lines due to memory constraints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

5 participants