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

    bright-gpu-74537

    06/03/2020, 6:58 AM
    actually, that condition doesnt make any sense... two secs
  • b

    bright-gpu-74537

    06/03/2020, 6:59 AM
    so the issue is this:
    var i = layoutGroups.length - 1;
  • b

    bright-gpu-74537

    06/03/2020, 6:59 AM
    which presumably means .length should never be 0
  • b

    bright-gpu-74537

    06/03/2020, 7:00 AM
    wonder what changing the
    while (true)
    to
    while (i >= 0)
    does
  • b

    bright-gpu-74537

    06/03/2020, 7:01 AM
    but sounds like it might just break elsewhere, not sure how the textengine in openfl works, but my guess is that layoutGroups is empty and it shouldnt be
  • b

    bright-gpu-74537

    06/03/2020, 7:02 AM
    although, there is this a few lines up:
    if (align != JUSTIFY && (layoutGroup != null || layoutGroups.length > 0))
    which indicates there is a case where .length == 0
  • b

    bright-gpu-74537

    06/03/2020, 7:02 AM
    so maybe a genuine bug
  • b

    bright-gpu-74537

    06/03/2020, 7:02 AM
    ¯\_(ツ)_/¯
  • c

    clever-oil-61353

    06/03/2020, 7:03 AM
    hmm
  • b

    bright-gpu-74537

    06/03/2020, 7:05 AM
    does
    while (i >= 0)
    do anything? What about building the project using hxcpp or js?
  • c

    clever-oil-61353

    06/03/2020, 7:11 AM
    i'll do that real quick
  • c

    clever-oil-61353

    06/03/2020, 7:14 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:1780)
  • c

    clever-oil-61353

    06/03/2020, 7:15 AM
    i'll run a js build now
  • b

    bright-gpu-74537

    06/03/2020, 7:15 AM
    you mean in crashed in the same way with
    while (i >= 0)
    instead of
    while(true)
    on line 1437ish?
  • c

    clever-oil-61353

    06/03/2020, 7:15 AM
    yep
  • b

    bright-gpu-74537

    06/03/2020, 7:16 AM
    that doesnt sound possible, esp as your trace is still tracing out -1
  • b

    bright-gpu-74537

    06/03/2020, 7:16 AM
    can you screen shot, or copy paste what you are looking at?
  • b

    bright-gpu-74537

    06/03/2020, 7:17 AM
    if your busy, dont worry, i dont think we're going to find a fix, just wondering what the issue is, will need a minimal openfl / hl example at some point to submit an issue
  • b

    bright-gpu-74537

    06/03/2020, 7:17 AM
    ok, you need to remove that trace (or put it in the loop)... the "layoutGroups[-1]" is what crashes it
  • c

    clever-oil-61353

    06/03/2020, 7:17 AM
    i'm not busy.... i'll be sitting here for the next 5 hours or so. then dr appt
  • b

    bright-gpu-74537

    06/03/2020, 7:18 AM
    cool - so remove line 1440 & 1441 (which i guess you added? as i dont have those lines)
  • c

    clever-oil-61353

    06/03/2020, 7:18 AM
    yep
  • c

    clever-oil-61353

    06/03/2020, 7:23 AM
    the change to the while did the trick for that screen
  • b

    bright-gpu-74537

    06/03/2020, 7:23 AM
    hmmmpf... weird
  • b

    bright-gpu-74537

    06/03/2020, 7:24 AM
    wonder why layoutGroups.length == 0 then and why that doesnt seem to have any effect
  • b

    bright-gpu-74537

    06/03/2020, 7:24 AM
    i figured it would run, but something else would happen, either a crash somewhere else, or text wouldnt show, or be strange, or something
  • b

    bright-gpu-74537

    06/03/2020, 7:25 AM
    can you type in the "ID" field?
  • c

    clever-oil-61353

    06/03/2020, 7:30 AM
    i have an idea..... running strace
  • c

    clever-oil-61353

    06/03/2020, 7:31 AM
    but, yes, i was able to enter info and click save, no crash
  • b

    bright-gpu-74537

    06/03/2020, 7:33 AM
    fair enough, well... there is a "fix" then, but im still a little unsure as to why that layoutGroups can be zero length and presumably not on my machine
1...248249250...1687Latest