-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text drawing/measurement cause fatal error on Alpine LInux #17
Comments
I suspect the problem running on Alpine is related to the underlying bindings having been compiled for GNU libc (see rust-skia/rust-skia#356) and your symlink to the musl libc seems to be giving it indigestion. The discussion over there makes it sound like building the rust components from source is possible (with some modifications to support musl), so maybe it would make sense to generate binaries for If you feel like experimenting, I'd be very curious to see how an |
Hi, @samizdatco I searched a lot and also found that issue. But I'm pretty far from Rust and not a strong Docker user. Anyway, I tried to build
I used the
Found issues like rust-lang/cargo#7154 and rust-lang/rust#59302 If I change I need to run the app asap and it looks like
I suppose I have to compile lib in that environment to solve it. Quickly tried, it compiles and passes tests. So multi-stage build can be used. But I don't stick with the node version, so this Dockerfile works for me:
Sorry for too much verbose explanation, maybe it will be helpful for somebody else. I'll be happy to try something more to run it on alpine if you have ideas. |
Version 0.9.27 adds support for Alpine containers (though you do still need to run |
Hi,
Trying to run it in Docker:
It basically works (using code from readme), but ``fillText()
or
measureText()``` call throws error:I suppose it can be a problem with some system dependencies.
I tried Ubuntu in Docker and it works:
Any ideas?
The text was updated successfully, but these errors were encountered: