ACRA / acra

Application Crash Reports for Android
https://www.acra.ch
Apache License 2.0
6.32k stars 1.13k forks source link

Stopped sending reports through URL #605

Closed radumazi closed 6 years ago

radumazi commented 6 years ago

Hello,

I had a running ACRA setup for about a year, but I recently discovered it's not sending reports anymore. I ran trough previous solutions to my problem, tried different configurations, nothing seems to work.

Details: Version ch.acra:acra:4.9.2

dependencies {
    compile 'ch.acra:acra:4.9.2'
@ReportsCrashes(
        formUri = "<serverUrl>"
)
public class ScrumveeApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        ACRA.init(this);
        registerActivityLifecycleCallbacks(new LifeCycleHandler());
    }
}

Log (made it crash at app startup, this is the log after a crash, so it should at least send the existing logs at startup, but it doesn't)

11-18 10:51:26.179 17050-17050/? D/ACRA: ACRA processName='com.blacks.scrumvee'
11-18 10:51:26.181 17050-17050/? I/ACRA: ACRA is enabled for com.blacks.scrumvee, initializing...
11-18 10:51:26.304 17050-17050/com.blacks.scrumvee D/ACRA: onActivityCreated class com.blacks.scrumvee.StartActivity
11-18 10:51:26.383 17050-17050/com.blacks.scrumvee D/ACRA: onActivityStarted class com.blacks.scrumvee.StartActivity
11-18 10:51:26.384 17050-17050/com.blacks.scrumvee D/ACRA: onActivityResumed class com.blacks.scrumvee.StartActivity
11-18 10:51:32.630 17050-17050/com.blacks.scrumvee D/ACRA: onActivityPaused class com.blacks.scrumvee.StartActivity
11-18 10:51:32.680 17050-17050/com.blacks.scrumvee D/ACRA: onActivityCreated class com.blacks.scrumvee.MainActivity
11-18 10:51:32.868 17050-17050/com.blacks.scrumvee E/ACRA: ACRA caught a RuntimeException for com.blacks.scrumvee
                                                           java.lang.RuntimeException: Unable to start activity ComponentInfo{com.blacks.scrumvee/com.blacks.scrumvee.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'char java.lang.String.charAt(int)' on a null object reference
                                                               at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)
                                                               at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2677)
                                                               at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                               at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1515)
                                                               at android.os.Handler.dispatchMessage(Handler.java:111)
                                                               at android.os.Looper.loop(Looper.java:227)
                                                               at android.app.ActivityThread.main(ActivityThread.java:6100)
                                                               at java.lang.reflect.Method.invoke(Native Method)
                                                               at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:859)
                                                               at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:749)
                                                            Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'char java.lang.String.charAt(int)' on a null object reference
                                                               at com.blacks.scrumvee.MainActivity.onCreate(MainActivity.java:143)
                                                               at android.app.Activity.performCreate(Activity.java:6280)
                                                               at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1131)
                                                               at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2564)
                                                               at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2677) 
                                                               at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                               at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1515) 
                                                               at android.os.Handler.dispatchMessage(Handler.java:111) 
                                                               at android.os.Looper.loop(Looper.java:227) 
                                                               at android.app.ActivityThread.main(ActivityThread.java:6100) 
                                                               at java.lang.reflect.Method.invoke(Native Method) 
                                                               at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:859) 
                                                               at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:749) 
11-18 10:51:32.868 17050-17050/com.blacks.scrumvee D/ACRA: Building report
11-18 10:51:32.885 17050-17050/com.blacks.scrumvee D/ACRA: Writing crash report file /data/user/0/com.blacks.scrumvee/app_ACRA-unapproved/2017-11-18T10:51:32.882+02:00-IS_SILENT.stacktrace
11-18 10:51:32.888 17050-17050/com.blacks.scrumvee D/ACRA: About to start SenderService
11-18 10:51:32.922 17050-17050/com.blacks.scrumvee D/ACRA: Wait for Toast + worker ended. Kill Application ? true
11-18 10:51:32.922 17050-17050/com.blacks.scrumvee D/ACRA: Finishing the last Activity prior to killing the Process
11-18 10:51:32.924 17050-17050/com.blacks.scrumvee D/ACRA: Finished class com.blacks.scrumvee.MainActivity

Thank you

F43nd1r commented 6 years ago

Your log doesn't look complete, the senderservice is missing completely. (Might be the cause of your problem, obviously if senderservice is not started, nothing will be sent. But I'm unaware of any scenario where that could happen)

it should at least send the existing logs at startup, but it doesn't

I don't think that version of acra did acutally send reports on startup.

4.9.2 had a bug with Form reports, try this version: 'com.faendir:acra:4.10.0'. Or go with 5.0.0-alpha14, see https://github.com/F43nd1r/acra/wiki/Migrating

radumazi commented 6 years ago

From the logs I was was under the impression that the sender service was not starting. Actually, because of a authorization change my server was returning 403. So, it's nothing wrong with acra, sorry for my confusion

Thank you

On Nov 20, 2017 2:07 AM, "F43nd1r" notifications@github.com wrote:

Your log doesn't look complete, the senderservice is missing completely. (Might be the cause of your problem, obviously if senderservice is not started, nothing will be sent. But I'm unaware of any scenario where that could happen)

it should at least send the existing logs at startup, but it doesn't

I don't think that version of acra did acutally send reports on startup.

4.9.2 had a bug with Form reports, try this version: 'com.faendir:acra:4.10.0'. Or go with 5.0.0-alpha14, see https://github.com/F43nd1r/acra/wiki/Migrating

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ACRA/acra/issues/605#issuecomment-345561948, or mute the thread https://github.com/notifications/unsubscribe-auth/AGR9-OhE64m0TV7cRihwc2QlHNxqBR7Mks5s4MLAgaJpZM4Qi717 ..