status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.9k stars 985 forks source link

Sometimes chat gets stucked with history loading state (skeleton) and app gets frozen (Android) #17426

Closed pavloburykh closed 1 year ago

pavloburykh commented 1 year ago

Unfortunately there are no specific steps yet. The issue occurs randomly.

I have faced it once while testing https://github.com/status-im/status-mobile/pull/17417 cc @Parveshdhull .

Below attaching the video and logcat.

logcat_004.log.zip

Status-debug-logs (65).zip

https://github.com/status-im/status-mobile/assets/97245802/53b3b6d8-9c2c-4a5b-a268-32a804e2a508

Additional Information

Parveshdhull commented 1 year ago

Hi @pavloburykh, Thank you very much for reporting the issue.

It's most probably caused by the use of https://github.com/react-native-masked-view in the animated loading skeleton. I faced a similar issue in the debug version, (randomly and in Android only).

Once the chat screen is loaded we replaces the static loading skeleton with an animated one and probably that freezes. Maybe in Android, we keep a static loading skeleton and avoid replacing it.

I can create a PR, but as it happens randomly not sure we can test it reliably.

Parveshdhull commented 1 year ago

Created the PR: https://github.com/status-im/status-mobile/pull/17432, hopefully it will fix the issue :crossed_fingers:

Parveshdhull commented 1 year ago

If we can confirm masked-view is cause of this freeze, we need to remove it and re-implement animated loading skeleton without it.

Parveshdhull commented 3 months ago

Adding for reference:

Issue is also happening in IOS: https://github.com/status-im/status-mobile/issues/20599