You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I want to say thanks for developing such a great tool, I really enjoy using your tool. However, I encounter an issue, that I didn't find an answer yet. Basically, the rendering of some pages lead to a null pointer exception.
For instance, if you use the BoxBrowser demo, available in the project, and pass it a stackoverflow url, for instance:
*** Error: null
java.lang.NullPointerException
at org.fit.cssbox.layout.ElementBox.getAbsoluteContentX(ElementBox.java:823)
at org.fit.cssbox.layout.Box.getAbsoluteContentBounds(Box.java:647)
at org.fit.cssbox.layout.BlockBox.updateStaticPosition(BlockBox.java:1487)
at org.fit.cssbox.layout.BlockBox.absolutePositions(BlockBox.java:1396)
at org.fit.cssbox.layout.Viewport.absolutePositionsChildren(Viewport.java:440)
at org.fit.cssbox.layout.Viewport.updateBounds(Viewport.java:374)
at org.fit.cssbox.layout.BrowserCanvas.createLayout(BrowserCanvas.java:181)
at org.fit.cssbox.demo.BoxBrowser.displayURL(BoxBrowser.java:167)
at org.fit.cssbox.demo.BoxBrowser$5.actionPerformed(BoxBrowser.java:712)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6400)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Is there a simple reason for this behavior or did I discover a bug?
Thanks a lot
The text was updated successfully, but these errors were encountered:
It seems that the page is using flex layout which is not supported at the moment (and causes the NPE in this case). Flexbox and grid support is now work in progress so hopefully, the bug will be resolved soon.
It seems that the page is using flex layout which is not supported at the moment (and causes the NPE in this case). Flexbox and grid support is now work in progress so hopefully, the bug will be resolved soon.
Thanks a lot for the answer. I was expecting that it was a feature that was not supported.
Hello,
First of all, I want to say thanks for developing such a great tool, I really enjoy using your tool. However, I encounter an issue, that I didn't find an answer yet. Basically, the rendering of some pages lead to a null pointer exception.
For instance, if you use the BoxBrowser demo, available in the project, and pass it a stackoverflow url, for instance:
https://stackoverflow.com/questions/42728417/qquickview-content-not-resizing-properly
this leads to the following error:
*** Error: null
java.lang.NullPointerException
at org.fit.cssbox.layout.ElementBox.getAbsoluteContentX(ElementBox.java:823)
at org.fit.cssbox.layout.Box.getAbsoluteContentBounds(Box.java:647)
at org.fit.cssbox.layout.BlockBox.updateStaticPosition(BlockBox.java:1487)
at org.fit.cssbox.layout.BlockBox.absolutePositions(BlockBox.java:1396)
at org.fit.cssbox.layout.Viewport.absolutePositionsChildren(Viewport.java:440)
at org.fit.cssbox.layout.Viewport.updateBounds(Viewport.java:374)
at org.fit.cssbox.layout.BrowserCanvas.createLayout(BrowserCanvas.java:181)
at org.fit.cssbox.demo.BoxBrowser.displayURL(BoxBrowser.java:167)
at org.fit.cssbox.demo.BoxBrowser$5.actionPerformed(BoxBrowser.java:712)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6400)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Is there a simple reason for this behavior or did I discover a bug?
Thanks a lot
The text was updated successfully, but these errors were encountered: