Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-2878

GUI flakiness with long strings

    Details

      Description

      GMAT does not impose a size limit on String resources. This allows a user to set a String to a very long string literal, causing general flakiness in the String GUI panel and the script editor.

      Specifically, the String edit box stops showing the actual string; the box is blank. The cursor moves along the string as if it were there, but the "End" key doesn't work properly. I'm sure there's other weird things going on also. The same behavior can be seen in the script editor.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            djcinsb Darrel Conway added a comment - - edited

            Is there an example available that shows this instability? We should be okay up to 2^32 - 1 = 4,294,967,295 characters (i.e. larger than the RAM support) on 32-bit Windows.

            Show
            djcinsb Darrel Conway added a comment - - edited Is there an example available that shows this instability? We should be okay up to 2^32 - 1 = 4,294,967,295 characters (i.e. larger than the RAM support) on 32-bit Windows.
            Hide
            jjkparker Joel Parker added a comment -

            I can't duplicate a crash right now, so I changed the title to more accurately reflect what I do see.

            The attached script tries storing a ~5000-character string. Running and reporting work fine, but this results in lots of flakiness in the GUI when editing the string or viewing the script.

            Show
            jjkparker Joel Parker added a comment - I can't duplicate a crash right now, so I changed the title to more accurately reflect what I do see. The attached script tries storing a ~5000-character string. Running and reporting work fine, but this results in lots of flakiness in the GUI when editing the string or viewing the script.
            Hide
            jjkparker Joel Parker added a comment -

            Specifically, the String edit box stops showing the actual string; the box is blank. The cursor moves along the string as if it were there, but the "End" key doesn't work properly. I'm sure there's other weird things going on also. The same behavior can be seen in the script editor.

            Show
            jjkparker Joel Parker added a comment - Specifically, the String edit box stops showing the actual string; the box is blank. The cursor moves along the string as if it were there, but the "End" key doesn't work properly. I'm sure there's other weird things going on also. The same behavior can be seen in the script editor.
            Hide
            djcinsb Darrel Conway added a comment -

            Thanks. I didn't realize this was a GUI issue.

            Show
            djcinsb Darrel Conway added a comment - Thanks. I didn't realize this was a GUI issue.
            Hide
            shughes Steven Hughes added a comment -

            CCB: P2 2013a

            Show
            shughes Steven Hughes added a comment - CCB: P2 2013a
            Hide
            shughes Steven Hughes added a comment -

            Appears fixed in 15 Feb. 2013 build. Can you verify more rigorously?

            Show
            shughes Steven Hughes added a comment - Appears fixed in 15 Feb. 2013 build. Can you verify more rigorously?
            Hide
            jjkparker Joel Parker added a comment - - edited

            Specifically, the script editor doesn't behave well with the attached script at all using the 2013-03-12 build. Open the script in GMAT and try to edit it. This is probably a wx STC bug... if that's the case, I'll mark as Won't Fix.

            Show
            jjkparker Joel Parker added a comment - - edited Specifically, the script editor doesn't behave well with the attached script at all using the 2013-03-12 build. Open the script in GMAT and try to edit it. This is probably a wx STC bug... if that's the case, I'll mark as Won't Fix.
            Hide
            jjkparker Joel Parker added a comment -

            Setting to P3 and sending back to CCB.

            Show
            jjkparker Joel Parker added a comment - Setting to P3 and sending back to CCB.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: