RealyUniqueName / StablexUI

UI engine for Haxe OpenFL designed to give as much freedom as possible in customizing UI
http://ui.stablex.ru/doc
Other
337 stars 80 forks source link

"segmentation fault" on neko 2.1.0 #231

Closed R3D9477 closed 8 years ago

R3D9477 commented 8 years ago

Hi. After latest updates for neko (today) I have error

$ neko ApplicationMain.n
Called from ? line 1
Called from ApplicationMain.hx line 139
Called from ApplicationMain.hx line 19
Called from openfl/display/Application.hx line 44
Called from lime/app/Application.hx line 202
Called from openfl/display/Window.hx line 24
Called from a C function
Called from lime/ui/Window.hx line 256
Called from lime/graphics/Renderer.hx line 35
Called from lime/_backend/native/NativeRenderer.hx line 63
Called from a C function
Uncaught exception - Segmentation fault

when I try to launch *.n (but compiled binary works fine)

I tried to launch it with lime 2.9.0, lime 2.9.1, StablexUI 1.1.5 (from haxelib repo) and StablexUI from git

haxe: 1:3.2.1 libneko: 2.0.0-4 neko: 2.1.0-3 os: Linux Mint 17.3 x64

example:

Source/Main.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Floating widthPt="100" heightPt="100">
</Floating>

Source/Main.hx:

package;

import openfl.Lib;
import openfl.display.*;

import ru.stablex.ui.UIBuilder;
import ru.stablex.ui.widgets.Floating;

class Main extends Sprite {
    public function new () {
        super();

        Lib.current.stage.align = StageAlign.TOP_LEFT;
        Lib.current.stage.scaleMode = StageScaleMode.NO_SCALE;

        Lib.current.stage.addChild(this);

        UIBuilder.init();
        var window:Floating = UIBuilder.buildFn('Main.xml')();

        window.show();
    }
}

project.xml:

<?xml version="1.0" encoding="utf-8"?>
<project>   
    <meta title="ChooseName" package="" version="1.0.0" company="" />
    <app main="Main" path="Export" file="ChooseName" /> 

    <window width="350" height="30" resizable="false" background="0xFFFFFF" fps="60" />
    <window width="0" height="0" if="html5 || flash" />

    <source path="Source" />    

    <haxelib name="openfl" />
    <haxelib name="actuate" />
    <haxelib name="stablexui" />
</project>

cmd:

$lime build neko -64
$neko ./Export/linux64/neko/obj/ApplicationMain.n

haxelib list out:

$ haxelib list
actuate: [1.8.6]
bindx2: [2.5.2]
box2d: [1.2.3]
composure: [2.4.0]
dconsole: [5.0.0]
exception: [0.1.3]
format: [3.2.1]
haxeui-file-dialogs: [0.1.1]
haxeui-rich-text: [0.1.2]
haxeui: [1.8.18] 1.8.17
HaxeUmlGen: [0.2.1]
hml: git 0.0.2-alpha [dev:/home/eugene/Software/haxelib/hml/git]
hscript: [2.0.7] 2.0.5 2.0.4
hxcpp: 3.2.205 [3.3.49]
hxcs: [3.2.0]
ihx: [0.3.5]
layout: [1.2.1]
lime-samples: [2.6.0]
lime-tools: [1.5.7]
lime: 2.9.1 [2.9.0]
mloader: [2.2.1]
msignal: [1.2.4]
openfl-html5: [1.0.5]
openfl-native: [1.4.0]
openfl-nativedialog: [1.2.0]
openfl-samples: [3.3.1]
openfl: 3.6.0 [3.6.1]
stablexui: git [dev:/home/eugene/Software/haxelib/stablexui/git]
swf: [2.2.0]
systools: 1.1.0 git [dev:/home/eugene/Software/haxelib/systools/git]

thanks

RealyUniqueName commented 8 years ago

Does it work for OpenFL projects without StablexUI? It looks like exception is thrown before even reaching user code.

R3D9477 commented 8 years ago

yep, it fails. really problem is not in stablex library, thanks :)