Page 1 of 1

afWatch crashes afServer on MacOS

Posted: Fri Feb 25, 2022 9:33 am
by doc_k
Hi,

i have correctly compiled CGRU on MacOS 11.6.2 (20G314) Big Sur.
i've set afServer and afRender on the same machine using its ip address in config.json.
afServer and afRender seems to work quite fine.

but whenever afWatch is launced and running, it seems to generate a very large memory footprint while interacting with afServer reaching in few swconds the whole ram usage, and then just clicking on any tab on afWatch (or even worst, just waiting) makes afServer crash.

this is the output coming from terminal:

Code: Select all

AfQueue::pop: sem_wait() failed: Interrupted system call

zsh: segmentation fault  /Users/mad/Documents/CGRU/cgru-3.2.2/afanasy/bin/afserver
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
same thing happens if i use the web interface on "myipaddress:51000" and don't even run afWatch

I've tried to setup afServer on a linux machine and both server and watch are working fine. I can control linux afServer with same afWatch from my macOS machine with no issues.

Am i doing something wrong?

Thanks in advance,
Ivan

Re: afWatch crashes afServer on MacOS

Posted: Fri Feb 25, 2022 4:55 pm
by timurhai
Hi!
I am not a Mac developer or even user.
Just some people who are using Mac and this project build it and commit some fixes periodically.
And i do not have Mac to make releases and perform tests.

But I can give a few advices.
Try to run afserver by root, may be some system call need super user rights.
Try to run afserver via some valgrind (or other debugger) to find memory leak problem.
Ask some experienced Mac developer for help, you can say that on Linux everything is ok, and the code almost the save for Linux and Mac, may be he can give some advices too.

Re: afWatch crashes afServer on MacOS

Posted: Mon Feb 28, 2022 2:06 pm
by doc_k
@timurhai,
Thanks for the tips. Unfortunately running afserver as root makes no difference.
Do you know any mac developer i can contact to inspect the issue further?

Re: afWatch crashes afServer on MacOS

Posted: Mon Feb 28, 2022 2:30 pm
by timurhai
Hi!
Sorry, no, i have no Mac developer contact.

ps
Such services usually used on some virtual machines, so it is not a big deal to have a Linux for it.