question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash on sending report

See original GitHub issue

Issue Description

I want reporting crash in new version of Acra

 Failed to send crash reports for /data/data/[...]/app_ACRA-approved/2017-01-23T22:41:28.770+01:00-IS_SILENT.stacktrace
                                                                        java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String[] org.acra.model.Element.flatten()' on a null object reference
                                                                            at org.acra.sender.HttpSender.remap(HttpSender.java:254)
                                                                            at org.acra.sender.HttpSender.send(HttpSender.java:221)
                                                                            at org.acra.sender.ReportDistributor.sendCrashReport(ReportDistributor.java:107)
                                                                            at org.acra.sender.ReportDistributor.distribute(ReportDistributor.java:74)
                                                                            at org.acra.sender.SenderService.onHandleIntent(SenderService.java:74)
                                                                            at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
                                                                            at android.os.Handler.dispatchMessage(Handler.java:111)
                                                                            at android.os.Looper.loop(Looper.java:194)
                                                                            at android.os.HandlerThread.run(HandlerThread.java:61)

My Application header is:

@ReportsCrashes(formUri = "http://[...]/post.php",
        mode = ReportingInteractionMode.TOAST,
        httpMethod = HttpSender.Method.POST,
        resToastText = R.string.crash_toast_text)

and onCreate method is:

    @Override
    public void onCreate() {

        ACRA.init(this);
        super.onCreate();
    }

Version:

compile ‘ch.acra:acra:4.9.2’

Please fix it

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
F43nd1rcommented, Jan 23, 2017

You can access a compiled version with the fix under

compile 'com.faendir:acra:4.9.3-SNAPSHOT'

repository:

maven {url = "https://oss.jfrog.org/libs-snapshot/" }

Note that this is my working directory and may not always contain a working version, but its a nice temporary solution until a new release is made.

1reaction
DenisZhadancommented, Feb 17, 2017

I think wrong code:

    public void onCreate() {
        ACRA.init(this);
        super.onCreate();
    }

must be:

    public void onCreate() {
        super.onCreate();
        ACRA.init(this);     
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Send usage & crash reports - Google Workspace Admin Help
View your crash reports. Each crash report sent to us is stored in a file on your computer. To open the reports and...
Read more >
Acquiring crash reports and diagnostic logs - Apple Developer
Crash reports from customers who send diagnostic and usage information are presented in the Crashes organizer, as described in Share crash, energy, ...
Read more >
Submitting crash reports - Analyse-it
If Analyse-it crashes or experiences a problem, it creates a crash report and prompts you to send it to us for investigation.
Read more >
Sending a Crash Report - In-Design Plugins | 65bit Software
Sending a Crash Report · Launch the 'Console. · On the left of the dialog that appears, under 'Diagnostic and Usage Information' should...
Read more >
How can I send Apple app crash reports from my iOS device?
Find the Report ; Step 1: Using your mobile iOS device, open the settings menu and press Privacy: ; Step 2: Scroll down...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found