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

ArrayIndexOutOfBoundsException when loading a non-ASCII text source #8

Closed
danbernier opened this Issue Aug 25, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@danbernier
Owner

danbernier commented Aug 25, 2012

Sometimes, when loading a text source with non-ASCII characters, you'll get this exception:

Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: 0
    at wordcram.WordSorterAndScaler.sortAndScale(WordSorterAndScaler.java:27)
    at wordcram.WordCram.getWordCramEngine(WordCram.java:727)
    at wordcram.WordCram.drawAll(WordCram.java:772)
    ...

The problem is that cue.language, for different reasons, guesses that all your words are stop-words. (Maybe your text source is encoded in Unicode, maybe all your words are single letters.) AFAICT, there's not much I can do to directly solve this problem, except improve the error messages. Which is what this ticket is for.

@danbernier

This comment has been minimized.

Show comment
Hide comment
@danbernier

danbernier Aug 25, 2012

Owner

Released in 0.5.6

Owner

danbernier commented Aug 25, 2012

Released in 0.5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment