kingyiren / efflex

Automatically exported from code.google.com/p/efflex
0 stars 0 forks source link

ArgumentError: Error #2015: Invalid BitmapData. when minimizing during effect #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.We are using Efflex in YNAB 3, a personal finance AIR app, and it's awesome. 
(BTW, the 
donation link is broken on the Efflex page, but that's another bug).

According to our users, minimizing the AIR app when running on Windows when an 
effect is 
playing will cause the following crash.

ArgumentError: Error #2015: Invalid BitmapData.
   at flash.display::BitmapData()
   at 
org.efflex.mx.viewStackEffects.effectClasses::ViewStackTweenEffectInstance/creat
eBitmapDatum(
)
   at org.efflex.mx.viewStackEffects.effectClasses::ViewStackTweenEffectInstance/play()
   at mx.effects::EffectInstance/startEffect()
   at org.efflex.mx.viewStackEffects.effectClasses::ViewStackTweenEffectInstance/startEffect()
   at mx.effects::Effect/play()
   at mx.effects::EffectManager$/createAndPlayEffect()
   at mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at mx.core::UIComponent/dispatchEvent()
   at mx.core::UIComponent/setVisible()
   at mx.core::UIComponent/set visible()
   at mx.containers::ViewStack/updateDisplayList()
   at mx.core::UIComponent/validateDisplayList()
   at mx.core::Container/validateDisplayList()
   at mx.managers::LayoutManager/validateClient()
   at mx.core::UIComponent/validateNow()
   at mx.core::WindowedApplication/window_resizeHandler()

What version of the product are you using? On what operating system?

This has been confirmed on Windows XP running Efflex codebase as of early Dec.  
It probably is 
related to the fact that Windows machines set the width and height to 0 when an 
app is 
minimized. 

Please provide any additional information below.

I believe we have seen some other Invalid BitmapData errors as well, and I'm 
generally unfamiliar 
with these, so even if you can just tell me where to look or a goofy 
workaround, that would be 
great!

Original issue reported on code.google.com by TheTay...@gmail.com on 16 Dec 2009 at 7:51