You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alexander Scheibe (JIRA)" <ji...@apache.org> on 2013/08/22 13:19:52 UTC

[jira] [Commented] (FLEX-33478) Including resource bundle in main app MXML causes unfixable crash in iOS StandardMode compile

    [ https://issues.apache.org/jira/browse/FLEX-33478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13747441#comment-13747441 ] 

Alexander Scheibe commented on FLEX-33478:
------------------------------------------

I have the same problem. 
A standard compiled iOS app mostly closes after the splash image; sometimes it hangs on the splash image. In rare cases I’m able to connect with the debugger and get the same stack trace.

I use Air 3.8 and Apache Flex 4.10.0 with iOS 6.3.1 with Flash Builder 4.7 on Windows.
I used one single huge resource bundle with about 6000 keys in two locales. This worked with Air 3.7, Flex 4.9 and a previous iOS version (don’t know which version).

My application shows only one label after the splash image and includes the resource bundle.

A test to find out if some special character causes the problem by bisecting my keys resulted in that this is not the case.

I than used a resource bundle which only contained key value pairs in the format keyX=valueX.
The maximum number of keys working is 512. This is independent of the number of locales being used, so it looks like a per file limit. 
Also I can use two different resource bundles with 512 keys each.

So the question is what changed that it no longer works with more than 512 keys?

                
> Including resource bundle in main app MXML causes unfixable crash in iOS StandardMode compile
> ---------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33478
>                 URL: https://issues.apache.org/jira/browse/FLEX-33478
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Mobile: ViewNavigator
>         Environment: FB4.7, AIR3.6, Windows 64, iOS
>            Reporter: Gaius Coffey
>              Labels: air, crash, flex_mobile, ios
>
> Hi,
> 1. Build an application using Flex for mobile targetted at iOS
> 2. Use ResourceBundle to provide all strings
> 3. Add a metadata tag to the main application .mxml as per the below:
> 	<fx:Metadata>
> 		[ResourceBundle("Messages")]
> 	</fx:Metadata>	
> 4. Compile in the different modes:
> - For ad hoc release; compiles and runs
> - For fast mode debug; compiles and runs
> - For STANDARD mode debug; CRASHES HORRIBLY before executing user code
> NB: I have tried using a test project where I comment out _ALL_ code and display classes and use an empty view. It is _DEFINITELY_ the metadata declaration that causes the bug.
> NB2: I have just attempted moving the metadata declaration elsewhere in my code (to the first view) and the same results are found.
> [SWF] gustavo_mobile_as_app.swf - 35,408,264 bytes after decompression
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
>           at en_US$Messages_properties/getContent()
>           at mx.resources::ResourceBundle()[C:\svn\4.y\frameworks\projects\framewo rk\src\mx\resources\ResourceBundle.as:121]
>           at mx.resources::ResourceBundle()
>           at en_US$Messages_properties()
>           at en_US$Messages_properties()
>           at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\ dev\4.y\frameworks\projects\framework\src\mx\resources\ResourceManager Impl.as:396]
>           at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E: \dev\4.y\frameworks\projects\framework\src\mx\resources\ResourceManage rImpl.as:306]
>           at mx.resources::ResourceManagerImpl/processInfo()[E:\dev\4.y\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:450]
>           at mx.resources::ResourceManagerImpl()[E:\dev\4.y\frameworks\projects\fr amework\src\mx\resources\ResourceManagerImpl.as:133]
>           at mx.resources::ResourceManager$/getInstance()[E:\dev\4.y\frameworks\pr ojects\framework\src\mx\resources\ResourceManager.as:117]
>           at mx.styles::StyleManagerImpl()[E:\dev\4.y\frameworks\projects\framewor k\src\mx\styles\StyleManagerImpl.as:380]
>           at _gustavo_mobile_as_app_FlexInit$/init()
>           at _gustavo_mobile_as_app_FlexInit$/init()
>           at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemMana ger.as:2815]
>           at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemMana ger.as:2723]
>           at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
>           at flash.events::EventDispatcher/dispatchEvent()
>           at mx.preloaders::Preloader/timerHandler()[E:\dev\4.y\frameworks\project s\framework\src\mx\preloaders\Preloader.as:542]
>           at mx.preloaders::Preloader/timerHandler()
>           at flash.utils::Timer/tick()
>           at flash.utils::Timer/tick()
> See also: http://forums.adobe.com/message/5215450#5215450 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira