Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json 如何设置set_prolog_标志(堆栈限制,2_147_483_648)。使用swipl prolog将限制加倍_Json_Xsd_Prolog_Swi Prolog - Fatal编程技术网

Json 如何设置set_prolog_标志(堆栈限制,2_147_483_648)。使用swipl prolog将限制加倍

Json 如何设置set_prolog_标志(堆栈限制,2_147_483_648)。使用swipl prolog将限制加倍,json,xsd,prolog,swi-prolog,Json,Xsd,Prolog,Swi Prolog,我正在尝试使用prolog运行使用gitmodule()的xsd2 json会话。Wehn我尝试使用此命令行运行时出现以下错误: C:\xsd2json-master\lib-pl>swipl -g main cli.pl -- C:\proj_xsd\ref\p1_v1.xsd ERROR: -g main: Stack limit (1.0Gb) exceeded ERROR: Stack sizes: local: 1.7Mb, global: 0.7Gb, trail: 0.2

我正在尝试使用prolog运行使用gitmodule()的xsd2 json会话。Wehn我尝试使用此命令行运行时出现以下错误:

C:\xsd2json-master\lib-pl>swipl -g main cli.pl -- C:\proj_xsd\ref\p1_v1.xsd
ERROR: -g main: Stack limit (1.0Gb) exceeded
ERROR:   Stack sizes: local: 1.7Mb, global: 0.7Gb, trail: 0.2Mb
ERROR:   Stack depth: 20,761,408, last-call: 100%, Choice points: 4,174
ERROR:   In:
ERROR:     [20,761,408] xsd2json:json_created('C:\proj_xsd\ref\p1_v1.xsd', [], [length:1])
ERROR:     [20,761,407] xsd2json:json___3__0__0__3('<garbage_collected>', 'C:\proj_xsd\ref\p1_v1.xsd', [le
ngth:1], <compound json/1>, <compound suspension/9>)
ERROR:     [20,760,488] xsd2json:json___3__0('C:\proj_xsd\ref\p1_v1.xsd', '<garbage_collected>', '<garbage
_collected>', '<garbage_collected>')
ERROR:     [20,760,486] xsd2json:node___6__41__1__75('<garbage_collected>', <compound ns/2>, [length:2], <compound suspension/12>, [length:32], 'C:\proj_xsd\ref\p1_v1.xsd', <compound ns/2>, schema, [length:1], _10487734, [], <compound suspension/12>)
ERROR:     [20,740,111] xsd2json:xsd_flatten_nodes('C:\proj_xsd\ref\p1_v1.xsd', [], 0, [length:1], [], [le
ngth:1|_10487820])
ERROR:
ERROR: Use the --stack_limit=size[KMG] command line option or
ERROR: ?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit.
C:\xsd2json master\lib pl>swipl-g main cli.pl--C:\proj_xsd\ref\p1_v1.xsd
错误:-g main:超出堆栈限制(1.0Gb)
错误:堆栈大小:本地:1.7Mb,全局:0.7Gb,跟踪:0.2Mb
错误:堆栈深度:20761408,上次调用:100%,选择点:4174
错误:在:
错误:[20761408]xsd2json:json_已创建('C:\proj_xsd\ref\p1_v1.xsd',[],[length:1])
错误:[20761407]xsd2json:json\uuuuuuuuuuuuuu3\uuuuuu0\uuuuuu3(“”,'C:\proj\uxsd\ref\p1\uv1.xsd',[le]
波长:1],)
错误:[20760488]xsd2json:json\uuuuuuu3\uuu0('C:\proj\uxsd\ref\p1\uv1.xsd','','','')
错误:[20760486]xsd2json:node_uuuuuuuuuuuuuuuuuuuuuuuuuuuuu6_uuuuuuuuu41_uuuuuuuuuuu1_uuuuuuu75(“”,[length:2],[length:32],'C:\proj_xsd\ref\p1_v1.xsd',模式,[length:1],[u
错误:[2074011]xsd2json:xsd_展平_节点('C:\proj_xsd\ref\p1_v1.xsd',[],0,[length:1],[le]
长度:1 | 10487820])
错误:
错误:使用--stack\u limit=size[KMG]命令行选项或
错误:?-set_prolog_标志(堆栈限制,2_147_483_648)。加倍限制。
Prolog文档确实讨论了堆栈限制,但没有说明如何设置它


在您发布的错误消息中,它说

ERROR: Use the --stack_limit=size[KMG] command line option or
?- set_prolog_flag(stack_limit, 2_147_483_648). to double the limit.
你试过跑步吗

C:\xsd2json-master\lib-pl>swipl --stack_limit=4G -g main cli.pl -- C:\proj_xsd\ref\p1_v1.xsd
或者叫

?- set_prolog_flag(stack_limit, 2_147_483_648).
在序言中,如建议的那样