haxeui / haxeui-openfl

The OpenFL backend of the HaxeUI framework -
http://haxeui.org
MIT License
42 stars 14 forks source link

Crash when doubleclicking on a treeview node #68

Closed Hion-V closed 6 months ago

Hion-V commented 6 months ago

As the title suggests the library makes my program crash when a node is doubleclicked

Expected Behavior

Either nothing or the node collapsing/ expanding, I have no idea.

Current Behavior

Called from hxcpp::__hxcpp_main
Called from ApplicationMain::main ApplicationMain.hx line 26
Called from ApplicationMain::create ApplicationMain.hx line 137
Called from openfl.display.Application::exec openfl/display/Application.hx line 130
Called from lime.app.Application::exec lime/app/Application.hx line 150
Called from lime._internal.backend.native.NativeApplication::exec lime/_internal/backend/native/NativeApplication.hx line 146
Called from lime._internal.backend.native.NativeApplication::handleMouseEvent lime/_internal/backend/native/NativeApplication.hx line 344
Called from lime.app._Event_Float_Float_Int_Void::dispatch lime/_internal/macros/EventMacro.hx line 91
Called from openfl.display.Stage::__onLimeCreateWindow openfl/display/Stage.hx line 1805
Called from openfl.display.Stage::__onLimeMouseUp openfl/display/Stage.hx line 2006
Called from openfl.display.Stage::__onMouse openfl/display/Stage.hx line 2706
Called from openfl.display.Stage::__dispatchStack openfl/display/Stage.hx line 1389
Called from openfl.display.DisplayObject::__dispatch openfl/display/DisplayObject.hx line 1400
Called from openfl.events.EventDispatcher::__dispatchEvent openfl/events/EventDispatcher.hx line 439
Called from haxe.ui.backend.ComponentImpl::__onMouseEvent haxe/ui/backend/ComponentImpl.hx line 343
Called from haxe.ui.core.ComponentEvents::_onMappedEvent haxe/ui/core/ComponentEvents.hx line 127
Called from haxe.ui.core.ComponentEvents::dispatch haxe/ui/core/ComponentEvents.hx line 98
Called from haxe.ui.util.EventMap::invoke haxe/ui/util/EventMap.hx line 82
Called from haxe.ui.containers._TreeViewNode.TreeViewNodeBuilder::onContainerDblClick haxe/ui/containers/TreeViewNode.hx line 293
Called from haxe.ui.containers._TreeViewNode.TreeViewNodeBuilder::onExpandCollapseClicked haxe/ui/containers/TreeViewNode.hx line 297
Error : Null Object Reference

Steps to Reproduce (for bugs)

  1. Create a treeview that's populated with nodes
  2. Compile for Linux
  3. Doubleclick on any of the nodes
  4. ???
  5. Profit

Your Environment

ianharrigan commented 6 months ago

Hi, I'm away currently and won't be back till Monday. However, the first thing I noticed is you are using 1.6.0, can you try with git versions of both haxeui-core and haxeui-openfl? It's likely it will be fixed there.

Cheers, Ian

Hion-V commented 6 months ago

I am not using the git version because my app won't compile with it because MenuEvent doesn't work in the git version.

Hion-V commented 6 months ago

I might try to see if this specific issue is fixed in the git version however.

Hion-V commented 6 months ago

This issue does appear resolved on the git version. I have also figured out that MenuEvent isn't missing in the git version but has been moved to a different source file.