Open GargManish opened 6 years ago
Hey did you get any further with this? I am experiencing same issue.
I can see in the showOrThrowError method you linked it calls a method JSStackTrace.format(title, details)
which contains the following code:
.append(frame.getString("methodName"))
.append("@")
.append(stackFrameToModuleId(frame))
.append(frame.getInt("lineNumber"));
Using that to decode your trace touchableHandlePress@165:2877
touchableHandlePress = methodName 165 = stackFrameToModuleId
I believe 165 is the class name, not very helpful though. I wonder if there is a way to convert this to the actual text class name by using the app source map?
Secondly on the point you made about exceptions being grouped in Fabric even though they were separate JS errors, it seems that when the library sends the exception to Crashlytics in native code it is instantiating a new Exceptions in the same place each time so therefore they get grouped. Has anyone found a way to get around this? How do other bug reporting libraries handle this? It means when ever we mark a bug as fixed in Fabric it will just reopen again when another totally different JS error occurs as its marked as the same native (nonfatal) exception
No Crashlytic isn't supporting it. There are other tools like Sentry, BugSnag which can be used to catch react-native and native crash logs.
thanks @GargManish. Are you able to tell me if either of those tools support:
Thank you
Yes its easy to read stack trace. It provides file name, location etc and also provide separate exception instances as well as it also tracks native crashes.
Try using trial account. There are many available tools Sentry and Bugsnag are two of them. I faced issue with Bugsnag in upload proper source map file which had caused not providing js file name but you can further check.
We are trying to integrate Crashlytic in our application (on React Native platform). It's providing complete log traces for the native side but we are facing issue in capturing JS originated exceptions. It's capturing JS exception but not providing complete information to find the crash location, file name etc.
We are getting following logs:
So it's not providing information in which class, line number and method this exception has occurred.
I have tried to integrate react-native-fabric and react-native-fabric-crashlytic but still no luck.
There is one more issue in crashlytic, all JS crashes are collating as single type of issues although issues had occurred on different lines.