haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
341 stars 71 forks source link

runtime error with dropdown #107

Closed R3D9477 closed 4 years ago

R3D9477 commented 7 years ago

Hi. I tried to compile a simple project with DropDown component, but haxe an exception as result.

Expected Behavior

$ openfl test linux -neko
Called from ? line 1
Called from ApplicationMain.hx line 80
Called from ApplicationMain.hx line 100
Called from lime/app/Preloader.hx line 200
Called from lime/app/Preloader.hx line 313
Called from openfl/display/Preloader.hx line 51
Called from a C function
Called from openfl/events/EventDispatcher.hx line 97
Called from openfl/display/DisplayObject.hx line 363
Called from a C function
Called from openfl/events/EventDispatcher.hx line 218
Called from openfl/display/Preloader.hx line 290
Called from openfl/display/Preloader.hx line 229
Called from a C function
Called from openfl/events/EventDispatcher.hx line 97
Called from openfl/display/DisplayObject.hx line 363
Called from a C function
Called from openfl/events/EventDispatcher.hx line 218
Called from openfl/display/Preloader.hx line 109
Called from a C function
Called from lime/app/Preloader.hx line 219
Called from lime/_macros/EventMacro.hx line 101
Called from ApplicationMain.hx line 203
Called from openfl/display/Stage.hx line 1238
Called from ApplicationMain.hx line 199
Called from haxe/ui/macros/ComponentMacros.hx line 191
Called from haxe/ui/components/DropDown.hx line 68
Uncaught exception - Invalid call

Test app / minimal test case

peoject available here

Your Environment

haxe 3.4.0 os Linux Mint 18.1 x64 haxe libraries:

$ haxelib list
actuate: [1.8.7]
box2d: [1.2.3]
dataTree: git [dev:/home/r3d9u11/.haxelibraries/dataTree/git]
format: 3.2.1 [3.3.0]
haxe-crypto: 0.0.6 [0.0.7]
haxeui-core: git [dev:/home/r3d9u11/.haxelibraries/haxeui-core/git]
haxeui-openfl: git [dev:/home/r3d9u11/.haxelibraries/haxeui-openfl/git]
haxity: git [dev:/home/r3d9u11/.haxelibraries/haxity/git]
hscript: [2.0.7]
hvm: [0.0.2]
hxcpp: 3.3.49 3.4.2 3.4.43 [3.4.49]
ihx: [0.3.5]
kha: [16.1.2]
layout: [1.2.1]
libmodbus: git [dev:/home/r3d9u11/.haxelibraries/libmodbus/git]
lime-samples: [3.4.0]
lime-tools: [1.5.7]
lime: 3.4.1 3.5.2 3.6.0 3.6.2 3.7.0 [3.7.2]
openfl-native: [1.4.0]
openfl-samples: 4.4.0 4.5.1 [4.7.0]
openfl-tools: [1.0.10]
openfl: 4.4.1 4.5.2 4.5.3 4.6.0 4.7.0 [4.7.3]
stablexui: git [dev:/home/r3d9u11/.haxelibraries/stablexui/git]
starling: [1.8.3]
swf: [2.3.1]
systools: 1.1.0 git [dev:/home/r3d9u11/.haxelibraries/systools/git]
tjson: [1.4.0]
tjsonStyleCl: git [dev:/home/r3d9u11/.haxelibraries/tjsonStyleCl/git]
typext: git [dev:/home/r3d9u11/.haxelibraries/typext/git]

Thanks.

ustutz commented 7 years ago

Hi I have the same problem. I tested the minimal app of r3d9u11 Works with Flash Works with HTML5 but shows no item texts Crashes with Neko Works with C++ but shows no item texts

haxe 3.4.0 Windows10 x64 haxeui-core and haxeui-openfl are the latest versions from git

ianharrigan commented 7 years ago

I'm in the UK till next week but will check it out when I'm back. Was this working previously? Ie, is this a 3.4 issue? I have 3.2.1 at home and all is fine

ianharrigan commented 7 years ago

Any difference with git lime / openfl?

R3D9477 commented 7 years ago

yes, it's for 3.4.0 and neko 2.1.0

I can't test git-version of lime, because I have exception "Error: Source path "/home/r3d9u11/.haxelib_repo/lime/git/ndll/Linux64/lime.ndll" does not exist"

ibilon commented 7 years ago

@r3d9u11 for lime git you need to build the missing ndll with lime rebuild linux see https://github.com/openfl/lime#building-from-source

R3D9477 commented 7 years ago

many thanks for hint!

similar error with openfl-git and lime-git, too:

$ openfl test linux -neko
Called from ? line 1
Called from ApplicationMain.hx line 80
Called from ApplicationMain.hx line 100
Called from lime/app/Preloader.hx line 201
Called from lime/app/Preloader.hx line 314
Called from openfl/display/Preloader.hx line 51
Called from a C function
Called from openfl/events/EventDispatcher.hx line 97
Called from openfl/display/DisplayObject.hx line 363
Called from a C function
Called from openfl/events/EventDispatcher.hx line 218
Called from openfl/display/Preloader.hx line 290
Called from openfl/display/Preloader.hx line 229
Called from a C function
Called from openfl/events/EventDispatcher.hx line 97
Called from openfl/display/DisplayObject.hx line 363
Called from a C function
Called from openfl/events/EventDispatcher.hx line 218
Called from openfl/display/Preloader.hx line 109
Called from a C function
Called from lime/app/Preloader.hx line 220
Called from lime/_macros/EventMacro.hx line 101
Called from ApplicationMain.hx line 203
Called from openfl/display/Stage.hx line 1238
Called from ApplicationMain.hx line 199
Called from haxe/ui/macros/ComponentMacros.hx line 191
Called from haxe/ui/components/DropDown.hx line 68
Uncaught exception - Invalid call

but this is not error of compilation, this is a runtime error

ianharrigan commented 7 years ago

Im still on haxe 3.2.1 and your test project works fine here. I wonder if this is a 3.4 thing. :(

wildfireheart commented 7 years ago

On macOS Dropdowns work with Haxe 3.4.2 and git version lime/openfl. I think I had some problems in the past, but that could be totally irrrelevant to this. I will be testing Windows build next week.

ianharrigan commented 4 years ago

Im going to close this as its very old. Feel free to open any new issues if this isnt actually resolved.

Cheers! Ian