Coder Social home page Coder Social logo

Comments (9)

codeknox avatar codeknox commented on May 12, 2024 1

@guperrot hey there, installed over the weekend on 3 QA machines, and so far no zero files or leftovers to be seen.
Again, thank you for the promptly turn-around.

from appcenter-sdk-android.

codeknox avatar codeknox commented on May 12, 2024

I guess I found what causes the issue:

image

Lots of zero bytes length files.

And also lots of this on log:

10-30 10:55:02.998 2145-2164/? D/AppCenterCrashes: Process pending error file: /data/data/com.XXXXXX.YYYYYY/files/error/b2283cf7-4275-48fb-ba94-c8546385734a.json
10-30 10:55:03.008 2145-2164/? E/AppCenterCrashes: Error parsing error log
    org.json.JSONException: End of input at character 0 of 
        at org.json.JSONTokener.syntaxError(JSONTokener.java:450)
        at org.json.JSONTokener.nextValue(JSONTokener.java:97)
        at org.json.JSONObject.<init>(JSONObject.java:154)
        at org.json.JSONObject.<init>(JSONObject.java:171)
        at com.microsoft.appcenter.ingestion.models.json.DefaultLogSerializer.deserializeLog(DefaultLogSerializer.java:59)
        at com.microsoft.appcenter.crashes.Crashes.processPendingErrors(Crashes.java:644)
        at com.microsoft.appcenter.crashes.Crashes.onStarted(Crashes.java:367)
        at com.microsoft.appcenter.AppCenter.finishStartServices(AppCenter.java:871)
        at com.microsoft.appcenter.AppCenter.access$600(AppCenter.java:49)
        at com.microsoft.appcenter.AppCenter$8.run(AppCenter.java:793)
        at android.os.Handler.handleCallback(Handler.java:615)
        at android.os.Handler.dispatchMessage(Handler.java:92)
        at android.os.Looper.loop(Looper.java:137)
        at android.os.HandlerThread.run(HandlerThread.java:60)

from appcenter-sdk-android.

guperrot avatar guperrot commented on May 12, 2024

This stack overflow error is when processing a .throwable file with many nesting of exceptions to reconstruct the Throwable that caused crash after restart so it can be accessed via SDK API for inspection.

zero length .json files is a separate issue but can be caused by the crash loop and just be a consequence of the first issue. Though we should delete files that we cannot read, looks like they accumulate in your case so need to check cleanup code to make sure they are deleted.

Any chance you can extract and attach the largest .throwable file that you have? With the .json file having the same uuid. Thanks in advance.

from appcenter-sdk-android.

codeknox avatar codeknox commented on May 12, 2024

All .throwable files are same size:

image

and I also have a lot of Zero bytes .json without the .throwable related file:

image

Anyway, I saved all files here:
https://www.dropbox.com/s/tu3lgk1v3xru9s1/error.zip?dl=0

PS is there a way for me to "work around" these crash when sending a crash situations?

from appcenter-sdk-android.

guperrot avatar guperrot commented on May 12, 2024

Thanks for sharing the files, we are working on a SDK work around. I am not sure how you can work around without us fixing the SDK so we will share a pre-release of it when the fix is ready.

from appcenter-sdk-android.

guperrot avatar guperrot commented on May 12, 2024

To test a pre-release of the SDK you can point your app/build.gradle file at

repositories {
    maven {
        url "https://dl.bintray.com/vsappcenter/appcenter-snapshot"
    }
}

And use version 1.9.1-2+bc7c1c6f (only this very specific version has the pending fix).

At end of November you will be able to remove this pre-release repository and switch to 1.10.0 instead.

This quick fix prevents the crash loop but we are still working on the pull request to improve the behavior.

If your application is published and other users of your application might see the same issue, we thus recommend using the pre-release for the time being. If you believe only your test device is impacted then clearing storage of the application or uninstalling/reinstalling might be an option.

from appcenter-sdk-android.

codeknox avatar codeknox commented on May 12, 2024

@guperrot 24h and no crash! thank you very much for the quick turn-around.

from appcenter-sdk-android.

guperrot avatar guperrot commented on May 12, 2024

You're welcome, we keep the bug opened until we release the SDK end of month.
We have another prerelease version that also cleans the empty/invalid files now: 1.9.1-3+2430ff4b, it also fixes errors at write time on top of the read ones.

from appcenter-sdk-android.

guperrot avatar guperrot commented on May 12, 2024

Version 1.10.0 has been officially released.

from appcenter-sdk-android.

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.