Macbook M1 and RAM consumption over its limit by an app (PTGui)

Hello, I have a MacbooPro 16" M1 pro, 16gb Ram, running Ventura 13.2.1 but the issue I need to fix started with Monterey.


Overall the mac works great. Sometimes, with Final Cut X, I got a message from the system alerting that It was out of memory (Not happened yet with Ventura).


But I have an specific issue with an app called PTgui (it's a photo stitcher). I contacted the support but they couldn't replicate my problem yet.


When a stitching a project with more than 100 photos (42 megapixel each) the app gets to a point where it gets stuck and starts using RAM over the limit that is put on the app settings, and actually more than the one I have in my system. On my previous machine I was able to create +700 photos projects with no problem. The app is built to do that.


Inside the app settings, you can manually limit the RAM used or leave the software do it automatically. In both cases the issue is the same. I put, for instance, 10gb RAM limit, and for the most part of the stitching process my activity monitor shows that 10gb amount of RAM being used, or lower. Then, near the 80% of the process (it shows a progress bar), the app does something (don't know what, exactly) and starts overpassing this limit, getting 16, 17, 18.. 32gb of RAM being used by the app; while my Mac has only 16gb. And from there, there is no progress at all. The mac does not shows any alert about running out memory as it was the case with FCPX.


The app also allows to allocate the temporal memory to an external disk. I've tried three different ones already, from ssd, to a RAID, to a regular spinning disk, on different usb ports. I've checked their speeds with blackmagick speed test and they seem to work as expected.


I've tried older versions of Ptgui, and the issue is similar. But, as I said, from the support they stitch my project with no issues on different macs (including m1 of course). So they couldn't replicate the problem.


Any help appreciated,


Pablo


MacBook Pro Apple Silicon

Posted on Feb 24, 2023 04:56 AM

Reply

Similar questions

3 replies

Feb 24, 2023 08:24 AM in response to Chantus

Chantus wrote:

Hello, I have a MacbooPro 16" M1 pro, 16gb Ram, running Ventura 13.2.1 but the issue I need to fix started with Monterey.

Overall the mac works great. Sometimes, with Final Cut X, I got a message from the system alerting that It was out of memory (Not happened yet with Ventura).

But I have an specific issue with an app called PTgui (it's a photo stitcher). I contacted the support but they couldn't replicate my problem yet.



I've tried older versions of Ptgui, and the issue is similar. But, as I said, from the support they stitch my project with no issues on different macs (including m1 of course). So they couldn't replicate the problem.

Any help appreciated,

Pablo
https://discussions.apple.com/content/attachment/1e809365-04ee-4f89-8045-890b0c7f4c4d


<MacbooPro 16" M1 pro, 16gb Ram>


Your third party app does not sound like it is well optimized for the macOS....


Your memory pressure is yellow and not pegged in the red — you do not have to micro-manage memory.

Your Mac is doing well mannaging RAM/VMswap, if struggling your memory pressure would in the red.



Did you try quitting the app and relaunching it...as a way forward(?)

Reboot if necessary....

Run less applications total at one time..




Try a different application if this one gives you issue with no resolve or insight from the developer.



16GB of RAM is about the least I would buy these days...and this just for moderate work machine, let alone intensive photo/video editing work flow.


Free storage space is used as temporary swap files this is your VM.



Feb 24, 2023 08:37 AM in response to Chantus

It's complicated.


The problem here is that RAM, as you know it, really doesn't exist anymore. In modern computers, RAM is always "virtual". It uses the actual RAM chips as more of a high-speed cache and uses the hard drive for most memory uses. Combine that with Apple's ultra-fast SSDs and you get virtually unlimited, high-speed RAM.


But there are a couple of potential problems. Since your RAM is actually on the hard drive, your free storage is actually your free RAM. It is quite common for people these days to actually have more free, actual RAM than they have free storage. When you see people complaining because they can't install the latest version of Ventura, that is almost always the problem. How these people even make it through an average day with their hard drive so full, I'll never know.


You have experienced that problem before. But now, I think you have a different problem. When apps try to allocate and manage RAM on their own, they have to fight the operating system for it. They will essentially lie to the operating system about their needs. This has been going on for many years, so the people who write operating systems know about this problem. In turn, they simply lie to apps about what they are doing. As you can imagine, when you have to parties constantly lying to each other about shared resources, hilarity ensues.


I'm afraid there is no solution. The app developer simply has to accept the fact that the 1990s are over and we are using virtual RAM now. I checked the website for that app and it appears to be a cross-platform Java app. So yeah, stuck in the 1990s.

Feb 24, 2023 12:44 PM in response to etresoft

I still think that there is an issue going here, since Ptgui does the stitch in a less capable machine (mac mini M1 8gb) according to the tests that the person of the support has been doing. And as I said, on my previous machine (Intel i7 mac, 16gb) Ptgui worked without any problem. The less capable the machine, the longer the process, but this RAM consumption over the limit is a different problem.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Macbook M1 and RAM consumption over its limit by an app (PTGui)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.