Page 1 of 1

[X] Strange error message while loading after a death.

PostPosted: Thu Sep 18, 2014 1:20 am
by Triple J
Error message: show
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData/ctor()
at flash.display::BitmapData()
at com.runouw.ll.engine.core::TileBitmapData()
at com.runouw.ll.engine.levelData.items.data.platforms::Item_Block/attach()
at com.runouw.ll.engine.core::Course/attachingItemsFrame()

I have no idea what went wrong, but this randomly popped up after one of my deaths, and then the game stopped responding, so I had to close it out forcefully. I wonder why I got this...

Re: [X] Strange error message while loading after a death.

PostPosted: Sun Sep 21, 2014 9:42 pm
by Triple J
Another similar error message: show
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData/ctor()
at flash.display::BitmapData()
at com.runouw.ll.engine.levelData.items.data.platforms::Item_Planet/attach()
at com.runouw.ll.engine.core::Course/attachingItemsFrame()

I just got a similar error message as I was going through an Up-Down Level Splitter (it only loaded halfway past the loading bar, before stalling). I can't really elaborate, but this indeed happened in the same [left-right] transition as before.

I'm afraid this may actually be a level-specific issue, though, but the level I've experienced these errors with is still a WIP. However, I am actually pretty close to finishing it; I'm pretty much done with the final section, therefore - after that - I just need to design the big boss battle (and maybe an ending sequence), so hopefully my level will be finished before it is too late to look into these two errors messages. ...Unless it happens to be a general issue that can occur in any level, or if it could be solved technically without me having to provide the level code.

Re: [X] Strange error message while loading after a death.

PostPosted: Mon Sep 22, 2014 12:51 am
by Runouw
This bug occurs when the game cannot create a bitmap for "Block" and "Planet" items. The ways this error could have been triggered are:
1.) You made a planet or block with more than 16 million pixels in it (this probably isn't the case)
2.) The Flash-Player runtime was unable to allocate enough memory to create the bitmap.

This error is only likely to occur in levels that use too many "Block" and "Planet" items. There's not much I can do to fix this at the moment (except force the game to free memory before a level loads. Which would only prolong the error). If you want to avoid it, you can use less of these items in your level or split your level into a series.

I apologize that this error can cause the game to hang and ultimately crash.