Skip to content
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

[#10119] Android app UI is slow after background #10120

Merged
merged 1 commit into from
Mar 4, 2020

Conversation

flexsurfer
Copy link
Member

@flexsurfer flexsurfer commented Mar 2, 2020

partially f i x e s #10119

@flexsurfer flexsurfer requested review from cammellos, yenda and rasom March 2, 2020 16:04
@flexsurfer flexsurfer requested a review from a team as a code owner March 2, 2020 16:04
@flexsurfer flexsurfer self-assigned this Mar 2, 2020
@ghost
Copy link

ghost commented Mar 2, 2020

Pull Request Checklist

  • Docs: Updated the documentation, if affected
  • Docs: Added or updated inline comments explaining intention of the code
  • Tests: Ensured that all new UI elements have been assigned accessibility IDs
  • Tests: Signaled need for E2E tests with label, if applicable
  • Tests: Briefly described what was tested and what platforms were used
  • UI: In case of UI changes, ensured that UI matches Figma
  • UI: In case of UI changes, requested review from a Core UI designer
  • UI: In case of UI changes, included screenshots of implementation

@status-im-auto
Copy link
Member

status-im-auto commented Mar 2, 2020

Jenkins Builds

Click to see older builds (21)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b486f67 #1 2020-03-02 16:14:45 ~9 min ios 📦ipa 📲
✔️ b486f67 #1 2020-03-02 16:27:58 ~23 min android 📦apk 📲
✔️ b486f67 #1 2020-03-02 16:27:58 ~23 min android-e2e 📦apk 📲
✔️ 845e06c #2 2020-03-02 18:58:16 ~10 min ios 📦ipa 📲
✔️ 845e06c #2 2020-03-02 19:09:26 ~22 min android 📦apk 📲
✔️ 845e06c #2 2020-03-02 19:10:29 ~23 min android-e2e 📦apk 📲
✔️ 73e4e3f #3 2020-03-02 19:33:52 ~10 min ios 📦ipa 📲
✔️ 73e4e3f #3 2020-03-02 19:44:23 ~20 min android-e2e 📦apk 📲
✔️ 73e4e3f #3 2020-03-02 19:45:10 ~21 min android 📦apk 📲
✔️ 4be9b14 #4 2020-03-02 20:19:18 ~10 min ios 📦ipa 📲
✔️ 4be9b14 #4 2020-03-02 20:30:52 ~21 min android 📦apk 📲
✔️ 4be9b14 #4 2020-03-02 20:30:52 ~21 min android-e2e 📦apk 📲
✔️ 03c4580 #5 2020-03-03 09:38:49 ~11 min ios 📦ipa 📲
✔️ 03c4580 #5 2020-03-03 09:48:05 ~20 min android-e2e 📦apk 📲
✔️ 03c4580 #5 2020-03-03 09:48:05 ~20 min android 📦apk 📲
✔️ 7d750a5 #7 2020-03-03 10:46:16 ~10 min ios 📦ipa 📲
✔️ 7d750a5 #7 2020-03-03 10:54:45 ~19 min android-e2e 📦apk 📲
✔️ 7d750a5 #7 2020-03-03 10:54:45 ~19 min android 📦apk 📲
✔️ 40948b6 #8 2020-03-03 11:12:13 ~10 min ios 📦ipa 📲
✔️ 40948b6 #8 2020-03-03 11:26:05 ~23 min android-e2e 📦apk 📲
✔️ 40948b6 #8 2020-03-03 11:26:10 ~24 min android 📦apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 80afe9d #9 2020-03-04 09:26:14 ~9 min ios 📦ipa 📲
✔️ 80afe9d #9 2020-03-04 09:34:13 ~18 min android-e2e 📦apk 📲
✔️ 80afe9d #9 2020-03-04 09:40:37 ~24 min android 📦apk 📲
✔️ d879c5b #10 2020-03-04 11:38:04 ~11 min ios 📦ipa 📲
✔️ d879c5b #10 2020-03-04 11:50:08 ~24 min android-e2e 📦apk 📲
✔️ d879c5b #10 2020-03-04 11:50:08 ~23 min android 📦apk 📲


(cond
us?
(handle-update-from-contact-request contact)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code was doing nothing important?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing :) но это не точно :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nice, that's very comforting! :)

@rasom
Copy link
Contributor

rasom commented Mar 3, 2020

If that's because of :dispatch-later queuing, can we try :utils/dispatch-later instead?

@flexsurfer flexsurfer changed the title [#10119] Android app UI is slow after backgorund [#10119] Android app UI is slow Mar 3, 2020
@flexsurfer
Copy link
Member Author

@Serhy could you please test this one when joining public chat with thousands of messages

@Serhy
Copy link
Contributor

Serhy commented Mar 3, 2020

Something is wrong.
With latest https://status-im-prs.ams3.digitaloceanspaces.com/StatusIm-200303-110209-40948b-pr-universal.apk / https://i.diawi.com/pEgCzY builds after new account is created/recovered there is endless spinner instead (+) button.
Fresh build installed.

After I re-open app and try to loging then a sql: no rows in result set error appears.

These are the logs after account created:
loagcat.log

@flexsurfer
Copy link
Member Author

@Serhy probably it's latest develop, not this PR :(

@churik
Copy link
Member

churik commented Mar 4, 2020

@flexsurfer can confirm #10120 (comment) - endless spinner with builds from this PR and works normally in latest develop (nightly 04/03/2020)

@flexsurfer
Copy link
Member Author

@Serhy @churik thanks, fixed

@Serhy
Copy link
Contributor

Serhy commented Mar 4, 2020

@flexsurfer I tested this build on Galaxy Note 4 and doesn't look good (it got the similar behavior to what we had before moving processing of messages into status-go)

So with https://status-im-prs.ams3.digitaloceanspaces.com/StatusIm-200303-110209-40948b-pr-universal.apk build when I join public chat having 1000+ messages during last 24h (stickers in my case), - then app freezes while all messages are coming up to 40-43sec (video https://drive.google.com/file/d/15jLN7ElNjHWicFpo9tubsXDg51jDP76b/view?usp=sharing)

While there are no lags at all when joining the same public chat in nightly (4th March) build.

@flexsurfer flexsurfer force-pushed the bug/filters-on-new-contact branch from 80afe9d to d879c5b Compare March 4, 2020 11:25
@flexsurfer
Copy link
Member Author

thanks @Serhy , ok so i reverted this changes, and now this PR only fixes performance issue when open app from background

how to repro

  1. hide app in background,
  2. send lots of message to this user or public chat
  3. open from background after 5-10m

@flexsurfer flexsurfer requested review from rasom and vitvly March 4, 2020 11:50
@flexsurfer flexsurfer changed the title [#10119] Android app UI is slow [#10119] Android app UI is slow after background Mar 4, 2020
@status-im-auto
Copy link
Member

99% of end-end tests have passed

Total executed tests: 96
Failed tests: 1
Passed tests: 95

Failed tests (1)

Click to expand
1. test_add_to_contacts

Device 2: Looking for a message by text: 'hello'
Device 2: Wait for ChatElementByText

Device 2: 'ConnectionStatusText' is still visible on the screen after 60 seconds

Device sessions

Passed tests (95)

Click to expand
1. test_can_see_all_transactions_in_history
Device sessions

2. test_install_pack_and_send_sticker
Device sessions

3. test_send_message_in_group_chat
Device sessions

4. test_login_with_new_account
Device sessions

5. test_clear_history_of_group_chat_via_group_view
Device sessions

6. test_timestamp_in_chats
Device sessions

7. test_password_in_logcat_sign_in
Device sessions

8. test_logcat_recovering_account
Device sessions

9. test_modify_transaction_fee_values
Device sessions

10. test_public_chat_clear_history
Device sessions

11. test_need_help_section
Device sessions

12. test_send_and_open_links
Device sessions

13. test_mobile_data_usage_popup_stop_syncing
Device sessions

14. test_mobile_data_usage_settings
Device sessions

15. test_create_new_group_chat
Device sessions

16. test_sign_typed_message
Device sessions

17. test_user_can_switch_network
Device sessions

18. test_mobile_data_usage_popup_continue_syncing
Device sessions

19. test_home_view
Device sessions

20. test_open_google_com_via_open_dapp
Device sessions

21. test_send_message_to_newly_added_contact
Device sessions

22. test_share_contact_code_and_wallet_address
Device sessions

23. test_make_admin_member_of_group_chat
Device sessions

24. test_connection_is_secure
Device sessions

25. test_add_account_to_multiaccount_instance_private_key
Device sessions

26. test_refresh_button_browsing_app_webview
Device sessions

27. test_long_press_to_delete_1_1_chat
Device sessions

28. test_can_add_existing_ens
Device sessions

29. test_transaction_wrong_password_wallet
Device sessions

30. test_public_chat_messaging
Device sessions

31. test_unread_messages_counter_public_chat
Device sessions

32. test_delete_one_to_one_chat_via_delete_button
Device sessions

33. test_long_press_to_delete_public_chat
Device sessions

34. test_text_message_1_1_chat
Device sessions

35. test_delete_public_chat_via_delete_button
Device sessions

36. test_can_use_purchased_stickers_on_recovered_account
Device sessions

37. test_open_transaction_on_etherscan
Device sessions

38. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

39. test_contact_profile_view
Device sessions

40. test_logcat_backup_recovery_phrase
Device sessions

41. test_delete_group_chat_via_delete_button
Device sessions

42. test_start_chat_with_ens
Device sessions

43. test_add_and_remove_contact_from_public_chat
Device sessions

44. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

45. test_open_blocked_site
Device sessions

46. test_open_chat_by_pasting_public_key
Device sessions

47. test_ens_username_recipient
Device sessions

48. test_token_with_more_than_allowed_decimals
Device sessions

49. test_fetch_more_history_in_empty_chat
Device sessions

50. test_switch_users_and_add_new_account
Device sessions

51. test_add_account_to_multiaccount_instance_generate_new
Device sessions

52. test_copy_contact_code_and_wallet_address
Device sessions

53. test_send_transaction_from_daap
Device sessions

54. test_send_two_transactions_one_after_another_in_dapp
Device sessions

55. test_message_marked_as_sent_in_1_1_chat
Device sessions

56. test_long_press_delete_clear_all_dapps
Device sessions

57. test_copy_and_paste_messages
Device sessions

58. test_deploy_contract_from_daap
Device sessions

59. test_back_forward_buttons_browsing_website
Device sessions

60. test_password_in_logcat_creating_account
Device sessions

61. test_add_custom_token
Device sessions

62. test_sign_message_from_daap
Device sessions

63. test_group_chat_system_messages
Device sessions

64. test_dapps_permissions
Device sessions

65. test_request_public_key_status_test_daap
Device sessions

66. test_logcat_send_transaction_from_wallet
Device sessions

67. test_log_level_and_fleet
Device sessions

68. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

69. test_recover_account_from_new_user_seedphrase
Device sessions

70. test_user_can_complete_tx_to_dapp_when_onboarding_via_dapp_completed
Device sessions

71. test_send_two_transactions_in_batch_in_dapp
Device sessions

72. test_ens_in_public_and_1_1_chats
Device sessions

73. test_block_user_from_public_chat
Device sessions

74. test_fetching_balance_after_offline
Device sessions

75. test_logcat_sign_message_from_daap
Device sessions

76. test_offline_status
Device sessions

77. test_wallet_set_up
Device sessions

78. test_manage_assets
Device sessions

79. test_add_new_group_chat_member
Device sessions

80. test_offline_messaging_1_1_chat
Device sessions

81. test_decline_invitation_to_group_chat
Device sessions

82. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

83. test_send_token_with_7_decimals
Device sessions

84. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

85. test_pass_phrase_validation
Device sessions

86. test_send_emoji
Device sessions

87. test_filters_from_daap
Device sessions

88. test_redirect_to_public_chat_tapping_tag_message
Device sessions

89. test_pair_devices_sync_one_to_one_contacts
Device sessions

90. test_logcat_send_transaction_from_daap
Device sessions

91. test_send_eth_from_wallet_to_address
Device sessions

92. test_send_stt_from_wallet
Device sessions

93. test_messaging_in_different_networks
Device sessions

94. test_collectible_from_wallet_opens_in_browser_view
Device sessions

95. test_insufficient_funds_wallet_positive_balance
Device sessions

@Serhy
Copy link
Contributor

Serhy commented Mar 4, 2020

No bugs found in latest build: opening app from background performance issue not reproduced, #10120 (comment) (when moving between screens also not reproduced).
With @churik help we did not see any regressions

Lets merge, @flexsurfer

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
@flexsurfer flexsurfer force-pushed the bug/filters-on-new-contact branch from d879c5b to 5f2b29e Compare March 4, 2020 13:57
@flexsurfer flexsurfer merged commit 5f2b29e into develop Mar 4, 2020
@delete-merged-branch delete-merged-branch bot deleted the bug/filters-on-new-contact branch March 4, 2020 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants