Menu

#65 Component Builder crashes adding a row to the Element Vertices table

Component Builder
open
nobody
None
1
2014-08-04
2014-07-21
John Barnes
No

See attached screenshots for information on the crash and the context within which it occurs.

2 Attachments

Related

Bugs: #65

Discussion

  • Anonymous

    Anonymous - 2014-08-01

    Can't figure out info from the screenshots I'm afraid...?

     
  • John Barnes

    John Barnes - 2014-08-04

    Capture9.PNG shows the crash occurs because fields is null.

    Here are step-by-step instructions to create the problem:

    • Run Component Builder and open the Spatial Definitions tab
    • Click Edit | Row | Add to get to the Select Type(s) dialog
    • Click to select row 3 Element Set Polylines and click the green tick
    • Click the Item button in the new Spatial Definitions row to get to the FluidEarth2.Sdk.ElemenetSetPolylines dialog
    • Click on the button in the Elements row to get the Polyline ElementSet dialog
    • Click Edit | Row | Add
    • Click Edit | Vertices... to get to the ElementSet Vertices dialog
    • Click Edit | Row | Add

    As a workaround, sufficient for my immediate needs, I have changed the code at the point of failure so that it reads:

    if (fields != null)
    {
    if (fields.Count > 0 && int.TryParse(fields[0], out nIndex))
    nElement = nIndex;

    if (fields.Count > 1 && int.TryParse(fields[1], out nIndex))
        nVertex = nIndex;
    
    for (int n = 2; n < fields.Count; ++n)
        coords.Add(double.TryParse(fields[n], out coord) ? coord : double.NaN);
    

    }
    else
    {
    coords.Add(0.0);
    coords.Add(0.0);
    }

     
    • Anonymous

      Anonymous - 2014-08-05

      Oh boy…. Well, if the fix works…

      From: John Barnes [mailto:johnbarnes4@users.sf.net]
      Sent: Monday, August 04, 2014 3:28 PM
      To: [fluidearth:bugs]
      Subject: [fluidearth:bugs] #65 Component Builder crashes adding a row to the Element Vertices table

      Capture9.PNG shows the crash occurs because fields is null.

      Here are step-by-step instructions to create the problem:

      • Run Component Builder and open the Spatial Definitions tab
      • Click Edit | Row | Add to get to the Select Type(s) dialog
      • Click to select row 3 Element Set Polylines and click the green tick
      • Click the Item button in the new Spatial Definitions row to get to the FluidEarth2.Sdk.ElemenetSetPolylines dialog
      • Click on the button in the Elements row to get the Polyline ElementSet dialog
      • Click Edit | Row | Add
      • Click Edit | Vertices... to get to the ElementSet Vertices dialog
      • Click Edit | Row | Add

      As a workaround, sufficient for my immediate needs, I have changed the code at the point of failure so that it reads:

      if (fields != null)
      {
      if (fields.Count > 0 && int.TryParse(fields[0], out nIndex))
      nElement = nIndex;

      if (fields.Count > 1 && int.TryParse(fields[1], out nIndex))

      nVertex = nIndex;
      

      for (int n = 2; n < fields.Count; ++n)

      coords.Add(double.TryParse(fields[n], out coord) ? coord : double.NaN);
      

      }
      else
      {
      coords.Add(0.0);
      coords.Add(0.0);
      }


      [bugs:#65]http://sourceforge.net/p/fluidearth/bugs/65 Component Builder crashes adding a row to the Element Vertices table

      Status: open
      Group: Component Builder
      Created: Mon Jul 21, 2014 03:48 PM UTC by John Barnes
      Last Updated: Fri Aug 01, 2014 11:25 AM UTC
      Owner: nobody

      See attached screenshots for information on the crash and the context within which it occurs.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/fluidearth/bugs/65/https://sourceforge.net/p/fluidearth/bugs/65

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/https://sourceforge.net/auth/subscriptions

      This message has been scanned for viruses by MailControlhttp://www.mailcontrol.com/, a service from BlackSpider Technology

      Click herehttps://www.mailcontrol.com/sr/eHd28uMYn0vGX2PQPOmvUtVTDJsKpCsgvFctlyMebfPvIoz17+!r0VqboDVy+qXDalPjxinsAkChqfUB1i+uFQ== to report this email as spam.


      HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
      If you have received this message in error please advise us immediately and destroy all copies of it.

      HR Wallingford Limited
      Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
      Registered in England No. 02562099


       

      Related

      Bugs: #65

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB