Tag: MacOS

  • How To Fix MacOS ERR_EMPTY_RESPONSE

    How To Fix MacOS ERR_EMPTY_RESPONSE

    While installing few php scripts on my local MacOS Monterey I started getting ERR_EMPTY_RESPONSE error in Chrome browser.

    First I encountered this issue while installing Typo3 CMS. I tried installing phpMyAdmin and got the same error.

    ERR_EMPTY_RESPONSE on MacOS Google Chrome
    ERR_EMPTY_RESPONSE on MacOS Google Chrome

    Digging down further and after some tweaking with apache config files and php.ini files I found out that the problem is with Google Chrome and not with MacOS in particular. There may have been some Apache and/or php.ini config settings which fixed this error in other browsers but I’m not sure what is the exact fix.

    The Solution

    I’m not sure what exactly caused this problem but other folks have been saying it’s cache.

    Try cleaning Google Chrome cache.

    Restart Mac.

    Try in other browsers.

    Digging down further it seems that there is something wrong with configuration file.

    Checking the apache access log file shows following error

    127.0.0.1 – – [04/Nov/2022:22:05:48 +0000] “GET /wp/wp-admin HTTP/1.1” 301 237

    Apache error log shows this

    [Fri Nov 04 22:08:12.569415 2022] [core:notice] [pid 139] AH00052: child pid 71636 exit signal Segmentation fault (11)

  • Safari Web Content High CPU And Memory Usage on MacOS [Solved]

    Safari Web Content High CPU And Memory Usage on MacOS [Solved]

    Safari has become fucking pain in the ass recently. I’m not sure what caused it to get fucked. Safari Web Content process has been eating up more than 100% of CPU and over 2 GB of Memory.

    Safari Web Content – High CPU Usage
    Safari Web Content High Memory Usage

    I’m seeing this issue on both iMac and MacBook. I’ve macOS Big Sur on both machines.

    Till now I haven’t found a solution so far. Below are some of the solutions which I’ve tried so far and none worked.

    The Solution Which Worked For Me

    I upgraded OS to macOS Monterey and this problem was gone. I’m still observing though.

    Other Solutions Which You Can Try

    Low RAM/Memory

    The first culprit which anyone would point is low RAM. I’ve fucking 32GB of RAM on my iMac so it doesn’t solve problem. Try adding more RAM if you could, it will certainly improve performance but it will not solve the underlying issue.

    Disable Safari Extensions

    Another common culprit for Safari or any browser could be extension/plugins. I don’t have any plugin installed so this solution isn’t applicable to me. If you have any extension installed in Safari then you can disable/remove them and try.

    To disable/remove extensions go to Safari -> Preferences -> Extensions and disable/remove extensions and try.

    Safari Extensions

    Disable Develop Menu

    Being a developer having Develop menu showing up all the time is a requirement for us. Some folks have suggested that disabling Develop menu may solve the issue but for me it also didn’t work.

    To disable Develop menu go to Safari -> Preferences -> Advanced and uncheck Show Develop menu in menu bar.

    Disable Show Develop menu in menu bar

    Clear Cache

    To clear cache you need to enable Develop menu again. From Develop menu click on Empty Caches. For me this solution also didn’t work.

    Safari – Empty Caches

    Reboot

    Remember the fucking Windows PCs where the most obvious solution to all problems was to reboot PC? Try doing the same, sometimes it may work. For me this magic also didn’t work in fixing the issue.

    Log out of Google Account

    Some have suggested that logging out from Google account fixes the issue but that’s not true. In my case Safari Web Content keeps eating CPU and Memory even when I haven’t opened Google pages. Logging out also didn’t resolve the issue.

    Quit All Apps

    I’m in the habit of keeping plenty of apps and tabs in these apps opened. Quitting all apps doesn’t resolve the issue as it has nothing to do with anything else than Safari itself.

  • Why Is Eclipse So Fucking Slow?

    Why Is Eclipse So Fucking Slow?

    I hate Eclipse with passion. I’ve never used it and whenever I tried to use it I just give up on fucking installation procedures itself.

    It’s just fucking piece of crap IDE software to install and work. I’ve state of the art iMac with maximum configuration possible and whenever I launch it, it just starts frying up iMac provided I can get pass the installation process.

    Eclipse IDE is slow to install on MacOS

    The reason I keep coming back to Eclipse IDE is that it’s free and the nearest best IDE software is fucking paid where you end up paying £499 or so per year to use IDE which should be fucking free.

    As a developer I find it so fucking annoying just to keep wasting time in fucking figuring out how to install software.

    Today was another day where I had to get Eclipse installed on MacOS and it fucking got stuck on installation hence I decided to finally rant on this topic.

    So Why Eclipse Is So Slow In Everything?

    It’s slow because it’s free and it is supported by bunch of people in community who couldn’t fucking get it working. They keep on adding support for everything and it all ends up in a giant mess.

    Apart from ranting the main reason why it’s slow with everything is because it connects with servers and not just few servers but millions of them and it all ends up in timing out because those servers are unreachable. Why are those servers unreachable? It’s again the name of fucking foundation and free and open source crap.

    What Is The Solution To Fix Eclipse’s Slow Response?

    As per my knowledge the slowness of Eclipse comes down to the Network. No it’s not your network connection but the sites Eclipse connects to download software.

    Unfortunately there is no solution which can fix the slowness of Eclipse. You can try some of the followings.

    Network Connection

    On Eclipse Installer application open Network Connection from Eclipse-Inst->Preference menu.

    Select Direct/Manual/Native from Active Provider and try it.

    For me none of these options helped.

    Eclipse Installer – Network Connection

    Download and Install Eclipse From Command Line – Worked for me

    Download the latest Eclipse IDE package from https://www.eclipse.org/downloads/packages/

    I’m trying to install Eclipse IDE for Java Developers and at the point of writing this post the latest version of the package was https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2021-12/R/eclipse-java-2021-12-R-macosx-cocoa-x86_64.dmg

    After downloading double click on .dmg file and follow instructions to install Eclipse IDE. This is the solution which worked for me.

    Solution For Fixing Slowness Of Installing PyDev

    I was trying to install PyDev today which is where all the problem starts to appear again (millionth time).

    To install PyDev on MacOS, launch Eclipse IDE and click Help -> Install New Software

    On Install Window enter http://pydev.org/updates and select the PyDev.

    Uncheck Contact all update sites during install to find required software

    Install PyDev on MacOS

    You would assume that it will all go well and it will install PyDev, but it will not at least not in my case. Now you will realise why I decided to rant on this topic. Here is the next error I encountered while installing PyDev.

    PyDev Installation Error on MacOS

    To fix above error, double click on following in Problems pane and continue to install the required packages.
    Unknown referenced nature: org.eclipse.wst.jsdt.core.jsNature. .project /Blog Unknown Unknown nature

    This is not the end, you may encounter another problem shown below.

    Unable to read repository at https://download.eclipse.org/releases/latest.
    Unable to read repository at https://download.eclipse.org/releases/2021-12/.
    Communication with repository at https://download.eclipse.org/releases/2021-12/202112081000/content.xml.xz failed.
    Read timed out
    Another PyDev installation Problem

    Eclipse is like a big onions of problems where you fix one problem only to find out another problem underneath it and it keeps going. Layer after layer of fucking problems.

    Looking at the problem it seems it is same issue, the server time out.

    Try again and keep trying till it installs. Good luck with that though!

    Well I need to take a break before my brain fries up in fixing problem after problem. I’ll come back as I find solutions.

    Okie so I found what is the real issue. Click on this https://www.pydev.org/updates/ on this page click on all the links. You will find that all pages don’t exist. So basically PyDev is fucked up.

    I gave up this point only to find that Eclipse I’ve installed so far has nowhere to be found on my iMac. Lol!!

    So what application was I running if it didn’t install Eclipse? I’ve no clue what is going on!!!

    It turns out that I didn’t copy Eclipse.app to Application folder. To fix this issue double click on dmg file again and drag and drop Eclipse.app to Application folder

    Drag and drop Eclipse.app to Application folder

    I’ve to conclude this post. I’ll try to provide solution to other issues in another posts.

    Update – Is RAM an issue?

    While browsing through Internet I came across a few threads where so called fucking experts have expressed their opinion that Eclipse is slow because computer has less RAM. I just died laughing 😉 What a bunch of morons!!! Slowness of Eclipse has nothing to do with RAM. I’ve 32 GB on my iMac yet Eclipse is just slow. From my personal experience less RAM is not the real cause of slowness.