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

David Tschumperlé <david.tschumpe...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david.tschumpe...@gmail.com

--- Comment #5 from David Tschumperlé <david.tschumpe...@gmail.com> ---
Maybe a useful note about G'MIC on MacOSX : 
A few years ago, when trying to make G'MIC work on MacOSX (but the CLI tool,
not the G'MIC-Qt plug-in), we experienced a lot of random crashes, happening
when new threads were created by the G'MIC interpreter (it looked similar to
what your log shows).

The reason was that the default stack size allocated when creating a new thread
on MacOSX is ridiculously low (512Kb, while it's several MB on Windows/Linux),
and thus, the G'MIC interpreter (which is a pretty complex function) was
running out of stack memory.
We added a work-around in the G'MIC interpreter code, specifically to solve
this for MacOSX, file 'gmic.cpp', l.10324 :
https://github.com/dtschump/gmic/blob/master/src/gmic.cpp#L10324

Anyway, I'm not sure we did the same for the threads created by the G'MIC-Qt
plug-in, and in that case, it would mean that the main G'MIC instance is run
with a 512Kb stack (as it's run in a thread created by G'MIC-Qt).

Maybe something to investigate.

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

Reply via email to