-
-
Notifications
You must be signed in to change notification settings - Fork 613
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
URL Assets restart the browser #1031
Comments
I can confirm a similar problem with image_2018-11-23-Screenly-OSE-lite Screenly's own widget URLs load fine. Most other URLs cause the browser to crash. I have to uninstall and use a previous version as this version unuseable. |
This is very strange, because we haven't really changed anything related to this in Screenly OSE (other than in the experimental branch). Can you try to run an upgrade to the latest developer release? That should also upgrade the system packages. |
How would I do that exactly? can't find instructions. If you mean just run the upgrade script, |
You're spot on. That's it. |
I seem to be stuck on TASK [system : Perform system upgrade] |
go figure - as soon as I posted it woke up :) |
@qbicdesign that's a heavy operation. Depending on your interenet connection, SD card and Pi, 20 minutes+ isn't unexpected. |
So... After upgrading to dev branch, instead of crashing it seems that Screenly now just skips assets that it (for some reason) thinks are not available. The clock widget loads, as does one of our internal URLs The weather widget (which is customised for our locale) won't load: And my Google slides presntation is also skipped: There is no reason I can see that these URLs should be unavailable. |
I should add that I'm currently running on Raspberry Pi 2 model B+ |
An update to this issue. The first URL is loaded to set the Widget language to french: The second URL is the call to the Widget: I just updated the RPi to the latest development branch. See attached log file. |
About the other issue with an Instagram URL Asset, the Instagram post page is shown correctly, then the next Asset, a JPEG image, is shown, but the browser freezes at that point and the last image stays on. The logs indicate:
The page is not black, the last image is always on, and the viewer never restarts. See logs. |
I closed this by mistake... re-opening... |
Hmmm.. I was also getting the black page, but I removed all assets, then added the following assets: https://www.gorendezvous.com Just for testing purposes to see at what point it stopped loading, and I can't seem to find the reason as to why now it started working.. @denfau - are you still experiencing this issue? can you tell me what version of uzbl you get when you do the following: example: Do you happen to know what version of libwebkitgtk and libjavascriptcoregtk you have? just wondering. |
@ealmonte32 As for libwebkitgtk and libjavascriptcoregtk, I do not know what versions... I will be able to provide additional info only in a few days |
ok no problem, i just want to always check first to see if something that works for me and not for someone else has to do with some version of a library or something else.. here are the commands sorry for not posting it before: |
@denfau @qbicdesign - this is probably a guaranteed fix for these websites.. This is a sort of not very well liked setting out there in the python world because it sets a global default that may not work with some websites, but to fix this edit the following file: then somewhere on the top add the following:
ctrl+x to save, press y, then enter.. then you can just reload screenly viewer like this: I haven't had a lot of time lately to try and figure out why the current unicode converter currently set in the viewer code is not working as expected, so for the time being this solution is only one I found, unless someone else has different one.. |
Seems to have fixed it for me. |
We're working on a better fix to deal with URLs containing unicode and non-ascii characters through encoding. |
@denfau Hi! |
@ealmonte32 After applying your fix, and now after a reboot, no URL assets at all are showing, it just skips to show only video assets |
I just don't get it tho, cos this has worked flawlessly in previous versions. |
The setting of system default to utf8 made it not show any assets at all? And about working flawlessly before , you know lots of changes have happened over time, and raspbian and the uzbl browser itself have changed too, but yes it's something between Screenly and the browser uzbl most likely.. it's hard to isolate it without debugging it. |
Weird that the log is showing me that the URL isn't skipped on all, but as far as I have seen so far, they don't show at all. |
@ealmonte32 what journalctl command are you talking about? |
So I left two screenly Pi's over the weekend running the same assets/URLs, so far one of them continued and did not stop at all, but I removed the weather.srly.io asset on both, and I also removed the boardclock one, both gave the same Unable to load error with those on. I have google slides running on both and that never gives the Unable to load error. But, now I got an "Unable to load: Message corrupt" on one of the Pi's, but this url that gave the corrupt message is also on the other Pi as well and that one did not give such error, so it is very hard to isolate the issue. As you know when figuring something out we need to isolate piece by piece and see what works and what doesn't, but since this is a random works-now-doesn't-later type issue, it must be with uzbl browser.. the screenly viewer has not changed so it must be the process that is retrieving the URLs, aka uzbl browser.. The command to see the logs of what is going on in the background processes is called journalctl, if you type that in the console of the Pi it should give you lots of messages, but if you want to post here, you can either echo all to a text file and upload or paste the filtered log here by typing: |
Just to let you guys know that I am able to load the page now every time without a problem in terms of browser restarting, read my comment: Remember this is on the production branch. |
Hi, I'm the owner/create of boardclock.com. I was doing some searching on the web and saw your thread describing the issue with the TLS problem causing screenly to freeze. I just want to let you know, I and another friend of mine both had the same issue with boardclock, not sure what the issue is as the SSL certs should be fine. But, I can tell you this, I reinstalled screenly and chose the dev version during install and I have not had an issue since. If there is anything I can help with please let me know. |
Correct, it is not an issue with boardclock.com , it just happened mostly on boardclock and screenly URL because during testing phase those were the most commonly used URLs added to the assets, thus it just happened to be that it got mentioned the most because when assets were on google.com domain it would not give TLS handshake error. This TLS issue actually belongs on another post, it sort of got intertwined by mistake into this because some users were getting both, TLS error and browser crashing because of uzbl uri unicode errors. P.S. boardclock is still displaying daylight savings time =] |
Thanks for following up with me. As for daylight savings time, the old way I was getting time was from the device it was being displayed on. I have since added a new feature to get UTC time and convert it to whatever timezone you choose, feel free to login to https://boardclock.com and adjust the setting according in the Timezone Selection section. |
A little update from me. I made a new install of Screenly for a new TV in our school. During initial install I had the Raspberry on same VLAN as all our desktop PCs, I used OSE version 2018-05-04-Screenly_OSE_4GB.img So this does actually relate to my earlier suggestion :
Is there anything that can be done programatically to make Screenly's DNS queries a little more patient? |
Interesting find. We don't really do anything fancy with networking tho. Just using the built-in functionalities really. |
Having said that, I'm now finding that the Screenly weather and clock widget pages don't always load fully. Different results on different TVs yet all running identical versions. I may try turning of the ISP DNS completely and see if that makes a difference. I'm seeing these errors in the logs
|
This may not be python/screenly related, but probably uzbl and libwebkit because it is what handles the content that loads on the screen. We would need to see logs:
That warning is related to the urllib package as you can read from the URL it gives you, it doesn't prevent the page from loading the contents. Also, that is another topic/issue, you can search the forums and Issues for the keyword "tls error" and you can read all things we tried to do to isolate and pinpoint the problem, and only recommendation I have as the best workaround is to create a Google Sites page and literally just use the insert URL feature and put the website you are trying to reach into it, you will be connecting to sites.google.com instead of the other pages, which has not given me the TLS error. Ok, last but not least: If I were you I would add the NTP pool address of your corresponding timezone to the following file: After all has been installed and setup, etc, I highly recommend updating all libraries/packages: P.S. I know it sounds like a lot to do but sometimes the long way is the best way, if doing these things make your URL/assets work properly, I personally would like this issue to close since I am not experiencing it after doing what I wrote above. |
I did a fresh install following your suggestions. I have setup only two URL assets for now, Screenly Weather and Screenly Clock. I will monitor over the next 24h, and let you know how things go. Thanks to all for helping. |
No prob. |
The two Screenly web assets are still running without any issues. I will try a few Instagram URL assets for a few days, which I had trouble with... |
@denfau To stop getting InsecureRequestWarning, simply do this: (all other suggestions to suppress this warning should be ignored) |
@ealmonte32 I still see this warning in the logs, but it does not stop the viewer.
Thank you for the research and help. |
@denfau |
@vpetersson This problem concerns UZBL browser and not Screenly.
But we also have some issues related to a similar error. These were solved here #1039 Thus I suggest move this issue here https://github.com/uzbl/uzbl/issues and close it. |
Ok let's move away from UZBL as soon as possible then. |
Overview of the Issue
Hi, I have a few Web assets that are making the viewer hang.
The links work without issues in Firefox, Edge, IE.
Reproduction Steps
Environment
Thank you.
The text was updated successfully, but these errors were encountered: