xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46336] Synchronization fault in FontInfoFinder
Date Thu, 04 Dec 2008 18:51:38 GMT

--- Comment #1 from Andreas L. Delmelle <adelmelle@apache.org>  2008-12-04 10:51:38
PST ---

Are you certain it is a synchronization failure, or did you only draw that
conclusion because the app is multi-threaded and the issue does not arise in
single-threaded context?

If I interpret correctly, this points to something other than a synchronization

at org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:172)
170             if (fontCache.containsFont(embedUrl)) {
171                 CachedFontInfo fontInfo = fontCache.getFont(embedUrl);
172                 if (fontInfo.lastModified() == fileLastModified) {

The NullPointerException must be caused by fontInfo.lastModified(). 
It therefore appears possible for the FontCache to return true for
containsFont(...) and yet return null for getFont(...) with the same URL?

Anyway, I quickly checked the source in FOP Trunk, and getFont() doesn't even
exist as a method for FontCache anymore. Can you check if the problem persists
if you use trunk instead of 0.95?

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message