Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VAL does not accept a domain file that has more than 8999 predicates #34

Open
guicho271828 opened this issue Feb 22, 2019 · 14 comments
Open

Comments

@guicho271828
Copy link

There seems to be some constant

@DerekLong101
Copy link
Contributor

DerekLong101 commented Feb 22, 2019 via email

@guicho271828
Copy link
Author

The previous test was done in my HEAD a3d89ee, but I got the same results on a556539 .

$ ./test.sh
domain10000.pddl
Problem in domain definition!
domain9980.pddl
domain9981.pddl
domain9982.pddl
domain9983.pddl
domain9984.pddl
domain9985.pddl
domain9986.pddl
domain9987.pddl
domain9988.pddl
domain9989.pddl
domain9990.pddl
Problem in domain definition!
domain9991.pddl
Problem in domain definition!
domain9992.pddl
Problem in domain definition!
domain9993.pddl
Problem in domain definition!
domain9994.pddl
Problem in domain definition!
domain9995.pddl
Problem in domain definition!
domain9996.pddl
Problem in domain definition!
domain9997.pddl
Problem in domain definition!
domain9998.pddl
Problem in domain definition!
domain9999.pddl
Problem in domain definition!

@guicho271828
Copy link
Author

issue-34.tar.gz

@DerekLong101
Copy link
Contributor

DerekLong101 commented Feb 22, 2019 via email

@guicho271828
Copy link
Author

I didn't pushed this file on the repo. plz download the archive

@guicho271828
Copy link
Author

I just noticed you are responding via email. If the archive is not attached, you can check the web

@guicho271828
Copy link
Author

Probably this.
https://www.gnu.org/software/bison/manual/html_node/Memory-Management.html

src/pddlplus.cpp:# define YYMAXDEPTH 10000
Although, the file is not currently used. Probably pddl+.lex.

@guicho271828
Copy link
Author

%.cpp : %.yacc
flex -+ src/Parser/pddl+.lex -o /src/Parser/lex.yy.cc; bison $< -o src/pddl+.cpp

This flex invocation is wrong. The options should come before the input. The right code is

%.cpp : %.yacc
flex -+  -o /src/Parser/lex.yy.cc src/Parser/pddl+.lex; bison $< -o src/pddl+.cpp

@maltehelmert
Copy link

Hi all, perhaps this has the same underlying cause as issue #16? (VAL failing with "bad plan description" if the plan has more than 9994 actions). In both cases the limit seems to be in a similar ballpark, so perhaps it comes from the same source.

@guicho271828
Copy link
Author

guicho271828 commented Feb 22, 2019

lex.yy.cc was not even used/linked...
oops, this was wrong.

@guicho271828
Copy link
Author

YYMAXDEPTH solved the issue. I have not tested #16 but it is highly likely because of the same reason.
On the way, I spotted 7 more files that are not necessary for building VAL and fixed the Makefile.

@speckdavid
Copy link

I can confirm that increasing YYMAXDEPTH solves issue #16.

guicho271828 added a commit to guicho271828/VAL that referenced this issue Mar 19, 2019
@guicho271828
Copy link
Author

Got a company approval for pushing the code / keep contributing.

@DerekLong101
Copy link
Contributor

Thanks for this. Are we actually interested in having the MAX DEPTH value increased? And if so, to what value? Or might it be better to put a graceful exit for this case requesting recompile with different parameters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants