Code Monkey home page Code Monkey logo

Comments (5)

SalomonBrys avatar SalomonBrys commented on July 19, 2024

Maybe that's the issue: "ACRA is disabled for ch.ione.safefingerprint" ?

from anr-watchdog.

rssc avatar rssc commented on July 19, 2024

Hi, thanks for the reply.

Fair assumption. However, I tested it with a regular NullPointerException, which was caught without problems. My assumption was that it says ACRA is disabled because it couldn't catch the exception, which seems to be the case.
So I think the error still goes back to what it says:

Caused by: java.io.NotSerializableException: com.github.anrwatchdog.ANRError$$

Adding "implements Serializable" to the static inner class "$" fixes that one, but then I get a serializable error on the anonymous inner class:

Caused by: java.io.NotSerializableException: com.github.anrwatchdog.ANRError$1

which I don't even know which one it is. Might be this one here:

final Map<Thread, StackTraceElement[]> stackTraces = new TreeMap<Thread, StackTraceElement[]>(new Comparator<Thread>() {
...

(at least that looks most similar to what decompiling ANRError$1.class gives me).

But I am not familiar enough with the code to fix that one.

Any thoughts?

Thanks!

from anr-watchdog.

SalomonBrys avatar SalomonBrys commented on July 19, 2024

Well, the exception was not serializable indeed, which makes ACRA crash.
I will publish v1.2.0 later today that corrects this issue.
Basically, I've stopped attaching the Map<Thread, StackTraceElement[]> of running threads / stacktraces to the exception considering that:

  • It's not serializable
  • It can be very easily obtained via Thread.getAllStackTraces()
  • I'm pretty sure no one uses it anyway

All stack traces are still visible in the ANRError stack trace, so it won't affect reporting.

I will post here as soon as it is available on Maven :)

from anr-watchdog.

SalomonBrys avatar SalomonBrys commented on July 19, 2024

v1.2.0 is pushed. The ANRError is now serializable (I've checked).
Thanks for the report :)

from anr-watchdog.

rssc avatar rssc commented on July 19, 2024

Great! Thanks!

from anr-watchdog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.