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

    most-caravan-45834

    06/03/2020, 1:08 AM
    If I can get it to work
  • c

    clever-oil-61353

    06/03/2020, 1:14 AM
    if you want a hand with it just let me know. I don't mind spending some time stripping a few things away from it.
  • m

    most-caravan-45834

    06/03/2020, 1:16 AM
    Im trying to run it from the package with nwjs since the app is knownly broken
  • c

    clever-oil-61353

    06/03/2020, 1:18 AM
    GMEdit is another one that i had checked out, i was looking at it to see how the editor was implemented. Neat design in that one.
  • c

    clever-oil-61353

    06/03/2020, 1:52 AM
    Just thought of something.... i had changed some values in my app that dealt with glPerspective and glOrth views..... i had set one of the cameras view to something outside of what was possible, caused my app to crash just like yours after pressing that button...... Double check your array or try a different arrangement in that mapproperties.hx to see if that stops the crashing. I'm still learning about arrays and memory allocation for them.... so your understanding is probably alot better than mine of them.
  • m

    most-caravan-45834

    06/03/2020, 2:36 AM
    In my original code I populate that array from listing all the files in a folder using System, for this example project I uploaded here I just created a simple array in code, I can't how it can be wrong
  • m

    most-caravan-45834

    06/03/2020, 2:38 AM
    Copy code
    haxe
    // Loading tmx file list
    {
      var files:Array<String> = ["bla", "ble", "bli"];
    
      for (file in files)
      {
        tilemap.dataSource.add({
          value: file
        });
      }
    }
    How can this be wrong? And on the other hand it works well in cpp target so... definetely the problem is in hashlink impl
  • c

    clever-oil-61353

    06/03/2020, 2:40 AM
    i was wrong
  • c

    clever-oil-61353

    06/03/2020, 2:41 AM
    doing some testing on mine.... i think i almost have it figured out.
  • c

    clever-oil-61353

    06/03/2020, 2:42 AM
    its not your arrays, but the updating of information that is causing some kind of .... i can't think of a term for it..... but, almost like some headon collision
  • c

    clever-oil-61353

    06/03/2020, 2:43 AM
    like a single thread or lane of traffic, then all of a sudden a car merges into the lane and blocks the flow, causing the crash
  • c

    clever-oil-61353

    06/03/2020, 2:44 AM
    its the only way i can visualise it at the moment.
  • c

    clever-oil-61353

    06/03/2020, 2:46 AM
    im experiencing similar issues when trying to update while live loading in hashlink, but i don't have that problem in other platforms.... so you are right, its with how we are handling the flow of info in hashlink.
  • c

    clever-oil-61353

    06/03/2020, 2:47 AM
    speaking of which, gives me an idea of what to try on yours real quick. brb
  • c

    clever-oil-61353

    06/03/2020, 4:05 AM
    line 75 in playstate.hx....... that is where your app crashes..
  • c

    clever-oil-61353

    06/03/2020, 4:06 AM
    Between Mapproperties.hx and playstate.hx...... the issue is tied to that if statement
  • c

    clever-oil-61353

    06/03/2020, 4:07 AM
    double check your nulls up to that point.... make sure its not trying to do something with a value of zero
  • c

    clever-oil-61353

    06/03/2020, 4:28 AM
    guifes did you try this on windows and mac or just mac?
  • c

    clever-oil-61353

    06/03/2020, 4:57 AM
    if you did it on mac and it crashed... me on linux and it crashed...... ian on windows and it didn't.... well... windows does like to let problems build up and then crash instead of right of the bat when it comes to any kind of mem allocation issues unless thats changed over the years..... i'll break out the win10 lappie and try it there as well.
  • c

    clever-oil-61353

    06/03/2020, 5:03 AM
    crashes on this......... _mapPropertiesDialog.showDialog();
  • b

    bright-gpu-74537

    06/03/2020, 5:52 AM
    @User - do you still get that crash on the property grid? @User - your custom label (or any component) should work now, also, can you retest the issue with the textfield on a tab? I couldnt reproduce exactly but i did find something that was odd, so hopefully fixed it @User - morning! 😉
  • c

    clever-oil-61353

    06/03/2020, 5:52 AM
    howdy Ian, i was trying to help
  • b

    bright-gpu-74537

    06/03/2020, 5:53 AM
    yeah, thanks Shaun, much appreciated for sure - ive been snowed under recently with COVID data analysis so havent had a huge amount of time to go through things
  • c

    clever-oil-61353

    06/03/2020, 5:54 AM
    i know thats a chore ..... alot of data to crunch
  • b

    bright-gpu-74537

    06/03/2020, 5:54 AM
    you are rapidly becoming a "man of many backends" 😉
  • c

    clever-oil-61353

    06/03/2020, 5:54 AM
    lol
  • m

    most-caravan-45834

    06/03/2020, 5:58 AM
    > @User - do you still get that crash on the property grid? > @User - your custom label (or any component) should work now, also, can you retest the issue with the textfield on a tab? I couldnt reproduce exactly but i did find something that was odd, so hopefully fixed it > @User - morning! 😉 @bright-gpu-74537 yes I am
  • b

    bright-gpu-74537

    06/03/2020, 5:59 AM
    can you possibly zip a minimal example, just to make sure were looking at the same thing, as i cant reproduce (you might have already zipped one, but i cant seem to find it)
  • b

    bright-gpu-74537

    06/03/2020, 5:59 AM
    actually, nvm, i think i found it
  • c

    clever-oil-61353

    06/03/2020, 6:01 AM
    when you comment out _mapPropertiesDialog.showDialog(); no crash.... makes me think its something with that command.
1...245246247...1687Latest