I’m using: SWI-Prolog version 8.2.1
I have 16GB RAM ubuntu 20
I want the code to:
When i call in the first i don’t hav any error i make a query with findall at secondi have this error :
But what I’m getting is:
[Thread httpd@8082_1] POST /prove: [503] Stack limit (1.0Gb) exceeded
Stack sizes: local: 50Kb, global: 38.3Mb, trail: 1Kb
Stack depth: 27, last-call: 33%, Choice points: 141
In:
[27] system:’$add_findall_bag’([length:2])
[26] ‘$bags’:findall_loop([length:2], ‘<garbage_collected>’, _572, [])
[25] system:setup_call_catcher_cleanup(<compound (:)/2>, <compound (:)/2>, _602, <compound (:)/2>)
[21] ‘$bags’:bagof(’<garbage_collected>’, ‘<garbage_collected>’, _644)
[20] user:my_findall(’<garbage_collected>’, ‘<garbage_collected>’, _666)
Use the --stack_limit=size[KMG] command line option or
?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit.
set_prolog_flag(stack_limit, 2_147_483_648) don’t resole the probleme
My code looks like this:
findall(Names,call(Term),ProveResultList),