Bug 17198 - Sharing violation on path on GooglePlayServices resources
Summary: Sharing violation on path on GooglePlayServices resources
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.2.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2014-01-12 22:34 UTC by Chris Chadwick
Modified: 2017-06-27 17:09 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Chris Chadwick 2014-01-12 22:34:06 UTC
Error	429	Unexpected error - Please file a bug report at http://bugzilla.xamarin.com. Reason: System.IO.IOException: Sharing violation on path C:\Code\MapsDemo\monodroid-samples\MapsAndLocationDemo_v2\SimpleMapDemo\obj\Debug\__library_projects__\GooglePlayServices\library_project_imports\res\drawable-hdpi\common_signin_btn_text_pressed_dark.9.png	SimpleMapDemo
Comment 1 Nischal 2014-01-13 09:08:37 UTC
Chris could you please provide us the testcase or screenshot, so that we can check this problem at our end. 

Comment 2 Jonathan Pryor 2014-01-13 16:30:12 UTC
Atsushi: Is it possible we're not explicitly Close()ing something when we extract the resources?
Comment 3 Atsushi Eno 2014-01-15 05:02:54 UTC
Not sure what kind of code review could assure that. At least

- Every use of ".Open(" comes with using statement.
- Zip manipulation comes with usings too.
- Ionic.Zip might be doing something wrong (just possibility) e.g. holding file handles and throws exception, without closing ZipEntry or whatever that needs close operation. But that needs thorough code review on that assembly.

A reproducible project and build steps would be 10000 times helpful.
Comment 4 Jonathan Pryor 2014-01-15 11:44:05 UTC
@Chris: Please use Process Monitor the next time this happens to see which processes have the files open:

Comment 5 Chris Hardy [MSFT] 2017-06-27 17:09:49 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!