wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.92k stars 1.3k forks source link

RuntimeException: Unable to create application org.wordpress.android.WordPressRelease: java.io.FileNotFoundExceptio... #20538

Closed sentry-io[bot] closed 2 weeks ago

sentry-io[bot] commented 1 month ago

Sentry Issue: WORDPRESS-ANDROID-2QJP

android.system.ErrnoException: open failed: ENOSPC (No space left on device)
    at libcore.io.Linux.open(Linux.java)
    at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
    at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
    at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7985)
    at libcore.io.IoBridge.open(IoBridge.java:560)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
    at java.io.FileWriter.<init>(FileWriter.java:96)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:0)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:24)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:0)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:19)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:19)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:0)
    at org.wordpress.android.util.AppLog.enableLogFilePersistence(AppLog.java:111)
    at org.wordpress.android.AppInitializer.enableLogRecording(AppInitializer.kt:409)
    at org.wordpress.android.AppInitializer.init(AppInitializer.kt:289)
    at org.wordpress.android.WordPressApp.onCreate(WordPressApp.java:20)
    at org.wordpress.android.Hilt_WordPressRelease.onCreate(Hilt_WordPressRelease.java:41)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1213)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6920)
    at android.app.ActivityThread.access$1600(ActivityThread.java:262)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loopOnce(Looper.java:238)
    at android.os.Looper.loop(Looper.java:357)
    at android.app.ActivityThread.main(ActivityThread.java:8103)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
java.io.FileNotFoundException: /data/user/0/org.wordpress.android/logs/2024-03-27T07:09:56+0000.log: open failed: ENOSPC (No space left on device)
    at libcore.io.IoBridge.open(IoBridge.java:574)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:236)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
    at java.io.FileWriter.<init>(FileWriter.java:96)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:0)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:24)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:0)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:19)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:19)
    at org.wordpress.android.util.helpers.logfile.LogFileWriter.<init>(LogFileWriter.kt:0)
    at org.wordpress.android.util.AppLog.enableLogFilePersistence(AppLog.java:111)
    at org.wordpress.android.AppInitializer.enableLogRecording(AppInitializer.kt:409)
    at org.wordpress.android.AppInitializer.init(AppInitializer.kt:289)
    at org.wordpress.android.WordPressApp.onCreate(WordPressApp.java:20)
    at org.wordpress.android.Hilt_WordPressRelease.onCreate(Hilt_WordPressRelease.java:41)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1213)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6920)
    at android.app.ActivityThread.access$1600(ActivityThread.java:262)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loopOnce(Looper.java:238)
    at android.os.Looper.loop(Looper.java:357)
    at android.app.ActivityThread.main(ActivityThread.java:8103)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
java.lang.RuntimeException: Unable to create application org.wordpress.android.WordPressRelease: java.io.FileNotFoundException: /data/user/0/org.wordpress.android/logs/2024-03-27T07:09:56+0000.log: open failed: ENOSPC (No space left on device)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6925)
    at android.app.ActivityThread.access$1600(ActivityThread.java:262)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loopOnce(Looper.java:238)
    at android.os.Looper.loop(Looper.java:357)
    at android.app.ActivityThread.main(ActivityThread.java:8103)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
dangermattic commented 1 month ago

Thanks for reporting! 👍

antonis commented 1 month ago

Similar to https://github.com/wordpress-mobile/WordPress-Android/issues/13761

sentry-io[bot] commented 2 weeks ago

Sentry Issue: WORDPRESS-ANDROID-232G

sentry-io[bot] commented 2 weeks ago

Sentry Issue: WORDPRESS-ANDROID-28NP

sentry-io[bot] commented 2 weeks ago

Sentry Issue: JETPACK-ANDROID-CJ6

sentry-io[bot] commented 2 weeks ago

Sentry Issue: WORDPRESS-ANDROID-2QXR

sentry-io[bot] commented 2 weeks ago

Sentry Issue: JETPACK-ANDROID-BCE

sentry-io[bot] commented 2 weeks ago

Sentry Issue: JETPACK-ANDROID-PFE

antonis commented 2 weeks ago

All the stack traces from the crashes linked above throw a FileNotFoundException, a RuntimeException or an ErrnoException at:

    at org.wordpress.android.util.AppLog.enableLogFilePersistence(AppLog.java:111)
    at org.wordpress.android.AppInitializer.enableLogRecording(AppInitializer.kt:426)
    at org.wordpress.android.AppInitializer.init(AppInitializer.kt:302)
sentry-io[bot] commented 2 weeks ago

Sentry Issue: WORDPRESS-ANDROID-2QMD

sentry-io[bot] commented 2 weeks ago

Sentry Issue: JETPACK-ANDROID-B7P