https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • c

    clever-oil-61353

    06/03/2020, 6:29 AM
    seems that way to mean, but doing ok in windows so......
  • b

    bright-gpu-74537

    06/03/2020, 6:29 AM
    im not seeing what you are seeing
  • b

    bright-gpu-74537

    06/03/2020, 6:29 AM
    main dialog trying to replace main dialog
  • b

    bright-gpu-74537

    06/03/2020, 6:29 AM
    not sure where you see that in the stack
  • b

    bright-gpu-74537

    06/03/2020, 6:30 AM
    i see:
  • b

    bright-gpu-74537

    06/03/2020, 6:30 AM
    Copy code
    SIGNAL 11
    hl.types.ArrayObj.getDyn(/usr/local/share/haxe/std/hl/types/ArrayObj.hx:348)
    hl.types.ArrayDyn.getDyn(/usr/local/share/haxe/std/hl/types/ArrayDyn.hx:80)
    openfl._Vector.ObjectVector.get(openfl/Vector.hx:1693)
    openfl._internal.text.TextEngine.getLayoutGroups(openfl/_internal/text/TextEngine.hx:1439)
    openfl._internal.text.TextEngine.update(openfl/_internal/text/TextEngine.hx:1768)
    openfl.text.TextField.__updateLayout(openfl/text/TextField.hx:2374)
    openfl.text.TextField.get_textWidth(openfl/text/TextField.hx:3038)
    haxe.ui.backend.TextDisplayImpl.measureText(haxe/ui/backend/TextDisplayImpl.hx:140)
  • b

    bright-gpu-74537

    06/03/2020, 6:30 AM
    which looks like something is going wrong in openfl's text engine, or its doing something that exposing an issue in hl
  • b

    bright-gpu-74537

    06/03/2020, 6:30 AM
    thats my take anyway...
  • c

    clever-oil-61353

    06/03/2020, 6:30 AM
    crap, i'm looking at it wrong lol
  • b

    bright-gpu-74537

    06/03/2020, 6:31 AM
    🙂 top is end of the stack
  • b

    bright-gpu-74537

    06/03/2020, 6:32 AM
    though i just spent 20 minutes debugging a
    haxeui create
    application 😄
  • c

    clever-oil-61353

    06/03/2020, 6:32 AM
    had it in my mind the bottom
  • b

    bright-gpu-74537

    06/03/2020, 6:34 AM
    ok, so this in openfl's TextEngine.hx
    layoutGroup = layoutGroups[i];
  • c

    clever-oil-61353

    06/03/2020, 6:34 AM
    so its looking os specific for hl
  • c

    clever-oil-61353

    06/03/2020, 6:34 AM
    all other backends work with it
  • b

    bright-gpu-74537

    06/03/2020, 6:35 AM
    leads to
    return __array[index];
    in openfls vector
  • b

    bright-gpu-74537

    06/03/2020, 6:35 AM
    if you have five mins, can you put a trace in openfls textengine.hx:
  • b

    bright-gpu-74537

    06/03/2020, 6:35 AM
    Copy code
    layoutGroup = layoutGroups[i];
    trace("------------------------> " + layoutGroup);
  • c

    clever-oil-61353

    06/03/2020, 6:35 AM
    alright
  • b

    bright-gpu-74537

    06/03/2020, 6:36 AM
    openfl/_internal/text/TextEngine.hx:1439
  • b

    bright-gpu-74537

    06/03/2020, 6:36 AM
    actually
  • b

    bright-gpu-74537

    06/03/2020, 6:36 AM
    that wont work
  • b

    bright-gpu-74537

    06/03/2020, 6:36 AM
    it will crash before the trace
  • b

    bright-gpu-74537

    06/03/2020, 6:37 AM
    Copy code
    haxe
    trace("--------------------> " + i + ", " + layoutGroups.length);
    layoutGroup = layoutGroups[i];
  • c

    clever-oil-61353

    06/03/2020, 6:54 AM
    i put it in the wrong version
  • c

    clever-oil-61353

    06/03/2020, 6:56 AM
    openfl/_internal/text/TextEngine.hx:1440: --------------------> -1, 0 SIGNAL 11 hl.types.ArrayObj.getDyn(/usr/local/share/haxe/std/hl/types/ArrayObj.hx:348) hl.types.ArrayDyn.getDyn(/usr/local/share/haxe/std/hl/types/ArrayDyn.hx:80) openfl._Vector.ObjectVector.get(openfl/Vector.hx:1693) openfl._internal.text.TextEngine.getLayoutGroups(openfl/_internal/text/TextEngine.hx:1441) openfl._internal.text.TextEngine.update(openfl/_internal/text/TextEngine.hx:1774)
  • b

    bright-gpu-74537

    06/03/2020, 6:56 AM
    hehe, -1? that'll do i guess
  • b

    bright-gpu-74537

    06/03/2020, 6:57 AM
    and what if you put a "if (i <= layoutGroups.length) break;" at the start of the loop?
  • b

    bright-gpu-74537

    06/03/2020, 6:57 AM
    seems hacky, but might be interesting to see what the results are
  • c

    clever-oil-61353

    06/03/2020, 6:57 AM
    alright
1...247248249...1687Latest