Skip to content
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

Assertion in stringrenderer when running text2image #765

Closed
stweil opened this issue Mar 16, 2017 · 3 comments
Closed

Assertion in stringrenderer when running text2image #765

stweil opened this issue Mar 16, 2017 · 3 comments

Comments

@stweil
Copy link
Member

stweil commented Mar 16, 2017

While running the training for frk with a longer training text, I get assertions in stringrenderer.cpp for 5 of 12 fonts. They can be reproduced by running text2image for that text with a single language:

$ text2image --fonts_dir=/usr/share/fonts --font="Proclamate Light, Light" --text=../langdata/frk/frk.training_text --outputbase=/tmp/frk
Stripped 157 unrenderable words
Rendered page 0 to file /tmp/frk.tif
# ...
Rendered page 1163 to file /tmp/frk.tif
Stripped 57 unrenderable words
cluster_text.size() == start_byte_to_box.size():Error:Assert failed:in file ../training/stringrenderer.cpp, line 553
@Shreeshrii
Copy link
Collaborator

Shreeshrii commented Mar 17, 2017

@stweil I think you mean fonts instead of languages in the above.

@stweil
Copy link
Member Author

stweil commented Mar 17, 2017

Yes, thanks. I fixed it in my original post.

@zdenop
Copy link
Contributor

zdenop commented Oct 13, 2018

duplicate to #1781. Closing this because there are more information.

@zdenop zdenop closed this as completed Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants