question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash during journal file rename

See original GitHub issue

Get this crash from one of the users

Device: Samsung Galaxy Note 4 Retrofit: v1.9 okhttp: v2.6.0

Fatal Exception: java.lang.RuntimeException: java.io.IOException: failed to rename /data/data/com.bandlab.bandlab/cache/journal.tmp to /data/data/com.bandlab.bandlab/cache/journal
       at com.squareup.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:181)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:818)
Caused by java.io.IOException: failed to rename /data/data/com.bandlab.bandlab/cache/journal.tmp to /data/data/com.bandlab.bandlab/cache/journal
       at com.squareup.okhttp.internal.io.FileSystem$1.rename(FileSystem.java:85)
       at com.squareup.okhttp.internal.DiskLruCache.rebuildJournal(DiskLruCache.java:409)
       at com.squareup.okhttp.internal.DiskLruCache.access$400(DiskLruCache.java:88)
       at com.squareup.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:177)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:818)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
maxsdevcommented, Oct 20, 2018

And in 3.11.0

2reactions
swankjessecommented, May 8, 2016

Fixed in OkHttp 3.3, coming soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

crash - Can the filesystem become inconsistent if interrupted ...
The rename operation is very fast on any filesystem, so it is unlikely to be interrupted, but on a classical filesystem it certainly...
Read more >
Rename isn't quite an atomic replacement. If you crash before ...
Rename isn't quite an atomic replacement. If you crash before the rename, the new file hangs around. (Hence unwanted . part files.)
Read more >
VS 2022 crash on file rename in Solution Explorer
After one build, run and stop project, and then renaming file in Solution Explorer - VS displays a waiting notification and is waiting,...
Read more >
Crash occurs when modifying elements in Revit
Issue: Users reported that a crash with CER occurs when modifying elements in in Revit. Journal file may includes lines similar to:
Read more >
Can't Rename a Level without crashing the file - AUGI Forums
I have a project that we started in Revit 4 or 5 now we are using 7 so now I have one level...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found