Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in var printing after breakpoint before super #19

Open
Gama11 opened this issue May 10, 2019 · 3 comments
Open

Crash in var printing after breakpoint before super #19

Gama11 opened this issue May 10, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@Gama11
Copy link
Member

Gama11 commented May 10, 2019

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.

@Gama11 Gama11 added the bug Something isn't working label May 10, 2019
@Gama11
Copy link
Member Author

Gama11 commented May 10, 2019

(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)

@nulld
Copy link
Member

nulld commented May 13, 2019

Looks like duplicate of this one #8

@Gama11
Copy link
Member Author

Gama11 commented May 13, 2019

Oh, maybe...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants