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

"RuntimeException: Error in code" when using -obfl-vertical-position: 25; with a page height of 25 or less #153

Open
josteinaj opened this issue Jul 4, 2017 · 3 comments

Comments

@josteinaj
Copy link
Member

Not sure if this counts as a bug, but it would at least be nice if the error message was something more descriptive than "RuntimeException: Error in code".

Relevant XML and CSS (from NLB script, used to show volume number at the bottom of the page):

<p class="volume"> of </p>
.bind::before {
        display: inline;
        content: "Volume " -obfl-evaluate("(round $volume)");
}

.bind {
        display: inline;
        -obfl-vertical-position: 25;
}

.bind::after {
        display: inline;
        content: -obfl-evaluate("(round $volumes)");
        page-break-after: always;
}
@josteinaj
Copy link
Member Author

josteinaj commented Jul 4, 2017

Here's the stacktrace:

java.lang.RuntimeException: Error in code.
	at org.daisy.dotify.formatter.impl.PageSequenceBuilder2.newRow(PageSequenceBuilder2.java:104) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.formatter.impl.PageSequenceBuilder2.nextPage(PageSequenceBuilder2.java:137) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.formatter.impl.PageStructBuilder.newSequence(PageStructBuilder.java:114) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.formatter.impl.PageStructBuilder.paginateInner(PageStructBuilder.java:42) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.formatter.impl.PageStructBuilder.paginate(PageStructBuilder.java:23) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.formatter.impl.FormatterImpl.updateVolumeContents(FormatterImpl.java:203) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.formatter.impl.FormatterImpl.getVolumes(FormatterImpl.java:146) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.formatter.impl.FormatterImpl.write(FormatterImpl.java:128) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.dotify.engine.impl.LayoutEngineImpl.convert(LayoutEngineImpl.java:127) ~[dotify.formatter.impl-3.1.0.jar:na]
	at org.daisy.pipeline.braille.dotify.calabash.impl.OBFLToPEFStep.run(OBFLToPEFStep.java:136) ~[dotify-formatter-1.12.0-SNAPSHOT.jar:na]
(...)

@bertfrees
Copy link
Member

This is a Dotify error. I have improved this error message already in Dotify but that commit was reverted later. I don't know whether updating to the latest version would help.

@bertfrees
Copy link
Member

Needs a test to check whether this is still an issue.

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

No branches or pull requests

2 participants