Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    IE crashes with unknown error

    Hey guys,
    I am currently working on a view including a DynamicForm with a ComboBox and second DynamicForm. When trying to reset the ComboBox and hide the second DynamicForm, the Internet Explorer (IE 11, latest Version) will crash.
    This is only reproducible when setting the value of the ComboBox twice. For sure this isn’t the way it is supposed to be, but it should not crash either.
    Here is my small example for reproducing the crash
    Code:
    isc.VLayout.create({
        "ID" : "layout",
        "members" :
        [isc.DynamicForm.create({
                "ID" : "mainDynamicForm",
                "fields" :
                [{
                        "ID" : "comboBoxItem",
                        "type" : "text",
                        "editorType" : "comboBox",
                        "valueMap" : {
                            1 : "- None -"
                        }
                    }
                ],
                "values" : {
                    "comboBoxItem" : 1
                }
            }),
            isc.DynamicForm.create({
                "ID" : "secondDynamicForm",
                "width" : "100%"
            }), isc.Button.create({
                "ID" : "button",
                "action" : function () {
                    comboBoxItem.setValue(1);
                    secondDynamicForm.hide();
                    mainDynamicForm.setCanEdit(true);
                    comboBoxItem.setValueMap({
                        1 : "- None -"
                    });
                    comboBoxItem.selectValue();
                    comboBoxItem.setValue(1)
                }
            })
        ]
    })
    When loading the example and pressing the button in an Internet Explorer it will crash.

    The crash only appears in Internet Explorers and is not reproducible in Chrome or Firefox.
    It was tested with the latest SmartClient nightly(SmartClient_v110p_2016-06-21_Pro)

    Best regards

    #2
    Any news on this bug?

    Best regards

    Comment


      #3
      We've reproduced this - it is yet another IE-only native crash with no good reason behind it. We are trying to figure out what triggers it in order to have an appropriate workaround.

      Comment


        #4
        There are some problems with your test code - your item has no "name" attribute, so it's value can't be saved - also, you setValue() on the comboBox before supplying it with a valueMap, then again *after* asking it to selectValue().

        Once those are fixed, you've hit a native IE crash, which we'll look at working around in the framework.

        In the meantime, you can work around it by calling selectValue() on a zero delay, like this:

        Code:
        secondDynamicForm.hide();
        mainDynamicForm.setCanEdit(true);
        comboBoxItem.setValueMap({
            1 : "- None -"
        });
        comboBoxItem.setValue(1)
        
        // fire the selectValue call in a different thread
        comboBoxItem.delayCall("selectValue", null, 0);

        Comment


          #5
          Note that we've now added a framework workaround for this - you can test it out in builds of 11.1 and 11.0 dated July 16 and later.

          Comment

          Working...
          X