Jump to content
Search Community

BlitMask - problem with big target size

claudiusandulache25 test
Moderator Tag

Recommended Posts

Wait, your target is 35,000 pixels or your BlitMask is that big?

 

BlitMask automatically segments its internal bitmap capture so that it never has one larger than 2880 pixels to avoid errors like that, so I'm very curious to get an example FLA from you demonstrating the issue. If you make your BlitMask that big, though, I can see why it'd throw an error but I can't imagine why you'd ever want a mask that big because it'd never fit on the screen anyway. See what I mean?

Link to comment
Share on other sites

  • 5 months later...

I'm having this problem as well (with a large target, not a large blitmask). I'm trying to replicate it in a separate piece of code, but the error is difficult to replicate.

 

It looks like it's happening when the internal bitmap is segmented. I'll try to post more info soon.

Link to comment
Share on other sites

Yep, it looks like you're indeed pushing Flash past its limits. You can verify that this has nothing to do with Blitmask by trying the following code:

 

var a:Array = [];
for (var i:int = 0; i < 200; i++) {
   a[i] = new BitmapData(2880, 2880, true, 0);
}

 

It's just too many pixels for Flash to remember apparently. It will throw an error eventually about there being an invalid argument in the BitmapData constructor even though that's not true - it's just that Flash can't handle that much data.

 

I wish I had a simple solution for you.

Link to comment
Share on other sites

I found it crashing when the System memory got to around 1.8GB - which I guess is the Windows limit as I don't think single processes can use more than 2GB each. Might be different on Mac.

 

Not sure what bitmap dimensions you'd need to use that much memory up

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...