Description
Observed on openfl 9.4.0 with lime 8.2.1
package;
import openfl.display.BitmapData;
class Main extends openfl.display.Sprite {
public function new () {
super ();
final fullFrame = new BitmapData(10, 10, true, 0x0);
final result = new BitmapData(10, 10, true, 0x0);
final mask = new BitmapData(10, 10, true, 0xFFffffff);
result.copyPixels(result, result.rect, new openfl.geom.Point(), mask);
}
}
Error:
booboo@Georges-MacBook-Pro DisplayingABitmap % lime test hl -debug -clean
[debug] Using haxelib from "/usr/local/lib/haxe/lib/haxelib/4,0,3/"
SIGNAL 11
lime._internal.graphics.$ImageDataUtil.copyPixels(lime/_internal/graphics/ImageDataUtil.hx:314)
lime.graphics.Image.copyPixels(lime/graphics/Image.hx:490)
openfl.display.BitmapData.copyPixels(openfl/display/BitmapData.hx:720)
$Main.constructor(Main.hx:28)
$DocumentClass.constructor(ApplicationMain.hx:308)
$ApplicationMain.start(ApplicationMain.hx:218)
$ApplicationMain.~create.2(ApplicationMain.hx:121)
lime.app._Event_Void_Void.dispatch(lime/_internal/macros/EventMacro.hx:91)
openfl.display.Preloader.display_onUnload(openfl/display/Preloader.hx:101)
openfl.text.TextField.~this_onMouseDown.0(lime/app/Module.hx:0)
openfl.events.EventDispatcher.__dispatchEvent(openfl/events/EventDispatcher.hx:478)
openfl.display.DisplayObject.__dispatchEvent(openfl/display/DisplayObject.hx:1475)
openfl.display.DisplayObject.__dispatchWithCapture(openfl/display/DisplayObject.hx:1536)
openfl.display.DisplayObject.dispatchEvent(openfl/display/DisplayObject.hx:1193)
openfl.display.DefaultPreloader.onLoaded(openfl/display/Preloader.hx:213)
openfl.display.DefaultPreloader.this_onComplete(openfl/display/Preloader.hx:252)
openfl.text.TextField.~this_onMouseDown.0(lime/app/Module.hx:0)
openfl.events.EventDispatcher.__dispatchEvent(openfl/events/EventDispatcher.hx:478)
openfl.display.DisplayObject.__dispatchEvent(openfl/display/DisplayObject.hx:1475)
openfl.display.DisplayObject.__dispatchWithCapture(openfl/display/DisplayObject.hx:1536)
openfl.display.DisplayObject.dispatchEvent(openfl/display/DisplayObject.hx:1193)
openfl.display.Preloader.start(openfl/display/Preloader.hx:48)
$ApplicationMain.~create.1(ApplicationMain.hx:118)
lime.app._Event_Void_Void.dispatch(lime/_internal/macros/EventMacro.hx:91)
lime.utils.Preloader.start(lime/utils/Preloader.hx:220)
lime.utils.Preloader.updateProgress(lime/utils/Preloader.hx:309)
lime.utils.Preloader.loadedAssetLibrary(lime/utils/Preloader.hx:204)
lime.utils.Preloader.~updateProgress.1(lime/utils/Preloader.hx:289)
openfl.display.Loader.~loader_onComplete.1(lime/app/Module.hx:0)
lime.app.Promise.complete(lime/app/Promise.hx:108)
openfl.utils.$Assets.~loadSound.3(lime/app/Module.hx:0)
lime.app.Future.onComplete(lime/app/Future.hx:130)
lime.app.Promise.completeWith(lime/app/Promise.hx:126)
lime.utils.$Assets.~loadLibrary.3(lime/utils/Assets.hx:476)
lime.utils.$Assets.~loadLibrary.4(lime/app/Module.hx:0)
lime.app.Promise.complete(lime/app/Promise.hx:108)
openfl.utils.$Assets.~loadSound.3(lime/app/Module.hx:0)
lime.app.Future.onComplete(lime/app/Future.hx:130)
lime.app.Future.~then.2(lime/app/Future.hx:277)
lime.app.Promise.complete(lime/app/Promise.hx:108)
lime.net._HTTPRequest_Bytes.~load.3(lime/net/HTTPRequest.hx:118)
openfl.utils.$Assets.~loadBytes.1(lime/app/Module.hx:0)
lime.app.Promise.complete(lime/app/Promise.hx:108)
lime._internal.backend.native.$NativeHTTPRequest.localThreadPool_onComplete(lime/_internal/backend/native/NativeHTTPRequest.hx:452)
lime._internal.backend.native.NativeHTTPRequest.~loadData.1(lime/app/Module.hx:0)
lime.app._Event_Dynamic_Void.dispatch(lime/_internal/macros/EventMacro.hx:91)
lime.system.ThreadPool.__update(lime/system/ThreadPool.hx:573)
lime.app._Event_Int_Void.dispatch(lime/_internal/macros/EventMacro.hx:91)
lime._internal.backend.native.NativeApplication.handleApplicationEvent(lime/_internal/backend/native/NativeApplication.hx:176)
lime._internal.backend.native.NativeApplication.exec(lime/_internal/backend/native/NativeApplication.hx:147)
lime.app.Application.exec(lime/app/Application.hx:150)
openfl.display.Application.exec(openfl/display/Application.hx:130)
$ApplicationMain.create(ApplicationMain.hx:137)
$ApplicationMain.main(ApplicationMain.hx:26)
.init(?:1)
booboo@Georges-MacBook-Pro DisplayingABitmap %