Re: static/threading problem with SVGFontUtilities

2002-02-22 Thread Keiron Liddle
On 2002.02.21 21:49 Vincent Hardy wrote: > Keiron, > > I fixed the static modifier issue in BridgeContext. > V. Thanks. It makes more sense now. Keep up the good work (without the cut&paste errors :) - To unsubscribe, e-mail: [

Re: static/threading problem with SVGFontUtilities

2002-02-22 Thread Vincent Hardy
Keiron, I fixed the static modifier issue in BridgeContext. V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: static/threading problem with SVGFontUtilities

2002-02-21 Thread Vincent Hardy
Keiron, Ooops, the static modifier is a cut/paste error on my part. I'll fix this. V. Keiron Liddle wrote: > > Hi Vincent, > > No. It is a new BridgeContext every time a document is processed. > I had a look at it and it seems to me that the problem could be: > In BridgeContext > One thread is

Re: static/threading problem with SVGFontUtilities

2002-02-21 Thread Thierry Kormann
Keiron Liddle wrote: > Hi Vincent, > > No. It is a new BridgeContext every time a document is processed. > I had a look at it and it seems to me that the problem could be: > In BridgeContext > One thread is at line 225, so that thread knows the fontFamilyMap is not > null. > Another thread then

Re: static/threading problem with SVGFontUtilities

2002-02-21 Thread Keiron Liddle
Hi Vincent, No. It is a new BridgeContext every time a document is processed. I had a look at it and it seems to me that the problem could be: In BridgeContext One thread is at line 225, so that thread knows the fontFamilyMap is not null. Another thread then goes through line 250 and sets the fo

Re: static/threading problem with SVGFontUtilities

2002-02-20 Thread Vincent Hardy
Keiron, Are you sharing your BridgeContext between threads by any chance? I think somehow the BridgeContext used by SVGFontUtilities is used by another thread which must set the context's Document in the middle of the getFontFamilyMap execution which then returns null. Vincent. Keiron Liddle wr

Re: static/threading problem with SVGFontUtilities

2002-02-20 Thread Keiron Liddle
It seems a bit rarer than I thought. Stack trace with line numbers: svg graphic could not be built: null java.lang.NullPointerException at org.apache.batik.bridge.SVGFontUtilities.getFontFamily(SVGFontUtilities.java:60) at org.apache.batik.bridge.SVGTextElementBridge.getAttrib

Re: static/threading problem with SVGFontUtilities

2002-02-20 Thread Vincent Hardy
Keiron, I see the problem for which you have a fix (DOMException) running your test, but I am unable to reproduce the NullPointerException. Would you have a complete trace of that Exception? Thanks, Vincent. Keiron Liddle wrote: > > Hi Vincent, > > The memory thing is better thanks. It appea

Re: static/threading problem with SVGFontUtilities

2002-02-20 Thread Vincent Hardy
Keiron, I will have a look at your test case as the error below does not show where the exception is happening. Cheers, V. Keiron Liddle wrote: > > Hi Vincent, > > The memory thing is better thanks. It appears there can still be some > threading thing but it is very rare (after about 12000 d

Re: static/threading problem with SVGFontUtilities

2002-02-20 Thread Keiron Liddle
Hi Vincent, The memory thing is better thanks. It appears there can still be some threading thing but it is very rare (after about 12000 documents in heavy use). java.lang.NullPointerException at org.apache.batik.bridge.SVGFontUtilities.getFontFamily(Unknown Source) Using the testing

Re: static/threading problem with SVGFontUtilities

2002-02-20 Thread Vincent Hardy
Keiron, There is a fix in the CVS repository. Cheers, V. Keiron Liddle wrote: > > Hi, > > I have a couple of problems with the SVGFontUtilities class. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: static/threading problem with SVGFontUtilities

2002-02-19 Thread Vincent Hardy
Thomas E Deweese wrote: > > > "VH" == Vincent Hardy <[EMAIL PROTECTED]> writes: > > VH> Keiron, I have entered a Bug in Bugzilla so that we can address > VH> the problem you reported: > > VH> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6536 > > VH> The memory leak is a real concern.

Re: static/threading problem with SVGFontUtilities

2002-02-19 Thread Thomas E Deweese
> "VH" == Vincent Hardy <[EMAIL PROTECTED]> writes: VH> Keiron, I have entered a Bug in Bugzilla so that we can address VH> the problem you reported: VH> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6536 VH> The memory leak is a real concern. VH> The multi-thread problem is also a c

Re: static/threading problem with SVGFontUtilities

2002-02-19 Thread Vincent Hardy
Keiron, I have entered a Bug in Bugzilla so that we can address the problem you reported: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6536 The memory leak is a real concern. The multi-thread problem is also a concern, but note that Batik is usually not thread safe (e.g., the SVG gener

static/threading problem with SVGFontUtilities

2002-02-18 Thread Keiron Liddle
Hi, I have a couple of problems with the SVGFontUtilities class. It holds a static reference to the "current" document. This means that it will hold onto the last document to have text in it. I ran into a problem where the document was holding onto a whole lot of other stuff through the Defaul

Re: Threading problem

2001-12-17 Thread Keiron Liddle
Thanks, keeping cool. On 2001.12.17 17:38 Thierry Kormann wrote: > On Monday 17 December 2001 17:31, Keiron Liddle wrote: > > Hi, > > > > I have run into a threading problem when multiple SVG Documents are > having > > the GVT built at the same time. > > >

Re: Threading problem

2001-12-17 Thread Thierry Kormann
On Monday 17 December 2001 17:31, Keiron Liddle wrote: > Hi, > > I have run into a threading problem when multiple SVG Documents are having > the GVT built at the same time. > > The attached jar contains a testing class and the svg files it uses. If > this is run then I get a

Threading problem

2001-12-17 Thread Keiron Liddle
Hi, I have run into a threading problem when multiple SVG Documents are having the GVT built at the same time. The attached jar contains a testing class and the svg files it uses. If this is run then I get a number of exceptions (about 2 out of 75 times). The documents are valid and can be