Comments (13)
It works!!! To be more specific, it work exactly what I have been hoping for. From now on, I no longer have to follow the observable stream to hunt the myth of "Callable returned null" or any other error info. This is too awesome to be true.
from rxjava2debug.
It looks like you have it disabled: https://github.com/TonyTangAndroid/RxJava2DebugIssueDemo/blob/master/app/src/main/java/com/github/tonytangandroid/rxjava2debugdemo/App.java
// RxJava2Debug.enableRxJava2AssemblyTracking();
Obvious question: did you try uncommenting it?
from rxjava2debug.
Yes. I have tried to disable or enable it in both use case hoping to generate the different stack. But it is turned out to be the same.
from rxjava2debug.
Hold on. I think I know the reason.
from rxjava2debug.
Nope. It still does not work as expected. Previously, I made a silly mistake. I did not registered the Application
in AndroidManifest.xml
.
I have just registered it and enabled it and I still get the same error.
from rxjava2debug.
Ok. Now I read the stacktrace you posted.
Try using this: RxJava2Debug.enableRxJava2AssemblyTracking(new String[]{"com.github.tonytangandroid"});
from rxjava2debug.
I have just tried it. Still no luck here.
from rxjava2debug.
Oh, you are consuming the error:
new Consumer<Throwable>() {
@Override
public void accept(@NonNull Throwable throwable) throws Exception {
throwable.printStackTrace();
tvResult.setText(throwable.getMessage());
}
},
If you already consume the error, you already have the necessary information to fix the issue; the lib would only show you information you already know about.
The lib will improve the StackTrace of Unhandled exceptions.
What additional info did you expect to receive?
from rxjava2debug.
Aha, it is. After the error consumer has been removed AND removed the new String[]{"com.github.tonytangandroid"}
from RxJava2Debug.enableRxJava2AssemblyTracking(new String[]{"com.github.tonytangandroid"});
, it works!
Please be noted that I have to remove new String[]{"com.github.tonytangandroid"}
and keep
RxJava2Debug.enableRxJava2AssemblyTracking();
to see the expected stack information.
from rxjava2debug.
Before your explanation about error Consumer, I had expected in a wrong way that, even I have consumer to address the throwable, but as long as I print the stack trace of the throwable, it would still show the root cause of the error. This would be more helpful.
And in my project, I have to add an error consumer to address the unhandled case globally. However, this makes me really difficult to track down issues like because the stack trace does not provide any help. And that's the reason why I come across to this repository.
Assume that I still have to consume the error in my subscriber, is there any other way to still see the root cause of any exception as long as the stack trace is printed out?
from rxjava2debug.
I just found why the filtering wasn't working. The filtering won't work when you user UI Thread for all tasks. I'll issue a fix this weekend.
I didn't think about your use case. I can easily modify the lib to offer you something like RxJava2Debug.getEnhancedStackTrace(Throwable t)
🤔
Yeah, this weekend will also be enough for that 👍
from rxjava2debug.
Awesome! Thank you very much for all your time, patience and guidance.
from rxjava2debug.
Try out 1.2.0
👍
from rxjava2debug.
Related Issues (14)
- Does not want work with RxJava 2.2.x HOT 1
- Which version is suitable for Rxjava2.0.1 HOT 1
- Huge performance impact
- RxJava2Debug changes behavior of replay().refCount()
- [Question] Do this library intended to work with Crashlytics only? HOT 1
- RxJava 3 support HOT 1
- NullPointerException in ExceptionUtils HOT 15
- java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.StackTraceElement[].clone()' on a null object reference HOT 3
- RxJava2Debug causing `StackOverflowError` on too complex `CompositeException` HOT 11
- java.lang.Throwable is shown instead of name of concrete exception class implementation HOT 7
- Stacktrace filtering and proguard HOT 1
- Dependency conflict with rxjava2-extensions HOT 3
- Firebase Crashlytics combines multiple DIFFERENT exceptions in one issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxjava2debug.