[krita] [Bug 493056] Krita MACOS crashes/exits on unlinking shared memory object in python scripts

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Sep 16 13:31:37 BST 2024


https://bugs.kde.org/show_bug.cgi?id=493056

--- Comment #5 from sylaypaper at gmail.com ---
(In reply to Halla Rempt from comment #4)
> Setting to confirmed then. I'm not sure we can do much about this, though --
> one reason for the g'mic rewrite we did years ago was that macos has a
> really small shared memory allocation per process.

I can easily allocate 64MB of SharedMemory and work with it in my scripts. No
matter if I am opening or creating SharedMemory it crashes on subsequent use.
And of course it works in python interpreter in standard way. The memory
allocation also does not matter  as I can allocate objects of size 4KB(minimal 
amount  as far as I have seen) and still get a crash. 

I don’t know how krita works but It looks like it is not entirely os issue. the
amount of memory created is irrelevant, the issue occurs on opening shared
memory object(unlinking too) and allows allocation of rather big chunks of
memory. 

Also I think the max amount of shared memory per process on macos can be
changed by some commands.

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list