Slow page loads on MacOS Safari #16447
Replies: 17 comments 5 replies
-
An otherwise empty instance with 100 Tenant objects in it rendered the full list in a sub-second timeframe. Might there be an interaction with other objects in your system? |
Beta Was this translation helpful? Give feedback.
-
Safari Version 17.5 (19618.2.12.11.6) |
Beta Was this translation helpful? Give feedback.
-
Converting to a discussion since an actual bug seems unlikely. If that road leads back to a likely bug, we'll regroup in issues. BTW thanks for reporting a problem you're having with NetBox, we do appreciate it. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delayed response, my Mac often runs dev software, so I'd already thought of this and tried it on my wife's and a friends Mac. I get exactly the same issue I'm afraid. Before stepping up to V4, it was all running fine. I'm assuming its' something to do with the content in the Database, originally I thought it was because the main system it ran on was running an old version of Debian, so we actually decided to fire up a new VM, install fresh Debain and transfer across, as you can see, that didn't make any difference either. We've upgraded through each iteration of V4, hoping it would fix the issue, but it has remained. I'm guessing far too much changed between V3 and V4 for it to be a simple find for whats the culprit of my issue. Is there some kind of debug mode I can enable which will show what it's doing? |
Beta Was this translation helpful? Give feedback.
-
I can't give steps to reproduce for this issue, but observe similar issues running 4.0.3. Also, sometimes I switch tabs and when coming back to NetBox the page is all white. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Seeing the same issues here. NetBox is almost completely unusable in Safari 17.5 on a brand new MacBook Pro with M3 and 16GB of RAM. The screen tears and freezes scrolling up or down on any table. I have to set my row limit to 25 to even use it. The exact same instance works flawlessly and lightning speed on Chrome 125, with 500 rows, on the same machine. |
Beta Was this translation helpful? Give feedback.
-
Seems there is some sort of bug after all then if multiple people are suffering from it. No data was changed as far as entries are concerned between V3 and V4 for me, data was updated of course, but no items added. So it's something to do with the way these tables are generated in V4 when compared to V3. @jeffgdotorg, if it's of any use to anyone, I'm happy to do a remote session or run debugging for you to see if anything stands out for you. |
Beta Was this translation helpful? Give feedback.
-
I can't add much to this discussion, as I'm a new NetBox user who started with v4. But I can confirm the issue exists on two separate and unrelated new installations (both Docker), and seems to affect all Safari users: iOS and macOS. But also happy to test / help if possible. |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is related, #16684, but several of us are seeing very poor performance issues after upgrading to 4.0.5. Most of us are not using Safari. |
Beta Was this translation helpful? Give feedback.
-
We released NetBox 4.0.6 yesterday, with a fix for #16684. Anybody who's been able to reproduce this problem is invited to give it a try and weigh in on your experience. |
Beta Was this translation helpful? Give feedback.
-
Any updates on this yet? It was moved from bugs/issues to discussions so I'm wondering if it's actually being looked in to? |
Beta Was this translation helpful? Give feedback.
-
Can confirm this is also an issue for us, especially on pages with tabled data such as interfaces it will load the base html but the content takes up to 10 seconds to render, tabbing out and back in will cause the same issue again. |
Beta Was this translation helpful? Give feedback.
-
This has been a problem since version v4.0. I have updated to v4.0.8 today and still the problem persists. None of the pages where you have to load more than 25 items are loading. Also if the page does load it ends up unusable because as soon as you start to scroll it starts reloading and it gets stuck. I am using on the same machine Brave browser and it works just fine. Some more information: as soon as i start loading the page in safari i noticed the Safari and Graphic Media process which averages around 1.5% cpu utilisation jumps instantly to 167% and sometimes up to 207%. This lasts a few seconds and then it goes down but the page does not load and as soon as i start scrolling again the process jumps backup to over 150%. I have disabled all extensions for the this tab and behaviour is the same. |
Beta Was this translation helpful? Give feedback.
-
@jeffgdotorg Can we get this back into an issue please? :) Happy to provide a video demonstration and logs if that's required. |
Beta Was this translation helpful? Give feedback.
-
Not meant to be a silly "me too," but more of a further confirmation that this is definitely something within Safari's rendering process choking on NetBox pages when they have "a lot" of table entries. The "Safari Graphics and Media" sub-process just pegs one or more CPU cores during page load, and then again if you try to scroll too much. I'm on an M1 Macbook Pro, so it's not Intel-specific. Safari is not my "regular" browser, or else I'd be tearing my hair out over this. This feels like it might be something that should be reported to Apple, since Safari is the only thing choking...? I have no problems with Vivaldi on the same system (which is Chromium-based). |
Beta Was this translation helpful? Give feedback.
-
All of the evidence shared thus far suggests that this is a bug in Safari, as it is the only browser which experiences the issue. If anyone would like to propose a specific change to NetBox that they can confirm works around the issue with Safari, I'm happy to explore it. |
Beta Was this translation helpful? Give feedback.
-
Deployment Type
Self-hosted
NetBox Version
v4.0.5
Python Version
3.12
Steps to Reproduce
Load a page with a large number of items, such as Tennants. in my case there are 88 items on the page
Expected Behavior
Page loads promptly and all Tennants show and can be scrolled.
Observed Behavior
On a browser such as Chrome, this works absolutely fine. On macOS Safari, the page takes time to load after first being clicked, then when the page displays, it will have a single page full of content, scrolling results in it freezing and no additional content being shown, just blank page. After a period of around 10 - 15 seconds, then the rest of the content loads.
This has been the same since V4.0 but was not an issue prior to update.
Beta Was this translation helpful? Give feedback.
All reactions