History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-14669
Type: Bug Bug
Status: Closed Closed
Resolution: Deferred
Assignee: Gaurav Jain
Reporter: Erwin Verdonk
Votes: 10
Watchers: 8
Operations

If you were logged in you would be able to see more operations.
Flex SDK

Framework RSLs (cache) combined with Modules not working correctly

Created: 02/18/08 04:18 AM   Updated: 05/27/08 09:06 AM
Component/s: Modules
Security Level: Public (All JIRA Users )

File Attachments: 1. File Research.rar (1.11 Mb)

Issue Links:
Duplicate
 
This issue is duplicated by:
SDK-15557 Fail to get ModuleEvent.READY when lo... None Closed

Severity: Incorrectly Functioning with Workaround
Reproducibility: Every Time
Discoverability: Medium
Found in Version: SDK Flex 3.0.1
Milestone: SDK Gumbo - Release
Affected OS(s): Windows - XP
Steps to Reproduce:
Steps to reproduce:
1. Create multiple Modules in a project
2. Add them to the main.mxml with <mx:ModuleLoader />
3. Make sure the project uses RSLs for the Flex Framework instead of merging it into the code.
4. Run the project.
 
 Actual Results:
Not all Modules are being displayed. Sometimes only one and other times none at all.
The Modules are being loaded fine when we check the ModuleEvent.bytesloaded and ModuleEvent.bytesTotal. However the ModuleEvent.READY is not always being dispatched when loading is completed.
 
 Expected Results:
All modules should display. The ModuleEvent.READY should be dispatched when loading is completed.
 
 Workaround 1:
 When we first unload the Modules with Module.unloadModule() and then load them with module.loadModule() things are working fine, most of the times but not always. Workaround 2 might be the better solution.

 Workaround 2 (thanks to Gustavo Saume):
 Loading the modules as a sequence appears to solve the problem.

 Developers NOTE:
This only happens when we use RSL caching of the Flex Framework. Without the caching it all works fine. Looks like a part of the Flex Framework has not been completely loaded when the Modules are. See the attachment for a project replicating this issue.
 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Gaurav Jain
Resolved by: Joan Lafferty
Participants: Erwin Verdonk, Gaurav Jain, Gustavo Saume, Joan Lafferty and M. van Beek


 All   Comments      Sort Order:
Joan Lafferty - [03/05/08 12:36 PM ]
Deferred for Post Moxie consideration

M. van Beek - [05/26/08 03:56 PM ]
Hi, is this still active (actual)?

I do experience exactly the same problem. Flex 3 framework-RSL used in combination with module-loaders is not working consistent.
modules are loaded unpredicatble.

Its a pitty because I can not save some kb's now.

Is there any info on this (workaround), merging it into the code is no option because of weight.

thanks

Erwin Verdonk - [05/26/08 10:22 PM ]
It is planned to be fixed in SDK Gumbo (Flex 4). Please vote for this issue when you want it to be fixed.

Gustavo Saume - [05/27/08 07:48 AM ]
I haven't tried this yet, but maybe, if you load your modules in a sequence rather than all in once you could workaround it.

M. van Beek - [05/27/08 08:45 AM ]
Thanks Guys, Gustavo,

Making the load-process dependant (sequentially loading) does the trick.

I did had to add some event-catching-code for each loader (ready-event) but its worth the result.

OK, cheers

Mark