Re: [FlexJS] Error with Alert.show

2017-03-02 Thread Greg Dove
Quick update here, for anyone who may come across this thread: the Reflection data bug mentioned earlier in the thread is fixed in recent builds. On Sat, Feb 18, 2017 at 8:50 PM, Alex Harui wrote: > > > On 2/17/17, 7:50 PM, "Justin Mclean" wrote: > >

Re: [FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Alex Harui
On 3/2/17, 10:25 PM, "Greg Dove" wrote: >I must have missed that discussion! That also helps! >I'm getting closer, now have local trust/security sandbox issues for the >flex-sdk tests that I will need to resolve. Oh yeah, I generally open a folder containing my repos to

Re: [FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Greg Dove
I must have missed that discussion! That also helps! I'm getting closer, now have local trust/security sandbox issues for the flex-sdk tests that I will need to resolve. I will circle back to that tomorrow morning. If I get this working then I assume the as-js version will be straightforward

Re: [FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Alex Harui
On 3/2/17, 9:56 PM, "Greg Dove" wrote: >Thanks, that helps, it looks like I can make more progress on this now. > >Also, fyi I am getting a download error for >https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/lib/afe.jar?for >mat=raw > >if I choose the adobe jars

Re: [FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Greg Dove
Thanks, that helps, it looks like I can make more progress on this now. Also, fyi I am getting a download error for https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/lib/afe.jar?format=raw if I choose the adobe jars in that build. On Fri, Mar 3, 2017 at 6:37 PM, Alex Harui

Re: [Flex JS] Font weight issues

2017-03-02 Thread Alex Harui
SimpleCSSStylesImpl is Simple. FontWeight is expecting bold or normal since that's what Flash supports for free and is less code. Hopefully someday someone will write AdvancedCSSStylesImpl. Thanks for pointing it out though, -Alex On 3/2/17, 9:45 PM, "Justin Mclean"

[Flex JS] Font weight issues

2017-03-02 Thread Justin Mclean
Hi, Just a FYI in case this trips anyone else up. The code in applyStyle in SimpleCSSValuesImpl assumes that most CSS style numbers are pixels - this is not be the case. The code in questions is: if (typeof(value) == 'number') { if (colorStyles[p]) value =

Re: [FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Alex Harui
Hi Greg, So do you have a flex-sdk repo folder as a sibling of flex-asjs? And have you run "ant main checkintests" in flex-sdk? That should build a mustella.swc in the flex-sdk/mustella folder that the flex-asjs checkintests borrows. UnitTester comes from that swc. HTH, -Alex BTW,

Re: [FlexJS] Working to fix a compiler bug - problem with the Problems

2017-03-02 Thread Alex Harui
Hi Greg, Thanks for digging into this. Without having dug into it myself, I would like to suggest returning a type mismatch error of some sort. IIRC, the DuplicateChildTagProblem is for the following: The child tag (js:initialView) is really in there twice. I believe MXML is

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread Alex Harui
On 3/2/17, 8:51 PM, "piotrz" wrote: >I will try to fight with this. The problem is that in this case I don't >have >any exception in the console. :) Yuk. I think I would next examine the DOM. Compare it against the js-debug version. If DOM objects are missing in

Re: [FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Greg Dove
Thanks Alex, after running ant checkintests inside flex-asjs The first point of fail is at basictests task basictests: [mxmlc] Loading configuration: D:\FLEXSDKS\_asf\flex-asjs\frameworks\flex-config.xml [mxmlc] Loading configuration:

[FlexJS] Working to fix a compiler bug - problem with the Problems

2017-03-02 Thread Greg Dove
I have been looking into FLEX-35273 [1]. This is a compiler bug where it is possible to do things that don't make sense, like: or even this : Neither of the above caused compile time errors. I have a fix for both the above scenarios. For the first one, I used

Re: [FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Alex Harui
If you are using Ant, it should just work. It does expect that you have a folder with both flex-asjs and flex-sdk in it, and flex-sdk has been built via its "ant main checkintests". Let me know what error you are getting. -Alex On 3/2/17, 8:59 PM, "Greg Dove" wrote:

[FlexJS] Any gude to getting checkintests working

2017-03-02 Thread Greg Dove
There are a few things I have not yet gotten working so far, and the ant checkintests is one of them. If I understand correctly I should be running this before any commit? I tried to make sense of this today, but it is not so easy (for me) because I am unfamiliar with this stuff. As I have

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread piotrz
I will try to fight with this. The problem is that in this case I don't have any exception in the console. :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread Alex Harui
On 3/2/17, 5:59 PM, "piotrz" wrote: >Alex, > >What could help you to fix that. Should I try to find in minified JS my >potential class and show it here? I don't know how much time you have, but it would be great if you simply tried to debug into it on your own.

Re: massive memory leak in Flex

2017-03-02 Thread Alex Harui
So what OS and version, and what kind of player and its version are you using? Scout will turn on sampling in the app so that should result in an increase in memory as well. -Alex On 3/2/17, 4:48 PM, "Jason Taylor" wrote: >wonder if that might be osx / windows difference in

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread piotrz
Alex, What could help you to fix that. Should I try to find in minified JS my potential class and show it here? Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
wonder if that might be osx / windows difference in scout? as I only show this leak atm when scout is ran- Scout 1.1.3.345121 on Scout -Original Message- From: Jason Taylor Sent: Thursday, March 02, 2017 4:48 PM To: dev@flex.apache.org Subject: RE: massive memory leak in Flex what the

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
what the hell? Mine looks nothing like that in scout, no advanced telemetry -Original Message- From: Clint M [mailto:cmod...@gmail.com] Sent: Thursday, March 02, 2017 4:38 PM To: dev@flex.apache.org Subject: Re: massive memory leak in Flex it didn't leak using advanced-telemetry

Re: massive memory leak in Flex

2017-03-02 Thread Clint M
it didn't leak using advanced-telemetry either… it didn't leak with a custom renderer with curly binding either… probably because spark lists recycle item renderers by default On Thu, Mar 2, 2017 at 4:29 PM, Clint M wrote: > here's a video of it running in scout >

Re: massive memory leak in Flex

2017-03-02 Thread Clint M
here's a video of it running in scout http://www.screencast.com/t/S5SHGLiskRN didn't leak… are you using advanced-telemetry ? On Thu, Mar 2, 2017 at 4:24 PM, Jason Taylor wrote: > Yeah, it looks like it may be an artifact of scout somehow > > -Original Message- >

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
Yeah, it looks like it may be an artifact of scout somehow -Original Message- From: Clint M [mailto:cmod...@gmail.com] Sent: Thursday, March 02, 2017 4:24 PM To: dev@flex.apache.org Subject: Re: massive memory leak in Flex Can't repro with the code in the original post… here's a

Re: massive memory leak in Flex

2017-03-02 Thread Clint M
Can't repro with the code in the original post… here's a video of it running for 60 seconds. http://www.screencast.com/t/mPFMIdKQMK On Thu, Mar 2, 2017 at 4:17 PM, Jason Taylor wrote: > Yeap task manager keeps climbing as well > > -Original Message- > From: Alex

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
Yeap task manager keeps climbing as well -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: Thursday, March 02, 2017 4:07 PM To: dev@flex.apache.org Subject: Re: massive memory leak in Flex Scout only reports certain player memory zones. Hopefully TaskManager has a

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
it happens without specificy a itemrenderer as well -Original Message- From: Clint M [mailto:cmod...@gmail.com] Sent: Thursday, March 02, 2017 4:07 PM To: dev@flex.apache.org Subject: Re: massive memory leak in Flex databinding is static at the application level… at least the way you're

Re: massive memory leak in Flex

2017-03-02 Thread Clint M
databinding is static at the application level… at least the way you're doing it via curly braces… and the renderers will leak try using this in the item renderer instead of text="{data}" and see if that fixes the problem : override public function set data(value:Object):void { mylabelId.text

Re: massive memory leak in Flex

2017-03-02 Thread Alex Harui
Scout only reports certain player memory zones. Hopefully TaskManager has a higher number? If you got past 1GB then it probably isn't capped. -Alex On 3/2/17, 3:56 PM, "Jason Taylor" wrote: >Tried 4.13, 14, and 15, but I have a weird feeling scout is a dirty Liar >

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
Tried 4.13, 14, and 15, but I have a weird feeling scout is a dirty Liar -Original Message- From: Alex Harui [mailto:aha...@adobe.com] Sent: Thursday, March 02, 2017 3:54 PM To: dev@flex.apache.org Subject: Re: massive memory leak in Flex OK Thanks. Sounds like Justin may be digging

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
Scout is showing 1.5Gb used after 4m, and constantly climbing, however task manager is not reporting the same at all... In scout it showing 1.38GB of that is "Other Bitmap Memory" -Original Message- From: Jason Taylor [mailto:ja...@dedoose.com] Sent: Thursday, March 02, 2017 3:50 PM To:

Re: massive memory leak in Flex

2017-03-02 Thread Alex Harui
OK Thanks. Sounds like Justin may be digging into it, so I'll wait until he reports in. Which version of Apache Flex are you using? Have you tried Adobe Flex 4.6? -Alex On 3/2/17, 3:50 PM, "Jason Taylor" wrote: >This is all the code needed to cause it, and no it does not

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
This is all the code needed to cause it, and no it does not appear to stop, though I will need to run it for awhile to blow all my memory in this comp. http://ns.adobe.com/mxml/2009; xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="OnCreationComplete(event)">

Re: massive memory leak in Flex

2017-03-02 Thread Alex Harui
Jason, we aren't seeing all of the code. Can you put all of the code in a JIRA issue? There is a notion of outrunning GC. And also memory fragmentation. How high does memory go? Does it cap out or will it blow up for lack of memory at some point? Thanks, -Alex On 3/2/17, 3:39 PM, "Jason

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
yeah you can remove that, right now mine is just http://ns.adobe.com/mxml/2009; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:Core="CoreClasses.*"> where MyLabel is a copy of s:label so I can make changes and try to figure out where the hell this is coming from,

Re: massive memory leak in Flex

2017-03-02 Thread Justin Mclean
Hi, What's the code for your TestItemRenderer? If you remove that does it act the same? Thanks, Justin

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
climbing at 50Mb per 30s -Original Message- From: Jason Taylor [mailto:ja...@dedoose.com] Sent: Thursday, March 02, 2017 3:32 PM To: dev@flex.apache.org Subject: RE: massive memory leak in Flex negative, taking that out (that was an accident copied over from my real test), has no

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
negative, taking that out (that was an accident copied over from my real test), has no effect, and neither does setting the data provider to null http://ns.adobe.com/mxml/2009; xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="OnCreationComplete(event)"> -Original

Re: massive memory leak in Flex

2017-03-02 Thread Alex Harui
On 3/2/17, 2:56 PM, "Justin Mclean" wrote: >Hi, > >Also I’d suggest making the timer multi shot rather than having the >recursive callLater(BindData) call. IMO, that's the root of the problem. The timer makes calls to BindData which also calls itself on each frame

Re: massive memory leak in Flex

2017-03-02 Thread Justin Mclean
Hi, Also I’d suggest making the timer multi shot rather than having the recursive callLater(BindData) call. Thanks, Justin

Re: massive memory leak in Flex

2017-03-02 Thread Justin Mclean
Hi, If you put: list.dataProvider = null; before the line; list.dataProvider = new ArrayCollection(items); Do you getter same results? Thanks, Justin

RE: massive memory leak in Flex

2017-03-02 Thread Jason Taylor
Also here's a screen shot of Scout - http://imgur.com/a/WCkZu -Original Message- From: Jason Taylor [mailto:ja...@dedoose.com] Sent: Thursday, March 02, 2017 2:37 PM To: dev@flex.apache.org Subject: massive memory leak in Flex I believe I have finally identified the cause of a huge

massive memory leak in Flex

2017-03-02 Thread Jason Taylor
I believe I have finally identified the cause of a huge memory leak in our application, and it appears to be s:label I have tested this on many different framework versions. Please try the following:if you make a custom itemrender and don't use the s:label it goes away, note disabiling

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread Alex Harui
On 3/2/17, 9:19 AM, "piotrz" wrote: >Alex, > >Do you think because it is something with variable renaming in release >version? >I remember that this problem come back to us. Almost every time js-debug works and js-release doesn't, it has to do with renaming. It is

[4.16.0] # Apache Flex SDK 4.16.0 nightly build 246: Failure

2017-03-02 Thread flex . ci . builds
flex-sdk_release-candidate - Build #246 - Failure Changes since last build: No changes For more information, check the console output at http://apacheflexbuild.cloudapp.net:8080/job/flex-sdk_release-candidate/246/.

Re: [FlexJS] More event issues

2017-03-02 Thread Justin Mclean
HI, > The problem is that the signature of public function > dispatchEvent(event:Event):Boolean does not work unless flash.events.Event is > specifically specified. I’ve also seen this but it compiles and works fine when I run it. Thanks, Justin

Re: [FlexJS] More event issues

2017-03-02 Thread Alex Harui
I'm almost at the point where you can try the dual branch, which should in theory take care of this. -Alex On 3/2/17, 2:12 PM, "Harbs" wrote: >I’m struggling with IEventDispatcher. > >I have event proxies which dispatch events from event dispatchers. For >this to work,

[FlexJS] More event issues

2017-03-02 Thread Harbs
I’m struggling with IEventDispatcher. I have event proxies which dispatch events from event dispatchers. For this to work, the pseudo-event dispatcher implements IEventDispatcher, but does not inherit for EventDispatcher. It implements its own dispatchEvent(). The problem is that the signature

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread piotrz
Alex, Do you think because it is something with variable renaming in release version? I remember that this problem come back to us. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context:

Re: ArrayElementType?

2017-03-02 Thread Alex Harui
On 3/2/17, 8:11 AM, "Harbs" wrote: >Interesting. > >So this only works with MXML or with ActionScript too? Just MXML. We could try to get the compiler to use it when checking assignments in ActionScript, but I think that there would be cases where it wouldn't do the

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread sankar
piotrz wrote > var tmpComp:Button = new Button(true); - need to be true in constructor. I've seen such usage of addition do not works in compiled "bin-release" version. Things not works like 'ripple' etc. in "bin-release" version. Thanks! -- View this message in context:

Re: ArrayElementType?

2017-03-02 Thread Harbs
Interesting. So this only works with MXML or with ActionScript too? I’m wondering if we can use this for typed arrays in externs compiled using compc. I ran into that problem recently. > On Mar 2, 2017, at 5:14 PM, Clint M wrote: > > It's in the docs: >

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread Alex Harui
Piotr, Santanu may be right that there are dynamic MXML scenarios involving states and includeIn/excludeFrom. In those cases, the instances are created by MXMLDataInterpreter just like other MXML tags, but may not be added to the DOM until much later, or removed and re-added as states change. I

Re: ArrayElementType?

2017-03-02 Thread Clint M
It's in the docs: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf680e1-7ffe.html#WS2db454920e96a9e51e63e3d11c0bf69084-7a2c ArrayElementType metadata tag When you define an Array variable in ActionScript, you specify Array as the data type of the variable. However, you

Re: [FlexJS] Coordinate Space

2017-03-02 Thread Peter Ent
We still have to have FlexJS work on both JS and SWF sides with some compatibility. We could do this: x,y sets "native" values. Reading them back on SWF vs JS might yield different results if padding, border, and margins are set on the parent element. If you don't want your coordinates messed

ArrayElementType?

2017-03-02 Thread Harbs
I just noticed a few places in TLF where we have such metadata. For example: [ ArrayElementType("text.elements.TextFlowLine") ] private var _lines:Array; Does anyone know what that does?

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread piotrz
Sankar, Code which you are showing me should work without the problem. var tmpComp:Button = new Button(true); - need to be true in constructor. This: You don't need any action cause MDL will handle this one. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread sankar
piotrz wrote > Ok but you didn't add this Grid to MXML, you will add this component by > addElement yes ? > > Maybe I do not understand your use cases - provide me an example if you > can. Hi Piotr, My test was pretty basic with FlexJS MDL default components only. Here's the basic test case

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread piotrz
Sankar, Ok but you didn't add this Grid to MXML, you will add this component by addElement yes ? If you are adding Grid in MXML - It will be initialized on his own - MDL will upgrade it automatically. Maybe I do not understand your use cases - provide me an example if you can. If you have

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread sankar
Hi Piotr, I may oppose this your opinion: piotrz wrote > I don't see any advantage to have this property in MXML. Dynamic component > is supposed to be created from code new Button(true). Say I have an external Grid component which has many buttons and TextFields declared in MXML tag - and I

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread piotrz
Hi Sankar, I don't see any advantage to have this property in MXML. Dynamic component is supposed to be created from code new Button(true). If you need more dynamic components which is already in our MDL library let me know. I've changed only few of them to be dynamic. If component do not have

Re: [MDL Dialogs] was: Re: [FlexJS] MDL - Dynamic Child Problem

2017-03-02 Thread sankar
Hi, I recently updated my local framework source from Git repository. I am not sure where we're standing now with this but I wanted to give Piotr's Button and TextField implementation a try with new UpgradeElement bead. So far I able to get the dynamic element upgraded by this way: var