Comments (9)
@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.
I guess I found what causes the issue:
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.
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.
All .throwable
files are same size:
and I also have a lot of Zero bytes .json
without the .throwable
related file:
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.
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.
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.
@guperrot 24h and no crash! thank you very much for the quick turn-around.
from appcenter-sdk-android.
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.
Version 1.10.0 has been officially released.
from appcenter-sdk-android.
Related Issues (20)
- App is not automatically closing after the update. HOT 3
- DistributeListener interface methods are not called on React native Android. HOT 2
- Failed to install app update HOT 5
- Possibility of accessing release number and using it in app HOT 1
- SDK crashes if the underlying Android call throws an exception (NetworkStateHelper.isAnyNetworkConnected) HOT 6
- Fail to install update after successful download HOT 50
- Add support for Android 11's ActivityManager.getHistoricalProcessExistReasons API HOT 3
- Google Play - Intent Redirection vulnerability HOT 3
- Distribute in-app update issue HOT 4
- Several ANRs when report HOT 4
- Update Android Gradle plugin to latest version and declare namespace HOT 6
- Ability to disable App Update notification HOT 1
- CheckForUpdate via Web API succeed but fail via SDK HOT 3
- No crash attachments and analytics events HOT 4
- Distribute crash when targetSDK is set to android 14 HOT 17
- App set as Home App not automatically launched after mandatory update HOT 1
- In-app updates fail on MIUI devices with optimizations enabled (AppCenter SDK 4.3.1+) HOT 2
- Exclude properties from DeviceInfo HOT 3
- get hostAddress on background HOT 10
- java.lang.InternalError: Thread starting during runtime shutdown HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appcenter-sdk-android.