Author Topic: Mail showed cuted if clicked from widget  (Read 19648 times)

knesz

  • Newbie
  • *
  • Posts: 19
Mail showed cuted if clicked from widget
« on: January 08, 2015, 03:43:38 pm »
First, thanks for great app.

I have an issue with message not showed completly, if I opened it from the widget. The bottom is cuted off, so I have to exit message and klicked it again in the app.
Is this a bug, or am I missing something?

David

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #1 on: January 08, 2015, 05:26:44 pm »
No, it's not normal but I can't reproduce it on my Nexus 5 with official 5.0.1.

Do you see this with every message or just some? Does the device have official 5.0.*, and what is it? A Nexus something?

Do you, by any chance, force "GPU rendering" in "Developer options"?

If not, can you try AquaMail settings -> Debug -> enable "Disable GPU" (first item) and see if the issue goes away?

If it does, it's a bug in the operating system-level GPU rendering code, there are other interesting bugs there, even on a Nexus 5.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

knesz

  • Newbie
  • *
  • Posts: 19
Re: Mail showed cuted if clicked from widget
« Reply #2 on: January 08, 2015, 05:33:22 pm »
Sorry, I forgot to give informations about phone.
It is Nexus 5, stock 5.0.1 rom and stock launcher, developer options are intact.

I can reproduce that behavior with any mail and any account (google or other imap servers).
In fact, I just managed to reproduce same behavior with friends Lg G3, all stock.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #3 on: January 08, 2015, 10:37:28 pm »
Funny, I'm unable to reproduce on either a Nexus 5 or an LG G3, both with Android 5.0.*

Can you try AquaMail settings -> Debug -> enable "Disable GPU" (first item)?

Can you provide more detailed info, these are the things I can think of:

-- how do you exit the app before re-launching from the widget, Home or Back?

-- I assume it's the message list widget (not the counter widget)?

-- does the widget point to the smart folder or a regular folder?

-- any relevant message view options, such as "auto-fit", custom font size (volume buttons), etc?

-- message already loaded fully, or needs to be completed by going to the server?

I've tried a bunch of different ways with respect to above, not seeing it....
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

knesz

  • Newbie
  • *
  • Posts: 19
Re: Mail showed cuted if clicked from widget
« Reply #4 on: January 09, 2015, 03:56:17 pm »
Can you try AquaMail settings -> Debug -> enable "Disable GPU" (first item)?

Did that, no difference.

how do you exit the app before re-launching from the widget, Home or Back?

It is in my habbit, that I allways exit applications with "back"

I assume it's the message list widget (not the counter widget)?

I have message list widget, Smart folder

any relevant message view options, such as "auto-fit", custom font size (volume buttons), etc?

Pure default settings, no extra customise

message already loaded fully, or needs to be completed by going to the server?

Message is loaded completely, I can reproduce that with same message anytime, even if it is loaded by app

Is there any chance to export and send you my configuration file, but without login informations? Or maybe I could delete accounts but leave settings, make backup and send it to you? (with fake account, if necesary)


knesz

  • Newbie
  • *
  • Posts: 19
Re: Mail showed cuted if clicked from widget
« Reply #5 on: January 09, 2015, 04:15:43 pm »
One more thing we just noticed,

When message is opened, there is white screen reserved for the rest of the body, but when I scrolled message, it is just white backgroung without text.
Update: during writing this message, I tried some more things:
- to be sure, I disabled GPU in settings and restart phone. Same thing.
Then I tried something, I never tried before, when message is semi loaded, I double-clicked and all of the missing content appeared and message is loaded as it should be.

Below is also text from my coleague:

---------------------------------------
We observed:

it might be "mail image" (or its size - something used for operation such as "clip region") is calculated before mail content is fully loaded (css, images) - and not refreshed later
So when mail opens, scroll height seems right, but from some point on, there is no image, just empty space.
At scroll this sometimes changes, shows a little more image, but not yet all of it.
At zoom, this seems to be recalculated again, and then mail is shown full.

It seems worse with GPU enabled, but even disabling it does not always prevent it.
----------------------------------------

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #6 on: January 09, 2015, 04:51:19 pm »
Sign.

Android 4.4 received a major update to the WebView (HTML rendering) component, and it's a major regression in terms of stability (I have dozens of crashes in system code in my Google Play developer console).

Android 5.0 got an update to WebView again... It would be naive to think that there are no new bugs. And it does have this new feature where it will render just what's visible on the screen, not all content (like previous versions did).

In addition, GPU rendering itself has some interesting bugs, even without WebView.

But this doesn't tell us why I'm unable to reproduce on a Nexus 5 (5.0.1 stock) or LG G3 (V20f).

Can you check system settings -> accessibility, if you have any apps listed there (accessibility proper, screen readers, notification enhancers, password management) and if there are, try turning them off?
« Last Edit: January 09, 2015, 05:02:34 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #7 on: January 09, 2015, 05:10:13 pm »
Oh, the new rendering mode is enabled by default:

http://developer.android.com/reference/android/webkit/WebView.html#enableSlowWholeDocumentDraw()

Quote
For apps targeting the L release, WebView has a new default behavior that reduces memory footprint and increases performance by intelligently choosing the portion of the HTML document that needs to be drawn. These optimizations are transparent to the developers. However, under certain circumstances, an App developer may want to disable them: 1. When an app uses onDraw(Canvas) to do own drawing and accesses portions of the page that is way outside the visible portion of the page. 2. When an app uses capturePicture() to capture a very large HTML document. Note that capturePicture is a deprecated API. Enabling drawing the entire HTML document has a significant performance cost. This method should be called before any WebViews are created.

I could call this function and hopefully it would fix the issue, but I'm concerned about the "significant performance cost", so would rather wait for you to check accessibility.

That accessibility related apps can mess up WebView is a known issue since 4.4. No interest from Google (Android 4.4 was rushed, 5.0 was rushed even more, and as for bug reports -- they ignore them, and then a year or so later close as "obsolete" without checking if they still apply).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

knesz

  • Newbie
  • *
  • Posts: 19
Re: Mail showed cuted if clicked from widget
« Reply #8 on: January 09, 2015, 05:49:29 pm »
Thanks for the reply.
Maybe you could add this fix to settings, opt-out?
If you will do this fix, I could be glad to beta test it before publish new version to market.

One note, in settings I have:
Message view:
Browser-like zoom, Auto-fit andImage previews - all on (first 3 checkboxes)

Network:

both Wifi and Mobile data, Show images - on


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #9 on: January 09, 2015, 06:20:53 pm »
Can you try with Auto-Fit off?

I've tried both ways and it made no difference for me (works fine both ways), maybe it'll be different for you?

And what about accessibility?

Yes, another setting... Maybe I need a whole settings section -- "things that may be messed up with your Android device" and a list of checkboxes for the various things.

I'm really disgusted by the situation though, and how it keeps getting worse, not better, over time... But Android now has ripple effects! and shadows (which don't work right either)! hooray!
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

knesz

  • Newbie
  • *
  • Posts: 19
Re: Mail showed cuted if clicked from widget
« Reply #10 on: January 09, 2015, 07:45:23 pm »
I also tried to disable Autofit, same thing.

Please understand, that I'm not nagging or criticising your app, it is far best on the market, and I tried them basicly all.
All I'm trying to do is to tell you what "problem" I have, and to help to improve it. We are 3 man company and we all purchaced Aquamail  :)
Also, my colegue is also android programer, that is why I gave you some detailed informations of what could be the reason for that behavior.

Also, please keep in mind, that for some reason, I have bad karma, and I find bugs in apps where no one else could :) (I should be professional beta tester).

So, if there is anything I can do to help improve AquaMail, here I am :)

Regards
« Last Edit: January 09, 2015, 07:50:08 pm by knesz »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #11 on: January 10, 2015, 09:17:13 pm »
Oh, I'm sure you didn't mean it that was, and my comment about "being disgusted with the situation" was *NOT* directed at you -- rather at Google!

I'm going to make a custom test build for you a bit later tonight, with this new "optimized rendering" in WebView disabled.

I know what you mean about "bad karma" (except I call it "jinxed", not wanting to imply my own responsibility for those unhappy things) -- I've ran into many Android bugs that other people haven't (so much that one of Google's Android developers even wrote as much in response to one of my bug reports...)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #12 on: January 10, 2015, 11:12:08 pm »
Alllrighty, and here it is:

http://www.aqua-mail.com/download/AquaMail-market-1.5.1.12.7-lollipop-webview-test-1.apk

I've tried it with a few HTML messages (with images and more), not seeing any dramatic performance decrease.

But then those messages weren't that large (not in the hundreds of kilobytes that do exist out there, like "special deals of the week" and other promos).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

knesz

  • Newbie
  • *
  • Posts: 19
Re: Mail showed cuted if clicked from widget
« Reply #13 on: January 10, 2015, 11:27:20 pm »
Thanks for the quick reply.

I tried test version, but I get same error, no difference. Attached are the screenshoot of the message opened from widget, from the app and also program version to be sure.

Sorry :)


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12742
Re: Mail showed cuted if clicked from widget
« Reply #14 on: January 11, 2015, 01:16:06 am »
Bloody hell! :)

Trying to think of anything that would affect the GPU maybe.

Live wallpapers? Screen savers? Anything? That yours and your friend's phones have in common?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/