HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.97k stars 434 forks source link

HashLink crashes in FlxKeyManager.checkStatus #2260

Closed TheSpydog closed 4 years ago

TheSpydog commented 4 years ago

Code snippet reproducing the issue:

N/A. Create a Flappybalt demo project on macOS or Linux, and run with lime test hl.


Observed behavior: The game crashes as soon as the "HaxeFlixel" logo text appears. Sometimes it provides the following dump:

SIGNAL 11
flixel.input.FlxKeyManager.checkStatus(flixel/input/FlxKeyManager.hx:148)
flixel.input.FlxKeyManager.checkKeyArrayState(flixel/input/FlxKeyManager.hx:270)
flixel.system.frontEnds.SoundFrontEnd.update(flixel/system/frontEnds/SoundFrontEnd.hx:342)
flixel.FlxGame.update(flixel/FlxGame.hx:743)
flixel.FlxGame.step(flixel/FlxGame.hx:677)
flixel.FlxGame.onEnterFrame(flixel/FlxGame.hx:551)
openfl.text.TextField.~set_type.1(lime/app/Module.hx:0)
openfl.events.EventDispatcher.__dispatchEvent(openfl/events/EventDispatcher.hx:402)
openfl.display.DisplayObject.__dispatch(openfl/display/DisplayObject.hx:1407)
openfl.display.Stage.__broadcastEvent(openfl/display/Stage.hx:1158)
openfl.display.Stage.__onLimeRender(openfl/display/Stage.hx:1876)
lime.app._Event_lime_graphics_RenderContext_Void.dispatch(lime/_internal/macros/EventMacro.hx:91)
lime._internal.backend.native.NativeApplication.handleRenderEvent(lime/_internal/backend/native/NativeApplication.hx:370)
@0xAD8EB40
lime._internal.backend.native.NativeApplication.exec(lime/_internal/backend/native/NativeApplication.hx:146)
lime.app.Application.exec(lime/app/Application.hx:150)
$ApplicationMain.create(ApplicationMain.hx:130)
$ApplicationMain.main(ApplicationMain.hx:25)
fun$10476(?:1)
@0xB294FA0

Expected behavior: It doesn't crash.

Gama11 commented 4 years ago

Huh, that might be a HashLink bug.

TheSpydog commented 4 years ago

This is definitely not a Flixel bug. Closing.