Aerial icon indicating copy to clipboard operation
Aerial copied to clipboard

Slow-Down

Open Jimmbo opened this issue 6 years ago • 28 comments

Running Aerial v2.0.1 on a mid-2018 Mac Mini running macOS 10.15.6

When I launch screensaver post-crash (issue #1070), the image is frozen.

When I try to stop screensaver, and am asked to enter password, typing, cancelling, etc., are all very slow, with spinning cursor.

Jimmbo avatar Aug 21 '20 20:08 Jimmbo

Same problem after computer restart.

Jimmbo avatar Aug 21 '20 20:08 Jimmbo

Can you please try to centralise related things in the same issue ? It's slightly hard for me to follow jumping from one to the other to the other on the same topic.

I'd recommend going to Settings > Advanced in Aerial, and make sure you use 1080pH264 to avoid overheating/slow downs etc.

glouel avatar Aug 21 '20 20:08 glouel

I've been using 4K HEVC for months with no problem.

Jimmbo avatar Aug 21 '20 20:08 Jimmbo

I have just experienced the same running v2.0.2 on my 2018 MBP 15" Catalina 10.15.6 with supplementary update.

Started to notice the video stuttering significantly. Wiggled mouse and touched keyboard to cancel screensaver. Computer unresponsive with beach ball. Eventually got to desktop and CPU usage was 100% across all 6 cores. CPU usage attributed to kernel_task. I use 4K HEVC video format. Also have had no issues in the past with that format - I believe the device supports playback via hardware as I can run 2 4K HEVC videos on 2 screens with less than 1% CPU usage.

Normally with pre v2.0.x Aerial CPU usage never got beyond 1-2% when the screensaver was active. I have never experienced this video playback stutter or CPU usage prior to v2.0.x .

I will monitor for recurrence of issue and report back.

kt-1 avatar Aug 22 '20 00:08 kt-1

Definitely not occurring every time and perhaps was just coincidental timing with something else on my system.

I've activated Aerial v2.0.2 20+ times with it running for more than half and hour without a recurrence. This is with Aerial running 2 4K HEVC videos to my MBP's internal screen and an external screen.

kt-1 avatar Aug 22 '20 02:08 kt-1

@kt-1 thanks for trying to troubleshoot this so diligently. I've been thinking about what could be the culprit and I may have a scenario that could explain the issue at first, and how it stopped. I think it may be related to background downloads of videos that are pretty much the only new thing in that part of the screensaver.

Can you open Aerial's settings panel, go into the options and look for Cache on the left, this one :

Capture d’écran 2020-08-22 à 09 48 37

In red there's the cache limit (5.9) and the current size (6,97). In my case, my cache is full, so there will be no downloading of videos. Can you check if your cache is currently full ? If it is, try pushing the slider up to free some room, and have it start downloading new stuff in the background. If my theory is correct, you'll experience the issue again ?

I'd highly recommend that you check the "Show download progress" on that same panel, and that in Advanced, you enable debug mode too. If you can reproduce the crash, try to see if the download indicator stays stuck at 0 or not.

Again thanks and sorry for that issue.

glouel avatar Aug 22 '20 07:08 glouel

Assuming those suggestions were for me as well (since I did offer to test if you needed me):

My cache shows "32.4GB (Currently 32.56GB)"

I've checked "Show download progress" and enabled debug mode. I haven't changed my pref for 4K HEVC.

Videos are playing normally, and there is no slow-down in exiting the screensaver or entering password.

Perhaps there downloading was still taking place during my previous problems? I did buy the full expansion pack from Magic Window.

Jimmbo avatar Aug 22 '20 15:08 Jimmbo

Yes obviously ,sorry if I implied otherwise. I think this may be a clue indeed, right now your cache is full so no video would download. You probably have all the videos cached already which is going to make it a bit harder to test. Just to be sure, in the videos pane, do you see a "Online" like i circled below ?

Capture d’écran 2020-08-22 à 17 55 28

If you do, and don't mind risking another slowdown, in cache, push that slider all the way to the right, and launch the screensaver. If it's terrible again, I think we'd have narrowed it down.

I do know from a previous issue that KT uses litlle snitch, any chance you do to ?

glouel avatar Aug 22 '20 15:08 glouel

I do see "Online" like in your screenshot, yes.

I'm reluctant to push cache to unlimited as I only have 44GB of space remaining on disk. I guess options are to move it not-all-the-way to "unlimited", or move it to unlimited and be sure to move it right back after I complete testing. While I wait for you to answer, I'll load Little Snitch (if it's not expensive...I haven't checked in a while).

Jimmbo avatar Aug 22 '20 17:08 Jimmbo

Oh no please don't, if you are not using it, don't. I was just wondering if you had it, as this may have been a common point between you and KT1

I would say this regarding the slider, it only downloads 1 video per video you watch, so it won't fill up your disk space fast.

glouel avatar Aug 22 '20 17:08 glouel

I moved slider to unlimited. Bad news: videos play great, no slow downs. Active downloading is shown on-screen per pref. I tried turning screensaver on/off five times, but could not make it break.

I've reduced my cache again. Let me know what I can test. It looks like my log entries (in issue #1070) weren't helpful?

Just as a data point, I did upgrade to v2.02 since yesterday.

It would be great, btw, to have an idea of what cache size (and available disk space) is necessary to play all the vids bought from Magic Window. Currently, it's like "flying blind" (American expression, sorry).

Jimmbo avatar Aug 22 '20 18:08 Jimmbo

If cache size equates with "all the disk space Aerial will take", then I obviously wouldn't need that separately stated. But cache currently feels like strange voodoo.

Jimmbo avatar Aug 22 '20 18:08 Jimmbo

Ok well it was a good try, thanks for checking. And yep keep it reduced for now. I'll keep think about it.

Regarding your last comment, I'm not sure if I replied that to you or someone else but it will change to that soon. When you reduce the slider, I4ll purge your cache of that amount, etc.

For Magic Window I'll improve the view as, agreed, those are not counted in the cache size right here. This will be in next week roughly.

And last, regarding your log, I've had that message too as far as I remember, I need to double check something first before being able to confirm, but I think it's orthogonal to the issue.

glouel avatar Aug 22 '20 18:08 glouel

Since it's working now, I'll leave it running. But if I encounter slow-down or crash again, is there anything you'd like me to try (aside from looking for crash report)?

Jimmbo avatar Aug 22 '20 18:08 Jimmbo

So one general suggestion, more a tip, would be try Cmd+alt+shift+escto try and kill the screensaver when you experience a slow down. See if that instantly fixes it or not. Apart from that right now, not a lot of ideas but I'll get back to you. Thanks.

glouel avatar Aug 22 '20 18:08 glouel

The crash I reported (issue 1070) allowed no keyboard or mouse input, including the force-quit shortcut. I had to hard-restart Mac.

But if I get slow-down again (which always starts with the video being frozen upon first loading), I'll try to force quit. But it's not a big deal, because while exiting is slow, it's perfectly possible.

Jimmbo avatar Aug 22 '20 18:08 Jimmbo

Just to add another data point : Aerial has been working flawlessly on my MBP since that initial stutter issue. Has not recurred. I had already turned off automatically download videos so that is unlikely to be the cause. I feel it was another process on the machine (not related to Aerial) that is more the cause in my case.

kt-1 avatar Aug 23 '20 09:08 kt-1

It's odd we both experienced the problem simultaneously, and both experienced spontaneous resolution of the problem simultaneously.

More data points are obviously needed.

Jimmbo avatar Aug 23 '20 17:08 Jimmbo

Regarding stutter and slowdown, per this issue (https://github.com/JohnCoates/Aerial/issues/1077), I changed things in 2.0.5 and that seem to fix the issue (at least for some, still waiting on feedback). It looks like it was particularly flagrant on some systems particularly with more than one screen.

glouel avatar Aug 27 '20 16:08 glouel

I have never had an issue since that one day.

However, oddly, having bought and installed the third-party expansion set of videos, I'm still only seeing the old classics. I'll go under the hood when I get a chance, and hopefully that will stir up any remaining bugs.

BTW, maybe the download/install/activate process can be streamlined - or, at least, better explained during the post-purchase download/installation process? In other words, if there's an "activation" step beyond the downloading/installing, it should be pointed to during/after the installation.

Jimmbo avatar Aug 27 '20 16:08 Jimmbo