Error when rendering a document after rendering one with a <layout> element

Bug #112000 reported by Jo Vermeulen
4
Affects Status Importance Assigned to Milestone
Uiml.net
Status tracked in Uiml.net-dev
Uiml.net-dev
Confirmed
Critical
Jo Vermeulen

Bug Description

When rendering a UIML document with a layout tag with the SWF vocabulary, and rendering an other SWF document after it (using the same uiml.net instance), the renderer chokes:

System.NullReferenceException: Object reference not set to an instance of an object
  at Uiml.LayoutManagement.LayoutPropertyRepository.AddPropertiesToParts (Uiml.UimlDocument doc) [0x00000]
  at Uiml.LayoutManagement.LayoutPropertyRepository.InitializeProperties (Uiml.UimlDocument doc, IRenderer r) [0x00000]
  at Uiml.UimlDocument.SolveLayoutProperties (IRenderer r) [0x00000]
  at Uiml.Rendering.SWF.SWFRenderer.Render (Uiml.UimlDocument uimlDoc) [0x00000]
  at Uiml.FrontEnd.UimlFrontEnd.Render () [0x00000]
  at Uiml.LayoutManagement.LayoutPropertyRepository.AddPropertiesToParts (Uiml.UimlDocument doc) [0x00000]
  at Uiml.LayoutManagement.LayoutPropertyRepository.InitializeProperties (Uiml.UimlDocument doc, IRenderer r) [0x00000]
  at Uiml.UimlDocument.SolveLayoutProperties (IRenderer r) [0x00000]
  at Uiml.Rendering.SWF.SWFRenderer.Render (Uiml.UimlDocument uimlDoc) [0x00000]
  at Uiml.FrontEnd.UimlFrontEnd.Render () [0x00000]
Could not create GUI for /home/jo/Projects/Uiml.net/examples/swf/swfBlog.uiml with uiml.net

Steps to reproduce:

1. Open the Uiml.net renderer (without commandline arguments)
2. Select an SWF layout example
3. Render it
4. Close the rendered interface
5. Select another SWF example
6. Render it

Expected behavior:

The document should be cleanly rendered

Actual behavior:

The renderer stops on a NullReferenceException

Revision history for this message
Jo Vermeulen (jozilla) wrote :

This bug is due to the LayoutPropertyRepository singleton class not being cleared after rendering. Further investigation is needed.

Jo Vermeulen (jozilla)
Changed in uiml.net:
assignee: nobody → jozilla
importance: Undecided → Critical
status: Unconfirmed → Confirmed
Revision history for this message
Wim Leers (wimleers) wrote :

This bug bit me too. I was going to report the same steps to reproduce.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.