Bug 45682 - Scp doesn't copy entire file Messaging.g.cs
Summary: Scp doesn't copy entire file Messaging.g.cs
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: XMA ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: Normal normal
Target Milestone: 15.4
Assignee: mag@xamarin.com
URL:
Depends on:
Blocks:
 
Reported: 2016-10-19 07:06 UTC by Silvio
Modified: 2017-07-28 11:26 UTC (History)
8 users (show)

Tags:
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 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:
Status:
VERIFIED FIXED

Description Silvio 2016-10-19 07:06:54 UTC
When using a mac agent, scp sometimes does not copy the following file properly to windows.

obj\Release\ios\ObjCRuntime\Messaging.g.cs

This happens about every second time we use the following command.

msbuild "iOS/ScanditSDK.sln" "/p:Configuration=Release" /p:Platform="Any CPU" /p:ServerAddress=... /p:ServerUser=...

The file is just cut off at 16368=2^14 bytes. Which is the buffer size of scp "P:Renci.SshNet.ScpClient.BufferSize". There are similar problems out there.

https://forums.xamarin.com/discussion/64725/obj-c-binding-apidefinition-generated-messaging-partial-class-fails-to-completely-generate
https://forums.xamarin.com/discussion/67577/issue-building-a-binding-project-messaging-g-cs

They are both cut off at 4096=2^12.
Comment 1 Jose Gallardo 2016-10-19 23:00:16 UTC
Hi Silvio,

I know you have already provided useful information about the issue, but can you please add the following data?

1. Xamarin Logs
Go to the menu "Help - Xamarin - Zip Logs". Please attach that zip file to the bug report.
(If you can connect to the Mac, then please run that command being connected to the Mac, that way we'll get the Mac logs as well).

2. Environment information
Go to the menu "Help - About Microsoft Visual Studio" and press "Copy Info". Please paste that info in a Bugzilla comment.

I would ask you about a full Diagnostic Build Output as well, but it seems like you've already found the key part of it.

The first links to the forums are also useful, hopefully the sample code from the second one can help.

Please provide the requested info. We'll investigate it.

Thanks!
Comment 2 Silvio 2016-10-20 08:06:14 UTC
I'm not sure I can provide the logs. But looking through them, there seems nothing of interest except for the following warning.

There is a mismatch between the installed Xamarin.iOS (version 10.0.1.8) on the Mac ....local (...) and the local Xamarin.iOS 10.0.0.1. While this may not be an issue, it might cause unexpected behaviors. When applying updates, make sure to keep both the Mac and Windows in sync.

But I can't see any updates for Xamarin in VisualStudio. There is no output in any of the logs during the time of build. Here the visual studio versions.


Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Community

Visual Basic 2015   00322-20000-00000-AA848
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA848
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA848
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-20000-00000-AA848
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.9.01018.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Clang with Microsoft CodeGen   14.0.25516
Clang with Microsoft CodeGen

Command Bus, Event Stream and Async Manager   Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Sandcastle Help File Builder   SHFB
Visual Studio integration for the Sandcastle Help File Builder.
Copyright © 2011-2015, Eric Woodruff, All Rights Reserved.
https://GitHub.com/EWSoftware/SHFB

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio Tools for Apache Cordova   Update 10
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25527.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.2.0.695 (7603786)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.1.2 (c1d1c79)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.0.0.1 (29910bb)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 3 Stefan.Wert 2017-02-08 21:48:15 UTC
I have the same issue - trying to build from Visual Studio on a Mac agent, Messaging.g.cs is cut off at exactly 4,096 bytes. Has there been any progress?
Comment 4 mag@xamarin.com 2017-02-13 17:30:55 UTC
Hi,
The bug is assigned to be solved on the next Xamarin cycle, however we were not able to get a repro. We are using the solution attached in the link pasted in Description (https://forums.xamarin.com/discussion/67577/issue-building-a-binding-project-messaging-g-cs), but the Messaging.g.cs is being generated correctly and the build is completed successfully.

We will continue trying to get a repro that can allow us to determine a solution. Meanwhile, If you have a consistent repro with a specific solution and configuration, please let us know and attach it so we can move faster on this.

Also, please ensure to use the latest Alpha version, given that many fixes and improvements has been introduced around the SHH layer.
Comment 5 Juan Marcelo Tondato 2017-07-05 18:37:51 UTC
Hi,

We're using a newer version of SSH.Net, which should address this issue.

Resolving the bug tentatively as fixed, but please feel free to reopen it with environment information and logs if you can still reproduce it.

Thanks