Giter VIP home page Giter VIP logo

Comments (5)

bodiam avatar bodiam commented on September 25, 2024 1

@dxxvi good question. Due to our use of resource loading, reflection, etc, it might not be very straightforward to make it run on GraalVM, and GraalVM isn't part of our build matrix at the moment. So let's say that at the moment, GraalVM isn't supported.

However, it would be great if we did support it. If you have some suggestions, or maybe (part of) a PR which we could use a a starting point, that would be great.

In this case, I don't think it's the reflection which is biting you, but the resource loading. The GraalVM normally needs to be told which resources it should include in the binary, and that probably didn't happen here which is why you're running into the null expression.

from datafaker.

snuyanzin avatar snuyanzin commented on September 25, 2024 1

137 exit status is usually related to out of memory, probably you need to increase it.

I was able to reproduce the reported issue however it seems not an issue of datafaker,
it is more an issue of how image was created because while creation of image we should keep in mind all resource files for datafaker.

probably should follow this while image creation
https://www.graalvm.org/22.0/reference-manual/native-image/Resources/

from datafaker.

kingthorin avatar kingthorin commented on September 25, 2024

Instantiate the faker before you try to use it?

from datafaker.

bodiam avatar bodiam commented on September 25, 2024

I've tried to reproduce the issue, but I can't compile the application:

    [creator]     ================================================================================
    [creator]     GraalVM Native Image: Generating '/layers/paketo-buildpacks_native-image/native-image/demo.DemoApplication' (static executable)...
    [creator]     ================================================================================
    [creator]     [1/7] Initializing...                                           (42.5s @ 0.31GB)
    [creator]      Version info: 'GraalVM 22.3.2 Java 17 CE'
    [creator]      Java version info: '17.0.7+7-LTS'
    [creator]      C compiler: gcc (linux, x86_64, 7.5.0)
    [creator]      Garbage collector: Serial GC
    [creator]      1 user-specific feature(s)
    [creator]      - org.springframework.aot.nativex.feature.PreComputeFieldFeature
    [creator]     Error: Image build request failed with exit status 137
    [creator]     unable to invoke layer creator
    [creator]     unable to contribute native-image layer
    [creator]     error running build
    [creator]     exit status 137
    [creator]     ERROR: failed to build: exit status 1

Suggestions?

from datafaker.

kingthorin avatar kingthorin commented on September 25, 2024

No input from the reporter since last June. Closing due to lack of input/evidence. If you have further details to add please comment and we could consider re-opening.

from datafaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.