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
panicked at 'assertion failed: !result.is_null()' #7
Comments
I have a nearly identical error (note that mine is missing line 6 from above)
Also tested using a filename instead of the On OSX, using: |
@NextTimeJim @joequincy Thank you for reporting it. It seems like a bug of font-kit. I don't have a macOS computer. Could you please test font-kit using |
I'm happy to explore this, but I'm not familiar with Rust development.
from there I ran Running with 'Monaco', there are problemsIf I ran
The Monaco font is installed on my system, so I'm not sure why this is the case. Following on from this, I tried to specify the font when running |
@joequincy Thank you |
Fixed |
Hi, getting a panic irrespective of the input file I try. Only tested so far on macOS with
cargo --version
1.35.0 (6f3e9c367 2019-04-04).`
-> file test.rs
test.rs: c program text, ASCII text
-> export RUST_BACKTRACE=1 && silicon test.rs -o test.png
thread 'main' panicked at 'assertion failed: !result.is_null()', /Users/jamie/.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.17.3/src/context.rs:104:13
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::panicking::default_hook::{{closure}}
2: std::panicking::rust_panic_with_hook
3: std::panicking::begin_panic
4: font_kit::loaders::core_text::Font::rasterize_glyph
5: silicon::font::FontCollection::draw_text_mut
6: silicon::formatter::ImageFormatter::format
7: silicon::main
8: std::rt::lang_start::{{closure}}
9: main
`
The text was updated successfully, but these errors were encountered: