afWatch crashes afServer on MacOS

General discussions and questions.
Post Reply
doc_k
Posts: 2
Joined: Wed Feb 23, 2022 2:23 pm

afWatch crashes afServer on MacOS

Post 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
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: afWatch crashes afServer on MacOS

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
doc_k
Posts: 2
Joined: Wed Feb 23, 2022 2:23 pm

Re: afWatch crashes afServer on MacOS

Post 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?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: afWatch crashes afServer on MacOS

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply