steven0lisa / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

NPE in ScalableXHTMLPanel on line 73 #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using ScalableXHTMLPanel
2. call getSharedContext().setPrint(true); on instance
3. resize the panel

What is the expected output? 
Should resize normaly.

What do you see instead?
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at org.xhtmlrenderer.swing.ScalableXHTMLPanel.doRender(ScalableXHTMLPanel.java:173)
    at org.xhtmlrenderer.swing.BasicPanel.paintComponent(BasicPanel.java:149)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JViewport.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at javax.swing.JLayeredPane.paint(Unknown Source)
    at javax.swing.JComponent.paintChildren(Unknown Source)
    at javax.swing.JComponent.paintToOffscreen(Unknown Source)
    at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
    at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
    at javax.swing.RepaintManager.paint(Unknown Source)
    at javax.swing.JComponent.paint(Unknown Source)
    at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
    at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
    at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
    at java.awt.Container.paint(Unknown Source)
    at java.awt.Window.paint(Unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

What version of the product are you using? On what operating system?
Latest master from GitHub. Windows XP.

Please provide any additional information below.
It seems that when using setPrint(true) root.getMaster().getPaintingInfo()
always returns null.

After this exception, the application cannot recover, any subsequent call to 
repaint() triggers the Exception.

Original issue reported on code.google.com by ptalbo...@gmail.com on 4 Oct 2010 at 6:39

GoogleCodeExporter commented 9 years ago
This issue was also opened on Github but the issue tracker just disappeared 
there.
I see the same bug still in the latest code, simply launching the browser from 
the distribution, going to preview mode and resizing the frame is enough to 
trigger it.

Original comment by patrick....@4community.com on 15 Sep 2011 at 4:04

GoogleCodeExporter commented 9 years ago
This is not a medium issue: because of it I haven't been able to update at all 
for more than a year!

Original comment by patrick....@4community.com on 15 Sep 2011 at 4:06

GoogleCodeExporter commented 9 years ago
Just tried again with the latest GitHub version on Windows 7.
Same issue. Do you think this will ever get fixed?

Original comment by patrick....@4community.com on 28 Oct 2011 at 3:06

GoogleCodeExporter commented 9 years ago
I've made another video today of the behavior.
You will see that I simply run ant browser, and got the crash in the browser 
demo within a few seconds (which is not what I call a medium defect):
http://www.servoy-stuff.net/downloads/2011-10-28-11-30-54.zip

This is Windows 7 - Java 1.6.0_27 (64-bit)
Here attached is the result of the session with the complete stack trace.

Original comment by patrick....@4community.com on 28 Oct 2011 at 3:45

Attachments:

GoogleCodeExporter commented 9 years ago
I tested again with the latest Github version on Win7 because I was interested 
in the CSS3 integration, still the same bug. I can't believe that you've never 
seen this, it's a blocking issue!

Original comment by patrick....@4community.com on 14 Nov 2014 at 7:14

GoogleCodeExporter commented 9 years ago
I have no idea where to fix this, otherwise I would have. I thought I had given 
you enough information and that it would be straight forward for you. This is 
not a medium issue, it's a major one!

Original comment by patrick....@4community.com on 14 Nov 2014 at 7:17