-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SenderService never called... #375
Comments
here's my config. |
How are you integrating ACRA? Ie is the ACRA Manifest and Proguard rules being automatically merged into those of your app? Recommended. If so you should have the ACRA SenderService decalred in you generated AndroidManifest. |
I'm in the same boat as @Ahmedfir. I am upgrading from 4.6.2 to 4.8.2, and my previous configuration worked fine and the new one has changed very little (effectively not at all).
|
Also, I removed any custom crash fields from my manifest and I am using the default manifest and proguard merge (I'm running debug anyway, so proguard is not relevant right now). |
FYI, a breakpoint in the SenderService is never even hit |
In the debugger I can see the SenderService process being started, and switching to it shows logging output, so it looks like it is not hitting my breakpoints due to a process issue.
I will change the manifest process to use the main app process to see what is going on... |
@paulpv debugging won't help because the SenderService is started in a new process. |
Weird! I edited my manifest to override the SenderService:
...and the generated manifest still has it in there!
|
I do see in the code where you test that the service is running under the process name ":acra": So, I will have to fork the code to test this out much further... |
@paulpv |
@william-ferguson-au Understood, but by defining it a second time in my manifest I should be overriding the values.
I still need to tweak the code to get it to run without the hard coded ":acra" process name, and perhaps a little other logic. |
Has the "Approved Reports" logic changed since 4.6.2?
|
The logic of approved reports hasn't changed, but the location and naming convention has. |
I see several unapproved crash reports in app_ACRA-unapproved. |
@william-ferguson-au I'm curious: How do you debug this w/ the SenderService being a separate process? |
I stopped wasting time with a debugger back in about 1992. I diagnose with logging. Good logging will tell you everything you need, even well after the fact. If its not good logging then it needs to be amended. This https://github.com/ACRA/acra/blob/master/src/main/java/org/acra/sender/SenderService.java#L48 is the only thing that would move those reports to approved during startup. But if they were silent reports then they should have been pushed to approved when they were created. |
Hmmm... |
OK, it's possible that slipped through with the reorg. Want to provide a PR for it? |
In the past I had seen problems w/ crashes failing to be sent during shutdown. |
I'd provide a PR if the precise intricacies of how to handle the exception in ReportExecutor were clear to me. |
OK
|
For debugging you can use Android Studio or IDEA. Menu |
OK @paulpv I'm going to close this issue because I think we are all in agreement that SenderService is being called. If |
@william-ferguson-au will do later today, but I can't say for sure if @Ahmedfir's issue was related to this. He is not setting setSendReportsAtShutdown to false. |
@william-ferguson-au I didn't have time today to work on my ACRA stuff. Tomorrow is another day. |
Hi, I think I missed something but I have a problem with setting up arca for my app.
I can see that neither the service or the sender were called. I followed the basic setup steps but couldn't get it to work. I defined my costum sender and a factory that initializes it... but none of these was called...
The text was updated successfully, but these errors were encountered: