Skip to content

Crash in var printing after breakpoint before super #19

Open

Description

@Gama11

To reproduce, create an empty OpenFL project with this as Main:

package;

import openfl.display.Sprite;

class Main extends Sprite
{
	public function new()
	{
		trace("test");
		super();
	}
}

Then set a breakpoint at the trace. Taking any action after the breakpoint is hit (continue, step over) results in a crash.

When attaching a native C++ debugger, you can see that it crashes while printing numChildren.

@nulld Any ideas? I thought that -D HXCPP_CHECK_POINTER should help, but it doesn't seem to.

Activity

  1. Gama11 commented on May 10, 2019

    @Gama11
    MemberAuthor

    (most likely this is related to the implementation of get_numChildren, which returns __children.length / wouldn't be initialized properly before super, but what I don't get is why we can't catch that exception)

  2. nulld commented on May 13, 2019

    @nulld
    Member

    Looks like duplicate of this one #8

  3. Gama11 commented on May 13, 2019

    @Gama11
    MemberAuthor

    Oh, maybe...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions