Details
Description
A user has reported the following issue:
We came across an architectural problem in IcePDF. As you can see from the stack below and the corresponding coding there are UI manipulations done from a custom thread. Java defines Swing not to be thread safe. Therefore doing so might cause problems.
...
org.icepdf.ri.common.SwingViewBuilder.buildAnnotationPanel(SwingViewBuilder.java:1574)
org.icepdf.ri.common.SwingViewBuilder.buildUtilityTabbedPane(SwingViewBuilder.java:1541)
org.icepdf.ri.common.SwingViewBuilder.buildUtilityAndDocumentSplitPane(SwingViewBuilder.java:1501)
org.icepdf.ri.common.SwingViewBuilder.buildContents(SwingViewBuilder.java:499)
org.icepdf.ri.common.SwingViewBuilder.buildViewerPanel(SwingViewBuilder.java:482)
ice.pilots.pdf.ThePilot.createComponent(ThePilot.java:149)
ice.storm.Viewport.setPilot(VCDO)
ice.storm.StormBase.append(VCDO)
ice.storm.StormBase.do_clear_content(VCDO)
ice.storm.StormBase.do_render_content(VCDO)
ice.storm.Viewport.runAsynchronousLoad(VCDO)
ice.storm.LoadThread.run(VCDO)
We came across an architectural problem in IcePDF. As you can see from the stack below and the corresponding coding there are UI manipulations done from a custom thread. Java defines Swing not to be thread safe. Therefore doing so might cause problems.
...
org.icepdf.ri.common.SwingViewBuilder.buildAnnotationPanel(SwingViewBuilder.java:1574)
org.icepdf.ri.common.SwingViewBuilder.buildUtilityTabbedPane(SwingViewBuilder.java:1541)
org.icepdf.ri.common.SwingViewBuilder.buildUtilityAndDocumentSplitPane(SwingViewBuilder.java:1501)
org.icepdf.ri.common.SwingViewBuilder.buildContents(SwingViewBuilder.java:499)
org.icepdf.ri.common.SwingViewBuilder.buildViewerPanel(SwingViewBuilder.java:482)
ice.pilots.pdf.ThePilot.createComponent(ThePilot.java:149)
ice.storm.Viewport.setPilot(VCDO)
ice.storm.StormBase.append(VCDO)
ice.storm.StormBase.do_clear_content(VCDO)
ice.storm.StormBase.do_render_content(VCDO)
ice.storm.Viewport.runAsynchronousLoad(VCDO)
ice.storm.LoadThread.run(VCDO)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Patrick Corless
made changes -
Fix Version/s | 4.1 [ 10227 ] |
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [5007000000C5Aw1] |
Tyler Johnson
created issue -