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

Black screen issue still exists. Weather overlay not appearing, Aerial (legacy screensaver not requesting location service. #1340

Closed
4 of 6 tasks
RGM1956 opened this issue Oct 18, 2023 · 36 comments

Comments

@RGM1956
Copy link

RGM1956 commented Oct 18, 2023

General troubleshooting tips

Before logging an issue please check that:

  • You have the latest version installed (There may be a beta version that fixes your issue), see here for the latest releases and bug fixes: https://github.com/JohnCoates/Aerial/releases
  • Your issue isn't already mentioned in our issues. You may find a workaround there or a similar request already made.
  • Your problem isn't mentioned in the troubleshooting page.

If none of this fixes your issue, tell us about the problem you are experiencing or the feature you'd like to request.

Required information

In order to help us sort your issue, we ask that you provide the following information:

  • Mac model:
  • macOS version:
  • Monitor setup:

If appropriate, please enable Debug mode and Log to disk in Advanced tab and replicate your bug, then attach the AerialLog.txt file (You can access this file through the Advanced tab).

Description of issue / Feature request

macOS Sonoma 14.0
2021 24", 4-Port iMac
Single (built-in) monitor.
Aerial 3.3.4
Aerial Companion 1.5.2.

Black screen still appears after indeterminate amount of time running Aerial screensaver. The only thing that displays are MOST of the overlays (in my configuration (date, time, location) with the exception of:

Weather overlay cannot display based on location, Aerial (legacy screensaver) does not appear to request location services from MacOS as it once did. The only way I know to display it is to manually enter location (zip code or location name).

@glouel
Copy link
Collaborator

glouel commented Oct 18, 2023

Please make sure you don't open multiple threads about the same issues. You already opened one about your black screen issue.

When it comes to weather, for it to work you need this :

  • Aerial Companion 1.5.2 in your menu bar
  • Aerial Companion allowed to use location services in System Settings (to trigger this, you can open Aerial settings from Companion, not from System Settings, go to overlays and press the test button, you should get prompted)
  • Aerial 3.3.4

So it's likely Companion cannot pull your location and give it to the screensaver when asked.

@RGM1956
Copy link
Author

RGM1956 commented Oct 18, 2023 via email

@RGM1956
Copy link
Author

RGM1956 commented Oct 18, 2023 via email

@RGM1956
Copy link
Author

RGM1956 commented Oct 18, 2023 via email

@glouel
Copy link
Collaborator

glouel commented Oct 18, 2023

No problem, Apple blocked screen savers to request location in Sonoma, and that's the core of the issue, the screen saver will never receive your location.

Because of this, the workaround I've added is that when you launch the screensaver, it will request Companion to ask for your location in the background. Then it will send it back to the screensaver.

It's a bit of a pain but it's the only workaround I can have for now.

Regarding your black screen issue, I've closed the other one, let's try and fix it here.

  • First, can you tell me if the clock still runs or not when you see the black screen ?
  • Second, can you make a screenshot of your Lock Screen settings in System Settings (don't send it by email, you have to attach it in GitHub).

Then we'll go from here.

@RGM1956
Copy link
Author

RGM1956 commented Oct 18, 2023 via email

@glouel
Copy link
Collaborator

glouel commented Oct 18, 2023

No worries, can you provide the details I asked above ? Thanks

@RGM1956
Copy link
Author

RGM1956 commented Oct 18, 2023 via email

@glouel
Copy link
Collaborator

glouel commented Oct 18, 2023

This is what I need for your black screen issue :

  • First, can you tell me if the clock still runs or not when you see the black screen ?
  • Second, can you make a screenshot of your Lock Screen settings in System Settings (don't send it by email, you have to attach it in GitHub).

@peterchabs
Copy link

Hi @glouel , I sometimes get the black screen as well. Here are my specs along with the lock screen settings you were requesting from @RGM1956
I believe the clock still appears through the black screen, the weather most definitely does.
Original release M1 MBA
Screenshot 2023-11-23 at 11 41 32 PM
Screenshot 2023-11-23 at 11 42 58 PM
Screenshot 2023-11-23 at 11 43 15 PM

@peterchabs
Copy link

image

@glouel
Copy link
Collaborator

glouel commented Nov 24, 2023

Thanks @peterchabs that's helpful, and sorry about the issue.

Do you get them instantly, mid video, instead of a new video ?

Also, if you leave it for 5 mins, does it stay black or a new one pops ?

If you can, go to Aerial's settings, advanced, check "Debug Log". Then next time you get this, go back there, and grab the log (called AerialLog.txt) and send it to me with the rough time it happenned ?

Let's see if we can sort it out !

@RGM1956
Copy link
Author

RGM1956 commented Nov 24, 2023 via email

@peterchabs
Copy link

Thanks @peterchabs that's helpful, and sorry about the issue.

Do you get them instantly, mid video, instead of a new video ?

Also, if you leave it for 5 mins, does it stay black or a new one pops ?

If you can, go to Aerial's settings, advanced, check "Debug Log". Then next time you get this, go back there, and grab the log (called AerialLog.txt) and send it to me with the rough time it happenned ?

Let's see if we can sort it out !

No need to apologize for anything, I appreciate the work you guys have put into this. Thank you.

This happens instead of a new video starting, and it does not go away unless I wake the mac from the screensaver.

I've attached a log file where it did happen during this time frame, scanning through it quickly I didn't notice anything alarming but i could be missing something!
AerialLog.txt

@glouel
Copy link
Collaborator

glouel commented Nov 25, 2023

@peterchabs looks like you added some custom videos in a forbidden folder. Can you make a screenshot of your "More videos", scrolled down, so it shows your local sources ?

See, this path will never work because of security restrictions, when Aerial runs as a screensaver, it will never be allowed to load files from this path :

file:///Users/user/Documents/Aerial%20Videos/

I need to find a way to reject those paths when people add them but basically, you should only put videos in /Users/Shared/ as this is one of the only "safe" place right now. Also, make sure that when you add the source, you do it going into Aerial's settings from System Settings, not via Companion. Adding a local source via companion right now may cause issues too under Sonoma.

So try removing your source, put your folder in /Users/Shared/ and then let me know if it acts up again. It's highly likely it tried to load, was denied, and just got stuck because of it.

@peterchabs
Copy link

@peterchabs looks like you added some custom videos in a forbidden folder. Can you make a screenshot of your "More videos", scrolled down, so it shows your local sources ?

See, this path will never work because of security restrictions, when Aerial runs as a screensaver, it will never be allowed to load files from this path :


file:///Users/user/Documents/Aerial%20Videos/

I need to find a way to reject those paths when people add them but basically, you should only put videos in /Users/Shared/ as this is one of the only "safe" place right now. Also, make sure that when you add the source, you do it going into Aerial's settings from System Settings, not via Companion. Adding a local source via companion right now may cause issues too under Sonoma.

So try removing your source, put your folder in /Users/Shared/ and then let me know if it acts up again. It's highly likely it tried to load, was denied, and just got stuck because of it.

Ahh got it, thank you!

@RGM1956
Copy link
Author

RGM1956 commented Nov 30, 2023 via email

@RGM1956
Copy link
Author

RGM1956 commented Jan 3, 2024 via email

@amcclay
Copy link

amcclay commented Apr 27, 2024

Same issue here. Weather overlay stopped working about 2 weeks ago. Debug log shows this:

2024-04-27 13:40:53.159 : fetching fresh weather
2024-04-27 13:40:53.159 : Starting Location initialization
2024-04-27 13:40:53.159 : Location using CompanionBridge data
2024-04-27 13:40:53.159 : === OW: Starting locationMode
2024-04-27 13:40:53.159 : Best matched language : en
2024-04-27 13:40:53.159 : 🎧 Adding music callback
2024-04-27 13:40:53.160 : 🎧🟧 manual triggering
2024-04-27 13:40:53.160 : 🎧 media remote callback
2024-04-27 13:40:53.161 : 🎧 audio info
2024-04-27 13:40:53.161 : 🎧  -  () without artwork
2024-04-27 13:40:53.162 : 🎧🟧 updateStatus
2024-04-27 13:40:53.204 : Starting 1 streams with 299146103 each, for content length of 299146103
2024-04-27 13:40:53.204 : last stream range: {0, 299146103}
2024-04-27 13:40:53.204 : Starting download for range bytes=0-299146103
2024-04-27 13:40:53.222 : The operation couldn’t be completed. (Aerial.NetworkError error 3.)

Is this an ongoing / known issue still?

@glouel
Copy link
Collaborator

glouel commented Apr 27, 2024

Same issue here. Weather overlay stopped working about 2 weeks ago. Debug log shows this:

Is it like never working since 2 weeks ago ? For some it sporadically doesn't work but it's not all the time. The weather API sometimes doesn't respond but it should be a rare occurence, only once in a while.

2024-04-27 13:40:53.159 : fetching fresh weather
2024-04-27 13:40:53.159 : Starting Location initialization
2024-04-27 13:40:53.159 : Location using CompanionBridge data
2024-04-27 13:40:53.159 : === OW: Starting locationMode

Ok so that part looks good, as far as I know. Can you confirm you have Aerial Companion running ?

2024-04-27 13:40:53.204 : Starting 1 streams with 299146103 each, for content length of 299146103
2024-04-27 13:40:53.204 : last stream range: {0, 299146103}
2024-04-27 13:40:53.204 : Starting download for range bytes=0-299146103
2024-04-27 13:40:53.222 : The operation couldn’t be completed. (Aerial.NetworkError error 3.)

The network error is weird. Here it fails trying to get a video, but it's likely the weather failed too (maybe later in the log).

Are you using some sort of firewall software ?

If you can, try opening System Settings > ScreenSaver, make sure it says Aerial on top and press "Options" to open Aerial's settings. Then go to Overlays > Weather and try the "Test" button. It should open a window and show your found City.

Capture d’écran 2024-04-27 à 23 05 01

Let me know if it works here or not, and if it doesn't, can you paste that part of the log from that test too ? Thanks

@amcclay
Copy link

amcclay commented Apr 27, 2024

Sorry I should have also specified that both 'Use Current Location' and manually entering my city 'San Francisco, CA' result in 'City Not Found' (this worked a couple of weeks ago even with just my ZIP code)

Screenshot 2024-04-27 at 2 15 42 PM

Also, Aerial Companion is running and is approved in location services.

@glouel
Copy link
Collaborator

glouel commented Apr 27, 2024

@amcclay Ok I know it's weird for the US, but don't use state abbrevations like CA, because the API doesn't understand it.

Can you try with just "San Francisco" ?

I have the same error with CA, and it works fine without.

Edit : I double checked and it returns the correct SF (in your case) in California.

@amcclay
Copy link

amcclay commented Apr 27, 2024

I feel dumb for not noticing the message that I should NOT be using state abbreviations, but I did try it with and without them while troubleshooting and still get the City Not Found message.

Screenshot 2024-04-27 at 2 33 08 PM

Similarly, 'use location' returns the same message.

Also note that I DO have Little Snitch installed, but it is completely disabled.

@glouel
Copy link
Collaborator

glouel commented Apr 27, 2024

  • Ok can you get me a log of those tries ? Maybe it shows this when there is a network error. It shouldn't but I had to change some stuff for Sonoma and it likely causes this.

  • Also which macOS version are you using exactly ?

Also note that I DO have Little Snitch installed, but it is completely disabled.

You may want to triple check Little Snitch as it may still block things. I don't use it but I know that some people thought they had disabled it but not completely disabled somehow.

Because of the way it works now, Aerial doesn't do the network request directly, it goes though one of three processes :

So make sure System Settings, Companion and ScreenSaverEngine (maybe legacyScreenSaver.appex) can all access network.

  • You can try opening Settings from Companion and test there <- in that case it's Companion that should be allowed)
  • Settings from System Settings <- System settings should be allowed (or maybe legacyScreenSaver)
  • Screensaver itself <- ScreenSaverEngine.app (or maybe legacyScreenSaver)

Also, you can try grabbing a video manually from Aerial's Settings (from Companion or System Settings). If that fails too, it's definitely a network issue and Little Snitch is a likely culprit. Keep me posted.

@amcclay
Copy link

amcclay commented Apr 27, 2024

So, Little Snitch is as completely disabled as it can be without me totally uninstalling it (which I may try down the line)

Aerial Companion and legacyScreenSaver are approved in Location but there is no entry there for ScreenSaverEngine.app. Are you referring solely to Location access or is there another setting I should look at?

Manually downloading view the 'More Videos' seems to work fine (it downloaded the Joshua Michaels videos without issue)

@glouel
Copy link
Collaborator

glouel commented Apr 27, 2024

So, Little Snitch is as completely disabled as it can be without me totally uninstalling it (which I may try down the line)

Ok, as I understand there's a separate settings for Apps and System. But see below.

Aerial Companion and legacyScreenSaver are approved in Location but there is no entry there for ScreenSaverEngine.app. Are you referring solely to Location access or is there another setting I should look at?

I'm referring specifically to Networking issues.

Manually downloading view the 'More Videos' seems to work fine (it downloaded the Joshua Michaels videos without issue)

Was that via opening Aerial's Settings via Companion or System Settings ? And via the same way, Weather still fails when you press Test button ?

Companion should be the easiest one to try out.

So in case that's not what you did, please try both downloading and the Test button on weather (with San Francisco) and see what it does. And if only one fails, again please please attach a log of that whole testing (both the one that worked, downloading video, and the one that fails, weather) ?

I'll try to have a look tomorrow.

Also, are you using any form of proxy or vpn ?

@amcclay
Copy link

amcclay commented Apr 27, 2024

I'll run all these tests later tonight.

I should say, that this failure to access the weather happened on TWO Macs I have in the same apartment, which leads me to believe it is likely a network issue somewhere. Possibly even some kind of fireballing happening at the level of my ISP.

One thing I may try is bringing my laptop to a cafe and seeing if I am able to access the weather data there.

Thanks for all your help so far!

@glouel
Copy link
Collaborator

glouel commented Apr 27, 2024

No problem, and I agree it seems like a definite network issue, if it's not on your mac, could be a router, or ISP blocking. Or maybe somehow your IP range is blocked from the API, but that sounds super weird.

If you have some vpn provider that lets you connect elsewhere, it's also a good quick way to bypass all that.

Couple more thoughts :

  • Check if https://openweathermap.org works for you (it's their front facing website)
  • Openweather's API uses HTTP, and not HTTPS. Make sure you don't have anything in front of your mac (router, some other filtering) that could deny those ? ISP seems unlikely but who knows ?
  • http://api.openweathermap.org/data/2.5/weather is one of the endpoint we use. It does require an API key so you won't be able to fully test it, but give it a shot in Safari for example, see if that works.

Opening that link in Safari should return a JSON like this :

{"cod":401, "message": "Invalid API key. Please see https://openweathermap.org/faq#error401 for more info."}

Best of luck and keep me posted, I'll try to get back to you tomorrow, take care.

@RGM1956
Copy link
Author

RGM1956 commented Apr 28, 2024 via email

@glouel
Copy link
Collaborator

glouel commented Apr 28, 2024

@amcclay let me know if

http://api.openweathermap.org/data/2.5/weather

and

https://api.openweathermap.org/data/2.5/weather

returns the json above in a browser. OpenWeather used to not support https but it looks like they added it recently. I'll transition to https in next build but it could be the issue.

@glouel
Copy link
Collaborator

glouel commented Apr 28, 2024

@amcclay I released 3.3.8 with https support for weather, as this is now supported on their end. Maybe it will fix your issue, maybe not, in any case keep me posted. If you test via Companion, you need to restart companion after you update.

This also includes some fixes for failed video downloads which may cause black screens with overlays.

@amcclay
Copy link

amcclay commented Apr 28, 2024

Lol just came here to say weather suddenly re-appeared on both of my Macs and saw your response. You did indeed fix it on my end.

THANK YOU!

I really do rely on the weather as I have Aerial "always on" on a small screen in my living room which lets me know what jacket to wear before leaving my apartment.

Again, many thanks for being such a responsive and proactive developer.

@glouel
Copy link
Collaborator

glouel commented Apr 28, 2024

@amcclay awesome, thanks for reporting it. I'm still not sure where the issue was, maybe they are starting to phase out their http only servers and depending on CDNs, it always failed. Or something somewhere blocked it. Anyway, take care and enjoy !

@glouel glouel closed this as completed Apr 28, 2024
@amcclay
Copy link

amcclay commented Apr 28, 2024

Oh before I forget (I'm sure you've been asked this before) what is the possibility of Aerial being released for Apple TV? I realize that Apple wouldn't allow something that pulls their own screensavers down, but the non-apple videos in Aerial are honestly just as good if not better now.

If it were released for Apple TV, I'd easily pay $5 for it, and I'd guess others would to as it would replace many other apps (weather, clock, aerial, etc) - I could also see it being used as a kiosk display since so many bars / businesses use Apple TV.

Anyway, just a thought.

@glouel
Copy link
Collaborator

glouel commented Apr 28, 2024

Oh before I forget (I'm sure you've been asked this before) what is the possibility of Aerial being released for Apple TV? I realize that Apple wouldn't allow something that pulls their own screensavers down, but the non-apple videos in Aerial are honestly just as good if not better now.

If it were released for Apple TV, I'd easily pay $5 for it, and I'd guess others would to as it would replace many other apps (weather, clock, aerial, etc) - I could also see it being used as a kiosk display since so many bars / businesses use Apple TV.

Anyway, just a thought.

So you can't replace the Apple TV screensaver, only the built in one is allowed.

As a standalone app, it's probably possible but would likely require many changes. The Apple TV doesn't have a lot of storage so that's the main issue, you can't cache many videos, it's severely restricted, and your cache may get wiped at any moment.

If I have some time, maybe I'll have another look someday, but the restrictions seemed so harsh that I'm not sure it's possible. And that's setting aside if Apple would even allow it on the store which is hard to know.

@amcclay
Copy link

amcclay commented Apr 28, 2024

Ah yes. The video cache! I hadn’t even thought of that lol.

and yes I also realize Apple (stupidly) doesn’t allow you to replace their screensavers.

Still, even just as a “slideshow” app with the rest of the functionality of overlays I could see it being very popular as a kiosk display.

Like a business could make a logo and still have info like time and weather to draw attention to it.

But as I think about it, just dealing with the UI to actually customize the overlays and other settings would be a huge amount of work so … nevermind haha

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

4 participants