Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO Error accessing file in cache #106

Closed
afinzel opened this issue Jan 2, 2014 · 5 comments
Closed

IO Error accessing file in cache #106

afinzel opened this issue Jan 2, 2014 · 5 comments
Labels

Comments

@afinzel
Copy link

afinzel commented Jan 2, 2014

Hey,

I keep getting IOErrors from Akavache where it says the file is being accessed by another process. I am wondering if it is a threading issue with my code, is this something you have seen before? Should Akavache be dealing with these exceptions and retrying if it happens? On a separate note, with the new version you seem to have changed from SecretCache to BlobCache if the storage is in roaming. The pr suggests that you can override this to put it back to SecretCache but I have been unable to find how, is it possible?

Thanks in advance

Adam

@anaisbetts
Copy link
Member

Platform? Call stack?

The pr suggests that you can override this to put it back to SecretCache but I have been unable to find how

Which PR are you referring to?

@afinzel
Copy link
Author

afinzel commented Jan 9, 2014

2efe6a3

At the moment however I'm running a lower version and haven't upgraded yet as I need to test what happens to existing caches with the new version. I experienced the IO problem in the latest nuget version when I checked to see if it was an old bug.

Because of the way I collect errors from users, this is the best I can give but I don't think it helps. Have you ever seen System.IO.__Error in WinIOError? I can reproduce it in my code by running my app which writes the cache, then delete the cache from the hard disk and rerun the app. Users of the app are however getting the error just by running the app. Thanks again for looking at this.

  File "/unknown.unknown", line 0, in <SafeOpenFileAsync>b__1
    System.IO.FileStream <SafeOpenFileAsync>b__1()
  File "/unknown.unknown", line 0, in .ctor
    Void .ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, Boolean)
  File "/unknown.unknown", line 14, in .ctor
    Void .ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean)
  File "/unknown.unknown", line 985, in Init
    Void Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
  File "/unknown.unknown", line 316, in WinIOError
    Void WinIOError(Int32, System.String)

@afinzel
Copy link
Author

afinzel commented Feb 13, 2014

Paul, do you require any more information from me?

@anaisbetts
Copy link
Member

lol if you can reproduce it in your code then get me a real call stack :)

@anaisbetts
Copy link
Member

In general, Akavache doesn't break user data between versions (at all, even between major versions). If there is a change to the on-disk data it gets handled silently by the library.

@ghuntley ghuntley closed this as completed Nov 4, 2016
@lock lock bot added the outdated label Jun 25, 2019
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants