https://linen.dev logo
Join Discord
Powered by
# lime
  • a

    able-action-74275

    03/18/2023, 10:29 PM
    I think this is more correct usage, but still breaks with same error
    Copy code
    hx
    var fx = new FlxEffectSprite(sprite);
    add(fx);
    fx.effects = [new FlxOutlineEffect()];
  • c

    calm-horse-72201

    03/18/2023, 10:30 PM
    by which i mean, the function is missing from lime's
    hdll
    file, which is used by hashlink
  • a

    able-action-74275

    03/18/2023, 10:30 PM
    based on the sample here
  • h

    hallowed-ocean-84954

    03/18/2023, 10:32 PM
    is sprite.graphic.bitmap non-null ?
  • c

    calm-horse-72201

    03/18/2023, 10:33 PM
    if it was a null-related error, the error message would be "Null access" like the one what I sent above
  • c

    calm-horse-72201

    03/18/2023, 10:33 PM
    probably
  • h

    hallowed-ocean-84954

    03/18/2023, 10:34 PM
    depends when it's found
  • c

    calm-horse-72201

    03/18/2023, 10:35 PM
    does hashlink say "access violation" when it has NPEs in
    hdll
    files
  • c

    calm-horse-72201

    03/18/2023, 10:35 PM
    i am not knowledgeable about hashlink
  • h

    hallowed-ocean-84954

    03/18/2023, 10:35 PM
    I was poking around the code down there and the one you sent first is weird - I would expect something is null somewhere - most likely
  • a

    able-action-74275

    03/18/2023, 10:35 PM
    confirmed, it is non-null
  • h

    hallowed-ocean-84954

    03/18/2023, 10:35 PM
    it could
  • h

    hallowed-ocean-84954

    03/18/2023, 10:35 PM
    oh ok
  • h

    hallowed-ocean-84954

    03/18/2023, 10:35 PM
    0 is an invalid address to access on most platforms
  • c

    calm-horse-72201

    03/18/2023, 10:36 PM
    the debugger proved that no null variables were accessed in the haxe code
  • h

    hallowed-ocean-84954

    03/18/2023, 10:36 PM
    good - I was going to ask that
  • h

    hallowed-ocean-84954

    03/18/2023, 10:36 PM
    the strange thing about the stack is that there is more Haxe code below that - so I was puzzled it blew up on that line
  • c

    calm-horse-72201

    03/18/2023, 10:37 PM
    there was the null
    alphaPoint
    argument provided to the function, but that is null by default, so i somehow doubt that they would have missed a bug caused by it
  • h

    hallowed-ocean-84954

    03/18/2023, 10:37 PM
    made me wonder if CFFI was not happy - which would be weird - there are HL bindings for that function
  • h

    hallowed-ocean-84954

    03/18/2023, 10:37 PM
    my guess is roll back to a prod rel of HL and see how that goes
  • h

    hallowed-ocean-84954

    03/18/2023, 10:37 PM
    I am still on 1.12 and it's fine usually
  • h

    hallowed-ocean-84954

    03/18/2023, 10:38 PM
    you're on windows right ?
  • c

    calm-horse-72201

    03/18/2023, 10:38 PM
    yes
  • c

    calm-horse-72201

    03/18/2023, 10:38 PM
    oh, wait, are the CFFI functions not manually added by lime
  • c

    calm-horse-72201

    03/18/2023, 10:38 PM
    to their
    hdll
  • c

    calm-horse-72201

    03/18/2023, 10:39 PM
    if not, then it could be a hashlink bug, i guess, because lime would not be responsible for the absence of the functions
  • h

    hallowed-ocean-84954

    03/18/2023, 10:39 PM
    I don't know how the libs are structured but the source has explicit functions low down in lime
  • a

    able-action-74275

    03/18/2023, 10:39 PM
    alphaPoint is null
    Copy code
    hx
    NativeCFFI.lime_image_data_util_copy_pixels(image, sourceImage, sourceRect, destPoint, alphaImage, alphaPoint, mergeAlpha);
  • c

    calm-horse-72201

    03/18/2023, 10:39 PM
    yes i mentioned that
  • c

    calm-horse-72201

    03/18/2023, 10:39 PM
    but it is also null by default
1...899091...138Latest