Debugging android native error

#1

Hey,

How do you guys debug android native errors?
I got a crash report, but I have no ide how to debug it. I tried to find some info in stackoverflow but without success.

Expo has “Error handling” option with Fabric, but will Fabric give me the same crash report as I am geting from google play console? Also I assume that Fabric is going away because google bought it, and I can’t really setup a account.

Here is my nasty crash report from google play console.

#2

Hey @ryszardrzepa

A quick question before I ask around with the team, is your Expo app detached?

#3

My app is not detached

#4

I’m pinging @jesse who can help you take a look at this. Thanks for bearing with us.

#5

This crash report is not that useful i think, its deep in the bowls of android itself.

Did you get anything higher level, like a Java stack trace of the native issue?

#6

nop, I did not get any report in Sentry, just in google play.

#7

It will be kinda hard to debug this with no reproducible case & lack of like application level debugging. Can you try to reproduce it?

#8

I am not sure yet, how to reproduce the issue. I am using react native maps, lottie animations, and I think one of them can be the issue. I will try to dig into it. Basically, my app works really nice on IOS, and android devices I tested (Samsung galaxy 6 edge, Huawei P10).

You can find my app on:
Expo: https://expo.io/@ryszardrzepa/coffee-cloud
IOS: https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1282358717&mt=8
Android: https://play.google.com/store/apps/details?id=no.coffeecloud.ios

#9

Interesting: So is this S8+ the only device that this crashes on consistently?

#10

@ryszardrzepa Oh this is a fun nice app. Did you use lottie for the done animation?

#11

Not really, I got some crashes today to…
I have to find out what is the best method of fixing native crashes.
This crash report with the java code, is not I am familiar with.
.

#12

Thanks! @edgar. I used lottie just for loading Pin marker, while waiting for data to be fetched.

#13

it looks like

a component in this lib

is throwing the exception because its getting junk data that it doesn’t like.

I’ll open an issue there

1 Like
#14

wow, how did you find out that?
I am using react-native-tab-view, which I think is using “react-native-gesture-handler”

#15

I might be wrong but it was my intuition from looking at that Java stack trace.

#16

Thanks @edgar for tip. Do you think that first screenshot with the crash report can be also related to the /react-native-gesture-handler, or it looks on different issue?

Maybe you could also give a link or a tip how to learn to debug native stack traces?

#17
  1. That particular one is kinda deep in android itself, like libc and the android runtime lib itself. Doesn’t seem to be very useful here.
  2. re debugging native stack traces, like getting to Carnegie Hall, its practice practice practice
#18

I’m sorry but this crash is not related to gesture-handler library. I’ve put more broad explanation on the issue on Github here: https://github.com/kmagiera/react-native-gesture-handler/issues/54#issuecomment-344568674

2 Likes
#19

Thanks @kzzzf for the clarifying that /react-native-gesture-handler is not a issue!

#20

ah, sorry about that, thanks!