teamon / rsvg

Render SVG into PNG in Elixir
13 stars 3 forks source link

Error on production: exception exit: {on_load_function_failed,'Elixir.RSVG'} #5

Open rafaeliga opened 6 months ago

rafaeliga commented 6 months ago

Hello there!

Got the following error when deploy to production:

  crasher:
    initial call: supervisor:kernel/1
    pid: <0.3748.0>
    registered_name: []
    exception exit: {on_load_function_failed,'Elixir.RSVG'}
      in function  init:run_on_load_handlers/0 
      in call from kernel:init/1 (kernel.erl, line 189)
      in call from supervisor:init/1 (supervisor.erl, line 330)
      in call from gen_server:init_it/2 (gen_server.erl, line 423)
      in call from gen_server:init_it/6 (gen_server.erl, line 390)
    ancestors: [kernel_sup,<0.3734.0>]
    message_queue_len: 0
    messages: []
    links: [<0.3736.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 610
    stack_size: 28
    reductions: 255

I tried to debug the method load_nifs that I think could be the issue, but it seems ok.

This other issue says that does not compile on linux, I can see the rsvg.so file on my priv dir, it means it was compiled, right?

Thanks,

teamon commented 6 months ago

Hey, I never made this package actually working so I can’t help.

See also https://github.com/teamon/resvg/tree/main for (also not working?) alternative 🙃

rafaeliga commented 6 months ago

@teamon Gonna try your other one, thanks!