[Interest] QSharedMemory::create returns out of resources errors on a few macOS machines

Thiago Macieira thiago.macieira at intel.com
Mon Jul 3 06:51:43 CEST 2023


On Saturday, 1 July 2023 03:04:05 PDT Alexander Dyagilev wrote:
> Hello,
> 
> Some rare uses keeps reporting that our app can't start due to this error.
> 
> We use QSharedMemory to keep track of running instances of our app.
> 
> It seems this is can be a known issue due to macOS limits. Here an
> article on how to lift them:
> http://www.spy-hill.com/help/apple/SharedMemory.html
> 
> However... Did anybody here experience the same issue?
> 
> All I can think for now is that it's caused by some buggy software which
> exhausted macOS limits so our app can't function normally.

Yes, there's a limit on Darwin kernels and it's pretty low compared to other 
modern OSes.

I suggest you abandon QSharedMemory and simply use QFile + mapping of memory.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230702/fea121e2/attachment.bin>


More information about the Interest mailing list