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

stack overflow when validating data #130

Closed
balhoff opened this issue Jul 20, 2019 · 5 comments
Closed

stack overflow when validating data #130

balhoff opened this issue Jul 20, 2019 · 5 comments
Labels

Comments

@balhoff
Copy link

balhoff commented Jul 20, 2019

When attempting to validate certain data files, I get a java.lang.StackOverflowError:

Exception in thread "main" java.lang.StackOverflowError
	at cats.data.KleisliFunctions.$anonfun$pure$1(Kleisli.scala:168)
	at cats.data.Kleisli.$anonfun$map$1(Kleisli.scala:19)
	at cats.data.Kleisli.$anonfun$flatMap$1(Kleisli.scala:31)
	at cats.package$$anon$1.flatMap(package.scala:41)
	at cats.data.Kleisli$.$anonfun$shift$1(Kleisli.scala:112)
	at cats.data.Kleisli.$anonfun$flatMap$2(Kleisli.scala:31)
	at cats.package$$anon$1.flatMap(package.scala:41)
	at cats.data.Kleisli.$anonfun$flatMap$1(Kleisli.scala:31)
	at cats.package$$anon$1.flatMap(package.scala:41)
	at cats.data.Kleisli$.$anonfun$shift$1(Kleisli.scala:112)
	at cats.data.Kleisli.$anonfun$flatMap$1(Kleisli.scala:31)
	at cats.package$$anon$1.flatMap(package.scala:41)
(truncated)

The command I am running is:

shaclex --schema go-cam-shapes.shex --schemaFormat SHEXC --shapeMap go-cam-shapes.shapeMap --data Test000-Correct_and_complete_ActivityUnit_model-enriched.ttl --trigger SHAPEMAP --outFile out.shapeMap

The input files are here:

I am using shaclex built from 83eeedb.

@balhoff
Copy link
Author

balhoff commented Jul 20, 2019

If I increase the stack size (JAVA_OPTS="-Xmx6G -Xss32m"), I eventually use up the heap instead: java.lang.OutOfMemoryError: GC overhead limit exceeded.

@labra
Copy link
Member

labra commented Jul 20, 2019

Thanks for the report. I reproduced it in my computer and will try to solve it.

By the way, looking at how you use shape maps with SPARQL selectors, I think we should extend them to be able to define prefix declarations. I raised another issue to the spec about that:.

@labra
Copy link
Member

labra commented Aug 2, 2019

I tried the example with the new optimization (#133), and now it works. I published a new release called 0.1.24 which contains that optimization.

@labra labra closed this as completed Aug 2, 2019
@balhoff
Copy link
Author

balhoff commented Aug 2, 2019

Thanks for the quick fix! I will try it out next week.

@balhoff
Copy link
Author

balhoff commented Aug 6, 2019

This is working great now, thank you.

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

No branches or pull requests

2 participants