You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Vincent Hobeïka <vi...@gmail.com> on 2011/12/06 10:49:14 UTC
Fails to build publican's user guide
Dear fop users,
I come to you to forward a bug from the debian bug tracker [1].
fop crashes when building publican's user guide. You can find a sample
attachment [2] to reproduce the problem.
Best regards,
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649476
[2] http://bugs.debian.org/cgi-
bin/bugreport.cgi?msg=10;filename=Users_Guide.fo.gz;att=1;bug=649476
--
Vincent Hobeïka
Re: Fails to build publican's user guide
Posted by Vincent Hobeïka <vi...@gmail.com>.
Hi Pascal,
On Wednesday 07 December 2011 14:25:08 Pascal Sancho wrote:
> Can you try it against FOP trunk?
>
I have tried it against FOP trunk and it passes!
Revision: 1211788
> The main thing here is to isolate a short testcase that still
> demonstrates the issue in both 0.95 and 1.0 versions.
> Even if FOP trunk passes the test, the snippet could be used for unit-test
I'll see what I can do about this. The debian user told me this file was
generated from a docbook xml file and it seems they haven't used fop 1.0 before
so they haven't tracked which commit broke things. If I come up with something
I'll tell you.
Thanks
--
Vincent Hobeïka
Re: Fails to build publican's user guide
Posted by Pascal Sancho <pa...@takoma.fr>.
Hi Vincent,
Le 07/12/2011 10:15, Vincent Hobeïka a écrit :
> Hi Pascal,
>
> Thank you for your kind answer.
>
> On Tue, Dec 6, 2011 at 3:33 PM, Pascal Sancho <pa...@takoma.fr> wrote:
>> when you ask on this list, you should provide a shrinked XSL-FO that
>> demonstrates the problem
>
> I am sorry about that. Thank you for pointing this. I'll do as you say
> next time.
>
>> That said, I've found that using fo:inline within a fo:block with
>> hyphenate="true" linefeed-treatment="preserve" throws an NPE.
>
> Thank you for the hint, I'll try to investigate more in this way.
>
>> Fortunately, I can only reproduce it on FOP 0.95, while FOP 1.0 passes.
>
> The debian user who reported the bug stated that it happens with FOP
> 1.0.
>
> I was able to reproduce the bug with 1.0 and not 0.95. I did a
> comparison of the output messages and they just doesn't have much in
> common. I can produce the pdf with fop 0.95 but not with fop 1.0.
Hmm,
I've just retested the whole FO against 0.95, 1.0 and build from trunk.
result: 0.95 and 1.0 fail, while TRUNK passes.
Probably my shrinked FO was too shrinked, since the 1.0 didn't fail
yesterday.
Can you try it against FOP trunk?
> I'm giving you the output messages I have:
>
> $ fop -version
> [warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java FOP
> Version 1.0
>
> http://www.hobeika.fr/~vincent/fop/log_all1.0 1.0 Mo
> http://www.hobeika.fr/~vincent/fop/log_cout1.0 965 Ko
> http://www.hobeika.fr/~vincent/fop/log_err1.0 20 Ko
>
> and for fop 0.95
>
> http://www.hobeika.fr/~vincent/fop/log_all0.95 231 o
> http://www.hobeika.fr/~vincent/fop/log_cout0.95 0 o
> http://www.hobeika.fr/~vincent/fop/log_err0.95 231 o
>
> Is there something I can do to help more about this?
> I have search quite a lot the bug tracker but I wasn't able to find tickets
> related to fo:inline within a fo:block and NullPointerException in
> InlineStackingLayoutManager.java:277
>
> Is this a new bug or can you point me to the related bug? I may add my logs in
> it then.
The main thing here is to isolate a short testcase that still
demonstrates the issue in both 0.95 and 1.0 versions.
Even if FOP trunk passes the test, the snippet could be used for unit-test
probably related to #48806 [1], #46386 [2].
[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=48806
[2] https://issues.apache.org/bugzilla/show_bug.cgi?id=46386
> Thanks again for your concern.
>
> Best regards,
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Fails to build publican's user guide
Posted by Vincent Hobeïka <vi...@gmail.com>.
Hi Pascal,
Thank you for your kind answer.
On Tue, Dec 6, 2011 at 3:33 PM, Pascal Sancho <pa...@takoma.fr> wrote:
> when you ask on this list, you should provide a shrinked XSL-FO that
> demonstrates the problem
I am sorry about that. Thank you for pointing this. I'll do as you say
next time.
> That said, I've found that using fo:inline within a fo:block with
> hyphenate="true" linefeed-treatment="preserve" throws an NPE.
Thank you for the hint, I'll try to investigate more in this way.
> Fortunately, I can only reproduce it on FOP 0.95, while FOP 1.0 passes.
The debian user who reported the bug stated that it happens with FOP
1.0.
I was able to reproduce the bug with 1.0 and not 0.95. I did a
comparison of the output messages and they just doesn't have much in
common. I can produce the pdf with fop 0.95 but not with fop 1.0.
I'm giving you the output messages I have:
$ fop -version
[warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java FOP
Version 1.0
http://www.hobeika.fr/~vincent/fop/log_all1.0 1.0 Mo
http://www.hobeika.fr/~vincent/fop/log_cout1.0 965 Ko
http://www.hobeika.fr/~vincent/fop/log_err1.0 20 Ko
and for fop 0.95
http://www.hobeika.fr/~vincent/fop/log_all0.95 231 o
http://www.hobeika.fr/~vincent/fop/log_cout0.95 0 o
http://www.hobeika.fr/~vincent/fop/log_err0.95 231 o
Is there something I can do to help more about this?
I have search quite a lot the bug tracker but I wasn't able to find tickets
related to fo:inline within a fo:block and NullPointerException in
InlineStackingLayoutManager.java:277
Is this a new bug or can you point me to the related bug? I may add my logs in
it then.
Thanks again for your concern.
Best regards,
--
Vincent Hobeïka
Re: Fails to build publican's user guide
Posted by Pascal Sancho <pa...@takoma.fr>.
Hi Vincent,
when you ask on this list, you should provide a shrinked XSL-FO that
demonstrates the problem (the one on Debian buglist is about 2MB, witch
is quite big).
That said, I've found that using fo:inline within a fo:block with
hyphenate="true" linefeed-treatment="preserve" throws an NPE.
Fortunately, I can only reproduce it on FOP 0.95, while FOP 1.0 passes.
So, you have 2 options:
- either use FOP 1.0
- or replace such fo:inline with fo:wrapper, since from what I've seen
they are used as properties carriers, not as related area properties
(i.e. padding, border, background, etc.).
Le 06/12/2011 11:46, Vincent Hobeïka a écrit :
> Sorry, I realise my report was quite imprecise.
>
> fop encounters a NullPointerException in
> InlineStackingLayoutManager.java:277
>
> I have found several reports regarding this kind of error in fop bug
> tracker:
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=46386
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48765
>
> So far I'm not sure if they are related.
>
> Best regards,
>
> --
>
> Vincent Hobeïka
>
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Fails to build publican's user guide
Posted by Vincent Hobeïka <vi...@gmail.com>.
Sorry, I realise my report was quite imprecise.
fop encounters a NullPointerException in InlineStackingLayoutManager.java:277
I have found several reports regarding this kind of error in fop bug tracker:
https://issues.apache.org/bugzilla/show_bug.cgi?id=46386
https://issues.apache.org/bugzilla/show_bug.cgi?id=48765
So far I'm not sure if they are related.
Best regards,
--
Vincent Hobeïka