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

Viewport Test throws argument exception #1449

Closed
wareid opened this issue Dec 7, 2022 · 1 comment · Fixed by #1460
Closed

Viewport Test throws argument exception #1449

wareid opened this issue Dec 7, 2022 · 1 comment · Fixed by #1460
Assignees
Labels
status: has PR The issue is being processed in a pull request type: bug The issue describes a bug
Milestone

Comments

@wareid
Copy link

wareid commented Dec 7, 2022

Hi all,

Running the epub-tests through EPUBCheck beta 3 and noticed this error was thrown for the book: lay-fxl-xhtml-icb_repeated-in-meta.

Test book can be found here: https://github.com/w3c/epub-tests/tree/main/tests

Validating using EPUB version 3.3 rules.
java.lang.IllegalArgumentException: Multiple entries with same key: width=1000 and width=900
	at com.google.common.collect.RegularImmutableMap.createHashTable(RegularImmutableMap.java:104)
	at com.google.common.collect.RegularImmutableMap.create(RegularImmutableMap.java:74)
	at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:338)
	at org.w3c.epubcheck.util.microsyntax.ViewportMeta.<init>(ViewportMeta.java:238)
	at org.w3c.epubcheck.util.microsyntax.ViewportMeta.<init>(ViewportMeta.java:12)
	at org.w3c.epubcheck.util.microsyntax.ViewportMeta$Builder.build(ViewportMeta.java:58)
	at org.w3c.epubcheck.util.microsyntax.ViewportMeta$Parser.parse(ViewportMeta.java:230)
	at org.w3c.epubcheck.util.microsyntax.ViewportMeta.parse(ViewportMeta.java:19)
	at com.adobe.epubcheck.ops.OPSHandler30.processMeta(OPSHandler30.java:776)
	at com.adobe.epubcheck.ops.OPSHandler30.startElement(OPSHandler30.java:342)
	at com.adobe.epubcheck.xml.handlers.XMLHandler.startElement(XMLHandler.java:115)
	at com.adobe.epubcheck.xml.handlers.DelegateDefaultHandler.startElement(DelegateDefaultHandler.java:170)
	at com.adobe.epubcheck.xml.handlers.WrappingDefaultHandler.startElement(WrappingDefaultHandler.java:95)
	at com.adobe.epubcheck.xml.handlers.PreprocessingDefaultHandler.startElement(PreprocessingDefaultHandler.java:59)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
	at com.adobe.epubcheck.xml.XMLParser.process(XMLParser.java:176)
	at com.adobe.epubcheck.ops.OPSChecker.validate(OPSChecker.java:127)
	at com.adobe.epubcheck.ops.OPSChecker.checkContent(OPSChecker.java:97)
	at com.adobe.epubcheck.opf.PublicationResourceChecker.check(PublicationResourceChecker.java:45)
	at com.adobe.epubcheck.opf.OPFChecker.checkItemContent(OPFChecker.java:386)
	at com.adobe.epubcheck.opf.OPFChecker.checkPackage(OPFChecker.java:135)
	at com.adobe.epubcheck.opf.OPFChecker30.checkPackage(OPFChecker30.java:66)
	at com.adobe.epubcheck.opf.OPFChecker.check(OPFChecker.java:93)
	at com.adobe.epubcheck.ocf.OCFChecker.check(OCFChecker.java:174)
	at com.adobe.epubcheck.api.EpubCheck.doValidate(EpubCheck.java:218)
	at com.adobe.epubcheck.tool.EpubChecker.validateFile(EpubChecker.java:245)
	at com.adobe.epubcheck.tool.EpubChecker.processFile(EpubChecker.java:320)
	at com.adobe.epubcheck.tool.EpubChecker.run(EpubChecker.java:145)
	at com.adobe.epubcheck.tool.Checker.main(Checker.java:31)
Messages: 0 fatals / 0 errors / 0 warnings / 0 infos```
@rdeltour
Copy link
Member

rdeltour commented Dec 7, 2022

Thanks for the report! Looks like a bug.

@rdeltour rdeltour added type: bug The issue describes a bug status: accepted Ready to be further processed labels Dec 7, 2022
@rdeltour rdeltour self-assigned this Dec 7, 2022
@rdeltour rdeltour modified the milestones: v5.0.0, v5.0.0-rc Dec 7, 2022
@rdeltour rdeltour added status: has PR The issue is being processed in a pull request and removed status: accepted Ready to be further processed labels Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: has PR The issue is being processed in a pull request type: bug The issue describes a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants