saravanarajan / acra

Automatically exported from code.google.com/p/acra
0 stars 0 forks source link

Error while retrieving crash data #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce
1. Start your program and try to fail it when the program is starting

ACRA-version: 4.2.3
System: Android: 2.3.3 Oxygen (HTC Desire)

Instead of creating the crash report, ACRA fails in to a NPE

09-27 19:32:14.669: INFO/ACRA(18053): READ_LOGS granted! ACRA can include 
LogCat and DropBox data.
09-27 19:32:14.719: DEBUG/ACRA(18053): Retrieving logcat output...
09-27 19:32:14.969: DEBUG/ACRA(18053): Retrieving logcat output...
09-27 19:32:15.149: DEBUG/dalvikvm(18053): GC_EXPLICIT freed 1997K, 62% free 
2995K/7815K, external 1629K/3129K, paused 58ms
09-27 19:32:15.279: DEBUG/ACRA(18053): Retrieving logcat output...
09-27 19:32:15.589: DEBUG/dalvikvm(18053): GC_CONCURRENT freed 580K, 61% free 
3112K/7815K, external 1629K/3129K, paused 2ms+4ms
09-27 19:32:15.609: WARN/ApplicationContext(18053): Unable to create files 
directory
09-27 19:32:15.629: ERROR/ACRA(18053): Error while retrieving crash data
        java.lang.RuntimeException: java.io.FileNotFoundException: /ACRA-INSTALLATION (Read-only file system)
        at org.acra.util.Installation.id(Installation.java:38)
        at org.acra.ErrorReporter.retrieveCrashData(ErrorReporter.java:464)
        at org.acra.ErrorReporter.handleException(ErrorReporter.java:722)
        at org.acra.ErrorReporter.handleException(ErrorReporter.java:773)
        at org.acra.ErrorReporter.uncaughtException(ErrorReporter.java:622)
        at com.flurry.android.FlurryAgent$FlurryDefaultExceptionHandler.uncaughtException(SourceFile:236)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
        at dalvik.system.NativeStart.main(Native Method)
        Caused by: java.io.FileNotFoundException: /ACRA-INSTALLATION (Read-only file system)
        at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
        at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:94)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:66)
        at org.acra.util.Installation.writeInstallationFile(Installation.java:56)
        at org.acra.util.Installation.id(Installation.java:35)
        ... 8 more
09-27 19:32:15.639: DEBUG/ACRA(18053): Writing crash report file.
09-27 19:32:15.639: WARN/ApplicationContext(18053): Unable to create files 
directory
09-27 19:32:15.659: ERROR/ACRA(18053): An error occured while writing the 
report file...
        java.lang.NullPointerException
        at android.app.ContextImpl.openFileOutput(ContextImpl.java:420)
        at android.content.ContextWrapper.openFileOutput(ContextWrapper.java:158)
        at org.acra.ErrorReporter.saveCrashReportFile(ErrorReporter.java:889)
        at org.acra.ErrorReporter.handleException(ErrorReporter.java:740)
        at org.acra.ErrorReporter.handleException(ErrorReporter.java:773)
        at org.acra.ErrorReporter.uncaughtException(ErrorReporter.java:622)
        at com.flurry.android.FlurryAgent$FlurryDefaultExceptionHandler.uncaughtException(SourceFile:236)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
        at dalvik.system.NativeStart.main(Native Method)
09-27 19:32:15.659: DEBUG/ACRA(18053): Mark all pending reports as approved.
09-27 19:32:15.659: WARN/ApplicationContext(18053): Unable to create files 
directory
09-27 19:32:15.659: WARN/ACRA(18053): Application files directory does not 
exist! The application may not be installed correctly. Please try reinstalling.
09-27 19:32:15.659: VERBOSE/ACRA(18053): About to start ReportSenderWorker from 
#handleException
09-27 19:32:15.669: DEBUG/ACRA(18053): Add user comment to null
09-27 19:32:15.669: DEBUG/ACRA(18053): #checkAndSendReports - start
09-27 19:32:15.669: WARN/ApplicationContext(18053): Unable to create files 
directory
09-27 19:32:15.669: WARN/ACRA(18053): Application files directory does not 
exist! The application may not be installed correctly. Please try reinstalling.
09-27 19:32:15.669: DEBUG/ACRA(18053): #checkAndSendReports - finish

I'm creating a game using Andengine framework. I start my game and push a 
button while the program is starting and the program fails to an onKeyDown 
event handler with NPE. 

Original issue reported on code.google.com by marko.pu...@gmail.com on 27 Sep 2011 at 5:31