This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12421 - Checker crashes when CSS validator reports an Error
Summary: Checker crashes when CSS validator reports an Error
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 10:26 UTC by fd
Modified: 2011-04-05 17:13 UTC (History)
0 users

See Also:


Attachments

Description fd 2011-04-05 10:26:40 UTC
Preprocessor.processResource catches Exception errors properly, but ignores Error errors. When an Error gets raised internally, the mobileOK Checker crashes silently and enters an infinite loop: the thread keeps running forever.

As it happens, the CSS validator may raise an Error.

Solution: catch Error or the more generic Throwable class in Preprocess.processResource.

(Plus apply the fix to other parts of the code that use multithreading)
Comment 1 fd 2011-04-05 17:13:01 UTC
"Throwable" errors now get caught properly in processResource.
I could not find other parts of the code where a similar problem might arise.