-
Notifications
You must be signed in to change notification settings - Fork 170
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
Empty GUI (even using example) #136
Comments
I experience the same problem with an ESP32 target. Only the header and name are shown in the GUI. The ESP32 resets after refeshing the page :
I had this probleme with my own program and with the tabbedGui example. |
Having the same issue as @enwi reported with following setup: Board: ESP-WROOM-32 (ESP32DevModule) Windows 10 |
Going back to an older commit it works fine. I don't know which commit breaks it though, haven't had the time to go through the latest commits to figure it out. |
I tried version 1.6.3 (with arduinojson version 5.13.4) and that works fine. |
It seems that #131 causes the issue. I experienced the same when I was trying to use this newly implemented feature. Have no clue about Javascript and have not dived deeper in it.. |
Hey everyone, this kind of slipped through, it should now be fixed on master |
Still there. Downloaded 2.0.2 on 11/15. Compiled the gui example for ESP32. |
I have the same issue. I figured out, that the json coming from the websocket is missing the attribute This patch fixes it for me. But I have not enough insights to this project to know if this is a sufficient solution or a dirty hack 🤷♂️
I hope this helps someone to create a good PR 👍 |
I also have the (occasional) empty GUI problem for quite some time, also see this issue I started: #92 It would be great if @trigrab's visible attribute solved the problems, I'll give it a try. |
Using the modifications posted by trigrab cleared my problem. |
just tried the fix mentioned by @trigrab on a ESP8266 / NodeMCU Board with the tabbed GUI example. With and without fix i´m getting "Exception(28) upon browsing to the site. |
Tried it with gui.ino example using an ESP32. The ESP was connected to
my local network. Haven't tried it with the ESP acting as an access point.
…On 11/19/2021 11:18 AM, misterm15 wrote:
just tried the fix mentioned by @trigrab <https://github.com/trigrab>
on a ESP8266 / NodeMCU Board with the tabbed GUI example. With and
without fix i´m getting "Exception(28) upon browsing to the site.
Browser shows "Control" "Connected" but ESP is going to list a
"Exception Stack" and then reboots.
Did you guys just tried this with the current masterbranch and an
example or your own written code? (shouldn´t matter at all..)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#136 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK6ZNU3CAPGZXQTRBRD75L3UM2BGTANCNFSM5DO5PJVA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
checked this out also on an ESP32. Tabbed Gui is causing trouble. |
Same here.
…On 11/19/2021 11:42 AM, misterm15 wrote:
checked this out also on an ESP32. Tabbed Gui is causing trouble.
The standard GUI is booting and working.
Strange..
I´ll post my "UART Log below from the ESP32 with the tabbed Gui
example hooked up to my private network and trying to connect to the
site. Fix was implemente
ESP_crash_tabbed_gui.txt
<https://github.com/s00500/ESPUI/files/7572003/ESP_crash_tabbed_gui.txt>
d.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#136 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK6ZNU3FAHZBSQMDPTONH7DUM2EBZANCNFSM5DO5PJVA>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Similar results with gui-generic-api |
OK, I tested adding:
This doesn't work, the 'control' class does not have property 'visible'. BTW: tabbed GUI is working fine for me on my ESP32 project. Project is here (https://www.hackster.io/ericBcreator/alarm-clock-with-web-interface-wake-up-light-temp-more-75dc6a). |
I've had more thoughts on this issue. I was trying to implement some other feature but kept getting hit by this issue (despite my claim that my commit above fixes it ;). I therefore had to investigate this to get anything else done. I've built a very large GUI on the 8266 and it seems that past a certain size the I reworked the websocket communication to include a new message type, You can see what I've done in this test branch: iangray001@78317ce Before I wrap this up as a proper PR, @s00500 your comments reference "a change in the ESPAsyncWebserver library this had to be changed to be sent as one blob at the beginning". What is this referring to? Is this something that would prevent this fix from working? |
Hi all, sorry for the trouble, I have actually fixed this but did not push the commit, @iangray001 as for your issue: Yes, we do have an issue with the initial data about the page, and I was already thinking about chunking it up... but I never got to it, a PR that does that would be very welcome! As for my comments about ESPAsyncTCP, I cant really remember that, can you point me to the place where I made them ? In general, as you all may have noticed I do not have a lot of time to spend on this project, and I am also not using it actively in my own projects at the moment. Therefore if anyone of you is interested in helping maintain and extend it I am open to adding new maintainers to the project, @iangray001 you seem like a good candidate ;-) |
The flag being missing is a problem, but I can verify that for larger GUIs the initial message fails entirely, visibility notwithstanding. The comment about ESPAsyncTCP is here. Sure, add me as a maintainer. |
This should now definitly be fixed on master @iangray001 Hm... I somehow think I know what that was about, back then elements where sent indifidually... but with you chunking of 10 elements it should be fine... at least for the short term ... |
Downloaded the current master branch to check @iangray001´s work but there seems to be a function not existing anymore: |
Maybe you have an out of date version of the ArduinoJSON library installed? That function is in the current release. Try a |
Awesome! This issue goes on me :D |
Working for me too. Thank you @iangray001 & @s00500.
|
Describe the bug
I was trying to track down a bug where the ESP8266 was resetting (due to LoadProhibited). So to confirm that it has to do with my custom code I went back and tried using the example code (this one), but noticed that no GUI is shown at all. Only the header and name as well as online are shown.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
GUI should not be empty.
Screenshots
Desktop:
Smartphone:
Additional context
Webconsole log:
ESP8266 log:
The text was updated successfully, but these errors were encountered: