You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/03/11 17:30:46 UTC

[jira] [Commented] (PDFBOX-3267) Using threads results in different images

    [ https://issues.apache.org/jira/browse/PDFBOX-3267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15191114#comment-15191114 ] 

Tilman Hausherr commented on PDFBOX-3267:
-----------------------------------------

It worked fine for me a few times. Then I got a concurrent something exception in {{ICC_Profile.getInstance}} in PDICCBase.java. As a quick solution, I enclosed this in {{synchronized(LOG)}} and it stopped. But I never got a "Not equals".

It would be interesting if you'd save the different images and post them here.

Your polling condition should have an "or" instead of an "and" IMHO. (I got an NPE once)



> Using threads results in different images
> -----------------------------------------
>
>                 Key: PDFBOX-3267
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3267
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>         Attachments: ComparePDF.java, bmpwithdpi.pdf, bmpwithdpi2.pdf
>
>
> If i dont use threads images are the same
> java -cp pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar:. ComparePDF
> Exception in thread "main" java.io.IOException: Not equals
> 	at ComparePDF.main(ComparePDF.java:21)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org