Skip to content

Loading Ruby from Rust port crashes the app #605

@fahdfady

Description

@fahdfady

here is a demo project you can run: https://github.com/fahdfady/rust-metacall-testing-ruby

problem

while i was developing metcall-playground and rust-api-handler I noticed that Always loading ruby code (file, or from memory) crashes the entire app.

In rust api handler, adding ruby resulted in the server wouldn't start, going into localhost:3000 shows nothing. and the port 3000 isn't reserved

why am i so sure that the problem is Loading ruby

in the demo project i added these logs to help

Image Image

it crashes after loading ruby
even from memory

extra: after i ctrl c to interrupt

Image

don't know if that means anything, but i think this is a blocking operation that does not end.

and for typescript loader also:

Image

with the error:
FailedCasting(MetaCallNull { })

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions