SWI-Prolog / pengines

Pengine and Prolog scratchpad
BSD 2-Clause "Simplified" License
57 stars 16 forks source link

Error No permission to call sandboxed `thread_send_message(_7532,_7534,_7536)' #26

Closed avtaylor closed 6 years ago

avtaylor commented 6 years ago

Hello. This initiative is very good but I cannot run some of the apps. The error above is when I run the expert_system example. Can this error be dealt with? Thank you

JanWielemaker commented 6 years ago

See Help/Limitations and Help/Caveats. You cannot call thread_send_message because message passing is what makes all tasks in SWISH cooperate. If you could find out about threads and send them messages you can easily interfere with other users.

Possibly this is an indirect consequence of using some higher level library predicate. In that case report that, but in general we will not allow for the concurrency predicates to avoid overloading the server.

You can run a local copy in which you disable sandboxing.

avtaylor commented 6 years ago

I see. But I do not know (although I did search for that information) how to disable sandboxing. Could you tell me please? Thank you

JanWielemaker commented 6 years ago

See https://github.com/SWI-Prolog/swish#running-swish-without-sandbox-limitations