sentry-native icon indicating copy to clipboard operation
sentry-native copied to clipboard

ANR on NativeModuleListLoader.nativeLoadModuleList

Open stefanosiano opened this issue 1 year ago • 4 comments

Description

It seems NativeModuleListLoader.nativeLoadModuleList may cause an ANR in some cases. Maybe not, but worth investigate it. Appeared on the SDK console

stefanosiano avatar May 22 '24 11:05 stefanosiano

On Android DebugImagesLoader should be caching the debug images, we should do the same in Flutter

markushi avatar May 29 '24 13:05 markushi

I think I saw this issue in production, or a very similar one. I try to find the issue on Monday. It's a long weekend over here, so I might forget. If you believe having an issue might help you feel free to ping me in case I forget.

ueman avatar May 29 '24 18:05 ueman

@ueman do you still have the issue on hand?

buenaflor avatar Jun 20 '24 11:06 buenaflor

Flutter uses Android SDK directly. Android caches debug images as well, so there shouldn't be any problem. In this case the loading of debug images blocked the main thread the first time it was accessed, so nothing was cached. In any case, the culprit is the NDK debug image loading, and probably it's just a coincidence. I'm moving this issue to sentry-native

stefanosiano avatar Jul 10 '24 11:07 stefanosiano

closing this as not reproducible - please comment here if you experience this and we'll reopen

kahest avatar Dec 12 '24 16:12 kahest

https://github.com/getsentry/sentry-java/issues/3925 might help mitigate this.

the serialization/deserialization and sending that data over method channel for each exception is expensive so bringing the data down to 2 debug images should help a lot

buenaflor avatar Dec 12 '24 16:12 buenaflor