AquaMail Forum

English - Android => General Discussion => Topic started by: knesz on January 08, 2015, 03:43:38 pm

Title: Mail showed cuted if clicked from widget
Post by: knesz 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
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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.
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz 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.
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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....
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz 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)

Title: Re: Mail showed cuted if clicked from widget
Post by: knesz 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.
----------------------------------------
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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?
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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).
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz 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

Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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!
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz 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
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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...)
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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).
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz 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 :)

Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev 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?
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 12:09:22 pm
Quote
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?

Nothing special. Phone is pure stock, stock wallpaper, stock settings, stock launcher, no root, really nothing special.

In fact, I'm cursed. I installed AquaMail on my wifes Nexus4, also all stock, imported my AquaMail settings and I managed to reproduce behavior also on her phone.
Pictures below.

Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 12:23:16 pm
Ok, new update:

I delete AquaMail on Nexus 4 (third phone) installed, manually added 2 accounts, created widget with Smart Folder and I reproduce behavior. There was no extra custom settings made in AquaMail, all default. That way we can eliminate that there is something with settings...

Screenshots:

Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 12:37:03 pm
Google Apps. Problem also persist on other imap servers.
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 03:29:47 pm
Quote
I have both Nexus 4 and Nexus 5. Could you forward some of your messages to me, to test? Please check your inbox, I'm sending you my private email address.

In the meantime, I am unable to reproduce what you are describing - tested several accounts and several devices.
The only common feature among your friends and you is your geographical place: your wifi bandwidth, your local server, other limitations due to your anti-virus, to a common battery saver app you are using, etc.
Please: check by written all common things among your devices - and post them here. If your issue was common, I'm sure that  other users would have already reported it.
« Last Edit: Today at 01:51:29 pm by Paris Geek »
As mentioned before, all devices have stock Android 5.0.1, stock launcher, no antivirus software or anything similar. Also, I can reproduce issue on 3 different devices with default AquaMail settings. I get this behavior no matter, wether I open message from Smart Folder widget or just one account.
Yes, all devices are in the same region (G3 have English language), but I don't see how this could be the reason.

Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 07:55:34 pm
I tried to shoot a video with an old phone. I know it is bad lighting, but it can be seen messages not fully loaded.
I can do that all day with all messages larger than a screen and on all my devices.

https://www.youtube.com/watch?v=M3PNiZ-Wy9Y
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 08:18:14 pm
Repeat what you have done in the video with 3g (disable wifi)

Repeat again without any data connection
I writed before, that I tried all options.
I also writed, that I can get this behavior with default AquaMail settings on multiple devices.
I'm not a newbie considering tech and mobile app, in my company we also develop Android apps (beside 3D printing and prototyping), so you can be sure, that we tried everything before subscribing and asking on this forum.


Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 08:25:16 pm
Repeat what you have done in the video with 3g (disable wifi)

Repeat again without any data connection
I writed before, that I tried all options.
I also writed, that I can get this behavior with default AquaMail settings on multiple devices.
I'm not a newbie considering tech and mobile app, in my company we also develop Android apps (beside 3D printing and prototyping), so you can be sure, that we tried everything before subscribing and asking on this forum.
Ok.
I am not an Android developer, I was just trying to help.
I know and I really appreciate that. It is also anoying, that on my friends G3, I can reproduce this behavior, but my friend (developer), can't. :)
Like I said, i have bad karma :)
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev on January 11, 2015, 08:30:25 pm
And I'm unable to reproduce it either, Nexus 5 with 5.0.1 or LG G3 with 5.0 (V20f).

The message content is already there, just not being displayed fully by WebView -- kneesz wrote above that if he double taps (or scrolls?), the content does become visible.

So it's not between Aqua and the mail server, or even Aqua and what it tells Android code (WebView) to display...

It's Android's WebView (with changes in 5.0) not displaying what it's told to display.

@kneesz -- can you try one of the old themes, not Material?
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 11, 2015, 08:38:16 pm
And I'm unable to reproduce it either, Nexus 5 with 5.0.1 or LG G3 with 5.0 (V20f).

The message content is already there, just not being displayed fully by WebView -- kneesz wrote above that if he double taps (or scrolls?), the content does become visible.

So it's not between Aqua and the mail server, or even Aqua and what it tells Android code (WebView) to display...

It's Android's WebView (with changes in 5.0) not displaying what it's told to display.

@kneesz -- can you try one of the old themes, not Material?
I Just tried Ligh theme and Dark theme, also same widget themes and I can still get same behavior.
Sorry...
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev on January 12, 2015, 01:05:53 am
>> I Just tried Ligh theme and Dark theme, also same widget themes and I can still get same behavior

Ouch.....
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 15, 2015, 03:42:26 pm
I don't know if I'm the only user, but I can reproduce this behavior on any 5.0.* device.
In fact, I just checked, and I can get same behavior if I open message from widget or from app (tested on Nexus5, LG G3 and Nexus4, all stock). I just tried on all 3 phones.
My friend in the office, also Android programer, never noticed this behavior, untill I demonstrated him oh his phone.
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev on January 15, 2015, 10:04:21 pm
I just tried again, on a Nexus 5, with Smart Folder -- can't reproduce still.

Maybe you always change some settings to something -- which I'm not doing?

Can you perhaps make a video (feel free to share it privately to kmansoft / gmail)?
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 15, 2015, 10:10:52 pm
I just tried again, on a Nexus 5, with Smart Folder -- can't reproduce still.

Maybe you always change some settings to something -- which I'm not doing?

Can you perhaps make a video (feel free to share it privately to kmansoft / gmail)?
Well, I didn't changed anything.
On my phone (Nexus5) it is stock rom, AquaMail from Google Play and maybe some minor settings in the app (loading messages from 3G, etc). Nothing special.
My wifes phone is also stock Nexus4, AquaMail from Google Play, no extra settings (pure default settings).
My friends G3 also stock and I guess some minor settings like signature in the app.

I will make videos tomorow at work on both phones, Nexus5 and G3 and send it to you privately.
As said before, my job should be beta tester instead of owning 3D printing company :)
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 15, 2015, 10:43:39 pm
Again: try with k9 or BlueMail to see if you still see the issue
Why? K9 and BlueMail could be different coded and it can't be compared.
I am Android user since the beginning and I tried (and also purchased) almost all mail clients for Android. I found AquaMail does best job for my needs. With AquaMail and it's Smart Folder widget I can easy filter important mail from other on multiple mail accounts even if I'm on the meetings, in my car etc.
It is possible, that I use software in the different way than other users, and that we will find out tomorrow when I will record video for Kostya.

As I mentioned in almost every post here, I can reproduce this behavior on every Android 5 phone and as I wrote couple of posts ago, I get this behavior from widget and also from the app.
Also, as far as I know, K9 doesn't have mail widget and is useless for me.
Title: Re: Mail showed cuted if clicked from widget
Post by: knesz on January 15, 2015, 11:15:42 pm
Dear knesz, I perfectly know that AquaMail is better than k9 and BlueMail :)

My point was to check other email apps in order to see if the issue is limited to AquaMail or not.

Facts are:
- you are facing a particular issue, not mentioned by any other user
-this issue could not be reproduced by the developer, on the same devices you are using
- you have tried many settings, in AquaMail, without any result

Possibilities to check:
- your country, or Wi-Fi, or 3g, or device language, have specific limitations
- your configuration is specific (a particular account, a provider, a battery saver, an anti-virus, etc.)

After trying some other email apps, thank your for posting your feedback
I will write this one more time and for the last time.
It is pointless to to test other apps, as we don't know how they are coded. Kostya can explain it to you better.
Country, WiFi, 3G and device lanuage have no influence on specific behavior. We checked this.
I wrote almost on every post, that there is nothing special on my (or other configurations). I will write this again, just for you: all roms are stock 5.0.1, we never use or used junk apps as battery savers, anti-virus etc. Accounts are Google accounts (regular Gmail and Google Apps), and IMAP servers. I tried with single accounts and also with multiple accounts.
Also, for the last time, there are no special settings in AquaMail. Downloaded from Google Play and manual settings one of the normal Gmail accounts (that means, that it is not imported from previous backup).
Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev on January 16, 2015, 01:27:16 am
>> I will make videos tomorow at work on both phones, Nexus5 and G3 and send it to you privately.

Great. A picture is often worth a thousand words. I really hope that I'm just missing something.

>> As said before, my job should be beta tester instead of owning 3D printing company :)

Do you find bugs in 3D printers too??? :)

Title: Re: Mail showed cuted if clicked from widget
Post by: Kostya Vasilyev on January 16, 2015, 07:21:28 pm
Reproduced -- thanks to a sample message I got from the OP -- and fixed. Thank you @knesz!