HaxeFlixel / HaxeFlixel/flixel

Flixel demos and examples crash/segfaults on the HL target

Open
#2,318 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haxe
Stars
2.2k
Forks
522
Avg merge
34m
Merged PRs (30d)
1

Description

  • Haxe version: 4.2.2
  • Flixel version: 4.9.0
  • OpenFL version: 9.1.0
  • Lime version: 7.9.0
  • Affected targets: Linux's HashLink, latest stable

Code snippet reproducing the issue:


import flixel.FlxState;

class PlayState extends FlxState
{
	override public function create()
	{
		super.create();
		
	var text = new flixel.text.FlxText(0, 0, 0, "Hello World", 64);
    text.screenCenter();
    add(text);
		
	}

	override public function update(elapsed:Float)
	{
		super.update(elapsed);
	}
}


Observed behavior: When doing a lime test hl or lime test haxelink, the binary segfaults, the window on "Hello World" first appears for lower than a sec and then crashes immediately, this issue does not happens on: HTML5, Windows, Linux, Neko, etc. targets.

Expected behavior: That the simple hello world HL binary runs as well as those observed from that of the other targets.

On a side-note: A few of the flixel demos like flappybalt also manage to segfault the app as well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash with the supplied PlayState using lime test hl or lime test haxelink, then compare it with the targets that work. Check the simple Hello World case and the flappybalt demo; done means both run without the HashLink segfault.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.