yuce / pyswip

PySwip is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your Python programs. It features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a Pythonic interface.
https://pyswip.org
MIT License
472 stars 97 forks source link

How to clean prolog ? #135

Open Hemery-M opened 2 years ago

Hemery-M commented 2 years ago

Okay, the title may not be exactly the problem but I have a strange bugs that appear when I try to solve multiple queries (more that 1000 but less than 300.000). At a point, Python just crashed and print

[FATAL ERROR: at Tue Dec 14
    Too many stacked strings]
Abandon (core dumped)

Each of the query is really fast but it seems that stacking them without properly clean the prolog part leads to this failure !

LiuBodan commented 3 months ago

Hi, Did you figure out how to solve this problem? Thanks

Hemery-M commented 3 months ago

Absolutely not.