WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

abort

Open sentry[bot] opened this issue 2 years ago • 12 comments

Sentry Issue: WORDPRESS-ANDROID-2GBT

SIGABRT: Abort
  ?, in abort
  ?, in __android_log_assert
  ?
  ?
  ?
...
(19 additional frame(s) were not displayed)

sentry[bot] avatar Nov 02 '23 17:11 sentry[bot]

Fails
:no_entry_sign: Please add a feature label to this issue. e.g. 'Stats'

Generated by :no_entry_sign: dangerJS

Sentry issue: JETPACK-ANDROID-7YH

sentry[bot] avatar Nov 02 '23 17:11 sentry[bot]

libhermes-executor-release
{virtual override thunk}
libhermes-executor-release
facebook::react::JSIExecutor::handleMemoryPressure
libreactnativejni
libreactnativejni
libreactnativejni
facebook::jni::detail::MethodWrapper<T>::dispatch
libreactnativejni
facebook::jni::detail::FunctionWrapper<T>::call

These logs show that the crash is related to React native and the crash is occurring on only low-level devices.

irfano avatar Nov 02 '23 17:11 irfano

After checking the Sentry events, seems it's more prone to happen on specific device families:

Screenshot 2023-11-03 at 10 37 07 Screenshot 2023-11-03 at 10 37 13

TECNO and Infinix are the top two.

On the other hand, I noticed that Sentry also tags with device.class as low all of the events. Considering the stack trace and this line related to memory pressure facebook::react::JSIExecutor::handleMemoryPressure, I think we can say that this is likely to be related to memory issues on low-end devices.

fluiddot avatar Nov 03 '23 09:11 fluiddot

From some of the events, I'm seeing an issue of attempts to perform a write operation in the database while the thread that the operation is being attempted on is locked in EditPostRepository's updateAsync.

I'm also seeing Timeout reached before response from requestGetHtml.

I'll keep checking the events to see what else I can find.

geriux avatar Nov 03 '23 16:11 geriux

I couldn't reproduce the issue but I did find that the app is fetching all of the pages when entering the Pages view. I believe this could be related since it can consume a lot of memory in lower-end devices.

From the events, I could see crashes when fetching pages e.g:

d/WordPress-API: : ListStore: Loading next page

I think this could also be related to this ticket https://github.com/wordpress-mobile/WordPress-Android/issues/19320

I also saw that when any update is triggered within the editor, it triggers getPagesFromDb which I believe it shouldn't until the editor is closed and it's saving the last changes, I'll create a GitHub issue for this one.

geriux avatar Nov 07 '23 12:11 geriux

... facebook::react::JSIExecutor::handleMemoryPressure ...

In the stack trace, there's a call to a function that references memory pressure. Following https://github.com/wordpress-mobile/WordPress-Android/issues/19516#issuecomment-179838258, the theory about low memory issues in low-end devices seems quite plausible.

fluiddot avatar Jan 17 '24 16:01 fluiddot

Sentry Issue: WORDPRESS-ANDROID-2VH0

sentry[bot] avatar Mar 01 '24 01:03 sentry[bot]

Sentry Issue: WORDPRESS-ANDROID-2VJW

sentry[bot] avatar Mar 01 '24 01:03 sentry[bot]

Hey @geriux 👋 I'm pinging you just because you are still the assignee. Is this issue still investigated/actionable?

antonis avatar Mar 19 '24 16:03 antonis

Hey! 👋

I'm pinging you just because you are still the assignee. Is this issue still investigated/actionable?

Yeah, the original issue is still related to low memory on low-end devices. The last report we got was in 24.2.

The latest two comments linking to other Sentry issues appear to be a different thing, as it is happening on high-end devices.

From what I could see, those are happening when making a lot of calls to post formats, I suspect it might be something similar to fetching all of the user's pages, if they have a lot of data I suspect the app starts to run out of memory because of that.

geriux avatar Mar 20 '24 09:03 geriux

Sentry Issue: JETPACK-ANDROID-82S

sentry[bot] avatar Mar 27 '24 11:03 sentry[bot]

Thanks for reporting! 👍

dangermattic avatar May 30 '24 09:05 dangermattic

Fixed by #20760

irfano avatar May 30 '24 09:05 irfano