wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.97k stars 1.32k forks source link

Increasing Lag While Adding to Posts #9811

Open ChrissiePollock opened 5 years ago

ChrissiePollock commented 5 years ago

At the beginning, when writing the post, there is no lag. The lag appears progressively.

It seems that if the number of words increases, the delay increases too.

(in the last version of the app, the default editor ran ok, but the beta had the lag.)

With 300 words it runs ok, the lag is not visible, is not appreciable.

With 1200 words the lag is obvious.

With 2400 words: about 1 second.

It occurs with all posts.

The issue continue using 3g, 4g, or WiFi. Even disconnecting all, and editing without connection, the issue continues.

The lag appears by selecting text too.

The issue happens in both sites and also on another WordPress account.

Possible issues from logs:

89 - [May-03 05:01 PROFILING] Visual Editor Startup: begin
90 - [May-03 05:01 PROFILING] Visual Editor Startup: 0 ms, EditorFragment.onCreate
91 - [May-03 05:01 PROFILING] Visual Editor Startup: 58729 ms, WPMainActivity.onResume
92 - [May-03 05:01 PROFILING] Visual Editor Startup: end, 58729 ms

79 - [May-03 04:53 PROFILING] Visual Editor Startup: 0 ms, EditorFragment.onCreate
80 - [May-03 04:53 PROFILING] Visual Editor Startup: 1360934 ms, WPMainActivity.onResume
81 - [May-03 04:53 PROFILING] Visual Editor Startup: end, 1360934 ms

Also references to shortcode:

29 - [May-03 05:00 POSTS] unknown shortcode - debéis

The post with the "debéis" and the "shortcode" reference was not a real post. They didn't write it as an original post in their blog. They made It by copying an external ebook and pasting in the editor as a draft, to make easily a large post with a known size and number of words. But now, the draft is gone, perhaps deleted.

The word "debéis" is a spanish word that means "you must" and It is very common.

Free space stated is 27,898MB, which seems like it should be fine.

Video examples:

http://isaspi.blog/vid_20190428_115938_692/

The post in the first video (showing the lag by selecting text) was made by copying an external ebook and pasting in the editor as a draft, to make easily a large post with a known size and number of words. This time, with a block (300 words) from an ebook. The customer was copying and pasting several times to control the size of the resulting post.

http://isaspi.blog/vid_20190428_125344_612/

The post in the second video (showing lag by typing chars) was an original post from a blog with images, and some formated text (uppercase, bold, italics..). It was made entirely by typing. However the post has some quotes from other ebooks, from others authors, and they have been copied and pasted from an external ebook, on the post. You can see the post at:

https://isaspi.blog/2019/04/10/alpdm-iv-4-alegria-confianza-y-aspiracion-unica/

Note the word "debéis" appears several times, in this post too.

They don't use "embeds" or "shortcodes"( voluntarily, al least). However, it's possible that, by copying, pasting and formatting text, any shortcode sequence may appear randomly.

The problem is the same using the block editor. There are logs for the issue after using the block editor. Some pertinent lines include:

28 - [May-07 08:22 API] Volley error on https://public-api.wordpress.com/rest/v1.1/me/sites/?fields=ID%2CURL%2Cname%2Cdescription%2Cjetpack%2Cvisible%2Cis_private%2Coptions%2Cplan%2Ccapabilities%2Cquota%2Cicon%2Cmeta&locale=es_ES - exception: java.net.UnknownHostException: Unable to resolve host "public-api.wordpress.com": No address associated with hostname
29 - [May-07 08:22 API] StackTrace: com.android.volley.NoConnectionError: java.net.UnknownHostException: Unable to resolve host "public-api.wordpress.com": No address associated with hostname
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:158)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:114)
Caused by: java.net.UnknownHostException: Unable to resolve host "public-api.wordpress.com": No address associated with hostname
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:141) 

1991655-zen

stale[bot] commented 4 years ago

This issue has been marked as stale because:

Please comment with an update if you believe this issue is still valid or if it can be closed. This issue will also be reviewed for validity and priority (cc @designsimply).