Apache Flex
  1. Apache Flex
  2. FLEX-33365

spark.collections.Sort crashes on PepperFlash (Chrome) on Mac

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: Apache Flex 4.10.0
    • Labels:
      None
    • Environment:
      Mac OS Snow Leopard 10.6.8
      Google Chrome 24.0.1312.56
      PepperFlash 11.5.31.137

      Description

      When sorting an ArrayCollection based on an string property using the spark.collections.Sort class, it throws a TypeError #2007.

      It works when using the mx.collections.Sort instead of spark.collections.Sort.
      It works when sorting on a numeric property (even with spark.collections.Sort).

      The only case where it crashes is :

      • Mac Os,
      • Google Chrome with PepperFlash
      • sorting on string property.

      All other cases works :

      • Windows (even with PepperFlash on Chrome),
      • All browsers (even Chrome on Mac but without PepperFlash)
      • sorting on numeric property (even Chrome on Mac with PepperFlash)

      Here is an example with source : http://www.odandb.com/flex/BugSparkSort/

      EDIT : It also crashes on Linux with Flash Player 11.2.202.261

      1. FLEX33365sort.mxml
        2 kB
        Carol Frampton

        Activity

        Hide
        Carol Frampton added a comment -

        I'm running Chrome, version Version 24.0.1312.56 on Mac OSX 10.7.5 and your example works fine. What version is PepperFlash?

        Given I can't reproduce this it might help it you past the stack trace.

        Show
        Carol Frampton added a comment - I'm running Chrome, version Version 24.0.1312.56 on Mac OSX 10.7.5 and your example works fine. What version is PepperFlash? Given I can't reproduce this it might help it you past the stack trace.
        Hide
        Aurélien Baroiller added a comment - - edited

        PepperFlash version is 11.5.31.137. (http://www.odandb.com/flex/BugSparkSort/screenshot-chrome-plugins.png)

        If i test on Mac OSX 10.7.5, i have the same issue.

        No stack trace available because this version of Flash Player isn't a debugger.
        In my try catch, e.getStackTrace() return null, and e.toString() return "TypeError: Error #2007"
        (http://www.odandb.com/flex/BugSparkSort/screenshot-typeerror-2007.png)

        Show
        Aurélien Baroiller added a comment - - edited PepperFlash version is 11.5.31.137. ( http://www.odandb.com/flex/BugSparkSort/screenshot-chrome-plugins.png ) If i test on Mac OSX 10.7.5, i have the same issue. No stack trace available because this version of Flash Player isn't a debugger. In my try catch, e.getStackTrace() return null, and e.toString() return "TypeError: Error #2007" ( http://www.odandb.com/flex/BugSparkSort/screenshot-typeerror-2007.png )
        Hide
        Carol Frampton added a comment -

        I have the same versions in chrome://plugins/ that you do but I see you are running in French. What version of Flex are you using?

        Show
        Carol Frampton added a comment - I have the same versions in chrome://plugins/ that you do but I see you are running in French. What version of Flex are you using?
        Hide
        Aurélien Baroiller added a comment - - edited

        Current version is compiled with Flex SDK 4.6 but i tried with 4.9 and i have the same issue.

        Flex 4.6 : http://odandb.com/flex/BugSparkSort
        Flex 4.9 : http://odandb.com/flex/BugSparkSort/BugSparkSort-4.9.swf

        Show
        Aurélien Baroiller added a comment - - edited Current version is compiled with Flex SDK 4.6 but i tried with 4.9 and i have the same issue. Flex 4.6 : http://odandb.com/flex/BugSparkSort Flex 4.9 : http://odandb.com/flex/BugSparkSort/BugSparkSort-4.9.swf
        Hide
        Aurélien Baroiller added a comment -

        If i switch my language to English, my example works fine.
        (http://odandb.com/flex/BugSparkSort/screenshot-switch-language.png)

        When i return in French, it crashes

        Show
        Aurélien Baroiller added a comment - If i switch my language to English, my example works fine. ( http://odandb.com/flex/BugSparkSort/screenshot-switch-language.png ) When i return in French, it crashes
        Hide
        Alex Harui added a comment -

        Have you tried other browsers? If it is only a pepperflash issue, you may have to work with the Chrome folks.

        If you remove your try/catch, what does the debugger player show in its exception dialog?

        Show
        Alex Harui added a comment - Have you tried other browsers? If it is only a pepperflash issue, you may have to work with the Chrome folks. If you remove your try/catch, what does the debugger player show in its exception dialog?
        Hide
        Carol Frampton added a comment -

        I can also reproduce this in Chrome with my language=French. I just downloaded the debugger version of the player and switched to that on Chrome and it works fine.

        Show
        Carol Frampton added a comment - I can also reproduce this in Chrome with my language=French. I just downloaded the debugger version of the player and switched to that on Chrome and it works fine.
        Hide
        Carol Frampton added a comment -

        This is definitely a Flash Chrome issue, not a Flex issue. Here's the code that demonstrates the issue. There seem to be no locales on Chrome. The new on the Collator blows up with the TypeError: Error #2007 error. debug is just a TextArea.

        private function initApp():void
        {
        var locales:Vector.<String> = Collator.getAvailableLocaleIDNames();
        debug.appendText("locales length is " + locales.length + "\n");
        debug.appendText(locales.toString() + "\n");

        try

        { var sortingCollator:Collator = new flash.globalization.Collator("en", CollatorMode.SORTING); }

        catch(e:Error)

        { debug.appendText("new Collator : error = " + e.toString()); }

        }

        The same code run on firefox with language=French dumps out 322 locales.

        I will try to find the appropriate Flash bug base and enter this issue (or you can if you prefer).

        Show
        Carol Frampton added a comment - This is definitely a Flash Chrome issue, not a Flex issue. Here's the code that demonstrates the issue. There seem to be no locales on Chrome. The new on the Collator blows up with the TypeError: Error #2007 error. debug is just a TextArea. private function initApp():void { var locales:Vector.<String> = Collator.getAvailableLocaleIDNames(); debug.appendText("locales length is " + locales.length + "\n"); debug.appendText(locales.toString() + "\n"); try { var sortingCollator:Collator = new flash.globalization.Collator("en", CollatorMode.SORTING); } catch(e:Error) { debug.appendText("new Collator : error = " + e.toString()); } } The same code run on firefox with language=French dumps out 322 locales. I will try to find the appropriate Flash bug base and enter this issue (or you can if you prefer).
        Hide
        Carol Frampton added a comment -

        Attached FLEX3365sort.mxml which is just a small amount on AS that demonstrates this is a Flash Chrome problem when language=French.

        Show
        Carol Frampton added a comment - Attached FLEX3365sort.mxml which is just a small amount on AS that demonstrates this is a Flash Chrome problem when language=French.
        Hide
        Carol Frampton added a comment -

        With language=English on Chrome, Collator.getAvailableLocaleIDNames() still returns no locales but the new new flash.globalization.Collator("en", CollatorMode.SORTING); doesn't blow up.

        Show
        Carol Frampton added a comment - With language=English on Chrome, Collator.getAvailableLocaleIDNames() still returns no locales but the new new flash.globalization.Collator("en", CollatorMode.SORTING); doesn't blow up.
        Hide
        Aurélien Baroiller added a comment -

        Thank you Carol,

        I can reproduce the bug in your example.

        You can enter the issue in the appropriate bug base, then just give me the link to the issue please !

        Show
        Aurélien Baroiller added a comment - Thank you Carol, I can reproduce the bug in your example. You can enter the issue in the appropriate bug base, then just give me the link to the issue please !
        Hide
        Carol Frampton added a comment -

        I did enter both bugs but it might be an internal bug base not accessible from the outside world.

        Bug 3489165 (http://watsonexp.corp.adobe.com/#bug=3489165)
        Title flash.globalization.Collator constructor throws a TypeError #2007 on Chrome/Mac OSX language=French

        Bug 3489173 (http://watsonexp.corp.adobe.com/#bug=3489173)
        Title flash.globalization.Collator.getAvailableLocaleIDNames() returns Vector of length 0 on Chrome/Mac OSX

        Show
        Carol Frampton added a comment - I did enter both bugs but it might be an internal bug base not accessible from the outside world. Bug 3489165 ( http://watsonexp.corp.adobe.com/#bug=3489165 ) Title flash.globalization.Collator constructor throws a TypeError #2007 on Chrome/Mac OSX language=French Bug 3489173 ( http://watsonexp.corp.adobe.com/#bug=3489173 ) Title flash.globalization.Collator.getAvailableLocaleIDNames() returns Vector of length 0 on Chrome/Mac OSX
        Hide
        Aurélien Baroiller added a comment -

        Indeed those urls aren't accessible

        Show
        Aurélien Baroiller added a comment - Indeed those urls aren't accessible
        Hide
        Carol Frampton added a comment -
        Show
        Carol Frampton added a comment - Thanks to Alex for the info, the external URLs for these bugs are: https://bugbase.adobe.com/index.cfm?event=bug&id=3489165 https://bugbase.adobe.com/index.cfm?event=bug&id=3489173
        Hide
        Marcus Fritze added a comment -

        I have the same issue. I currently found this bug here in the JIRA.

        I didn't know that this bug was already reported. Some days ago I created a bug report in the Adobe bugbase with examples: https://bugbase.adobe.com/index.cfm?event=bug&id=3502439

        The both links in the previous post are not available ("The information requested is not found").

        Show
        Marcus Fritze added a comment - I have the same issue. I currently found this bug here in the JIRA. I didn't know that this bug was already reported. Some days ago I created a bug report in the Adobe bugbase with examples: https://bugbase.adobe.com/index.cfm?event=bug&id=3502439 The both links in the previous post are not available ("The information requested is not found").
        Hide
        Marcus Fritze added a comment -

        BTW you can vote in the Adobe bugbase if you have the same problem.

        Show
        Marcus Fritze added a comment - BTW you can vote in the Adobe bugbase if you have the same problem.
        Hide
        Erik de Bruin added a comment -

        The above comments and the continued discussion on the related Adobe bugs confirm that this is not an Apache Flex problem.

        Show
        Erik de Bruin added a comment - The above comments and the continued discussion on the related Adobe bugs confirm that this is not an Apache Flex problem.

          People

          • Assignee:
            Unassigned
            Reporter:
            Aurélien Baroiller
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development