-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
large message bubble backgrounds fail to render #3148
Comments
Tried to reproduce this with the given text using different themes and languages but failed. I don't get any of those |
Seems like this can be caused when rendering large TextViews - http://stackoverflow.com/questions/27444387/issue-on-openglrenderer-path-too-large-to-be-rendered-to-a-texture. Might need to set the layerType to |
I can reproduce it on a LG g2, Cyanogen/Stock Android 5.0.2, TextSecure |
@5boro I'm assuming this is not a consistent thing, and is just with this specifically long text? |
It is consistent, but seems specific to this text. |
might be related to #3134 (white cursor)? |
Just tried a few things, it is length related, and the limit seems to be between 750 and 1000 characters. |
It's not the number of chars, but the number of lines! Tested on dark theme. no blue bubble background, but visible white characters on black background. |
Good catch, but why wasn't @2-4601 able to reproduce it? |
@5boro cause copying your text sample here eliminates all the line breaks, when pasted into TS - At least when I was testing. |
I saved the text (with all 39 lines) to a file and copypasted it to TextSecure from there. |
Are you on Android >5 @McLoo ? |
I can reproduce this now on my Nexus 4, stock Lollipop 5.1. Here's a debug log where I
|
Thanks for the testing all. My guess is that the line-number threshold to set off this error is variable depending on what the device decides is its max OpenGL texture size. |
Yeah, any bubble > 4096px will cause this error, whether we set the LayerType to software or hardware. Even more strangely, if we use a ColorDrawable or RectShape drawable instead of a GradientDrawable or RoundedRectShape drawable, this error doesn't happen. It appears Android doesn't handle rounded corners efficiently, making me wonder if we're better off using nine-patches instead of shape drawables for them. |
Basically we need to not use our own shape-based drawables and move to 9patches. I started the process, but there's a lot of busywork for asset generation and re-aligning stuff. |
Fixed in 2.21.0 |
Message doesn't show when sent and has no background when received.
Its seems to be specific to this piece of text, although it could be length related:
Device info: HTC one M7 GE, stock android 5.0.1, TextSecure 2.14.1
Debug log: https://gist.github.com/anonymous/5d33a6dac7f6873495fd
The text was updated successfully, but these errors were encountered: