HaxeFlixel / HaxeFlixel/flixel

FLX_TRACK_POOLS not working on Hashlink

Open
#3,624 4 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

On Flixel 6.1.2, trying to compile with -DFLX_TRACK_POOLS on Hashlink results in:

Uncaught exception: Null access
Called from fun$13409(lime/app/Module.hx:0)
Called from flixel.util.FlxPool.stackToString(flixel/util/FlxPool.hx:207)
Called from flixel.util.FlxPool.trackGet(flixel/util/FlxPool.hx:179)
Called from flixel.util.FlxPool.get(flixel/util/FlxPool.hx:88)
Called from fun$13410(flixel/FlxCamera.hx:570)
Called from .init(flixel/FlxCamera.hx:570)

It seems to be a Hashlink issue, building HTML5 or Neko works fine

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 with flixel/util/FlxPool.hx at stackToString and trackGet, then follow the call from flixel/FlxCamera.hx:570. Reproduce with Flixel 6.1.2 and -DFLX_TRACK_POOLS on Hashlink, comparing the working HTML5 or Neko builds. Done means pool tracking no longer raises Null access on Hashlink.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.