Forum Xamarin Xamarin.Forms

Android System.IO.IOException: Sharing violation only in release mode

Hello,

In my xamarin app i'm using this implementation of the reading/writing dependency service to save some data to an xml file.
https://github.com/xamarin/xamarin-forms-samples/blob/master/WorkingWithFiles/PCL/Android/SaveAndLoad_Android.cs

for some reason I'm hitting this sharing violation error (via hockeyapp).

android.runtime.JavaProxyThrowable: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.IO.IOException: Sharing violation on path /data/user/0/com.xamarin.s_elect/files/...

This only occurs on android with installation of an archived apk. In Android (debug), IOS and UWP I'm not able to reproduce this error.
I also found this bugzilla bugreport.
https://bugzilla.xamarin.com/show_bug.cgi?id=57469

Has anyone had a simular issue?

Answers

  • AshleyGazichAshleyGazich USMember, Xamarin Team Xamurai

    Hi Tom, would you be able to provide a complete minimized test case demonstrating the issue? If access to the test case needs to be restricted, a private (Xamarin team only) report can be filed here.

Sign In or Register to comment.