Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Visual Studio crashes since last Xsharp Update 10 Jun 2022 02:08 #22725

  • FdeRaadt
  • FdeRaadt's Avatar
  • Topic Author


  • Posts: 31
  • Hello All,

    I've updated XSharp to the newest(2.12.2) version and have been experiencing frequent crashes of my Visual Studio.
    This happen every time when making use of the option "Cleaning Solution" under Build.
    This problem does no longer occurs when downgrading XSharp back to version 2.11.
    Something I've also tried is updating Visual studio but the freezes still happen.

    For now I will work with version 2.11 as a workaround but I have been wondering if I am the only one having issues with the new update.

    Frank

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 08:57 #22726

    • FFF
    • FFF's Avatar


  • Posts: 1393
  • Frank, which VS / OS?
    Regards
    Karl (X# 2.14.0.4; Xide 1.33; W8.1/64 German)

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 09:00 #22727

    • Chris
    • Chris's Avatar


  • Posts: 3759
  • HI Frank,

    Thanks for the report, I could reproduce the problem with two projects, when doing a Clean after a Rebuild and since it's reproducible, I'm sure it will be fixed soon. Just to be clear, you are getting the freezes ONLY with Clean Solution, is that correct?

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 09:07 #22728

    • FdeRaadt
    • FdeRaadt's Avatar
    • Topic Author


  • Posts: 31
  • OS: Windows 10
    Visual Studio Community 2019: 16.11.15
    XSharp: 2.12.2

    I've included the Windows pop-up shown when the freeze occurs.

    Frank
    Attachments:

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 09:08 #22729

    • FdeRaadt
    • FdeRaadt's Avatar
    • Topic Author


  • Posts: 31
  • Hi Chris,

    Yes, the crash only happens with Clean Solution.

    Frank

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 09:19 #22730

    • Chris
    • Chris's Avatar


  • Posts: 3759
  • Hi Frank,

    Thanks! I can now reliably always reproduce the problem, so I'm sure Robert will fix it and we can release a bugfix build (for this and a few more problems that were found) in the coming weeks.

    .
    XSharp Development Team
    chris(at)xsharp.eu

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 12:43 #22735

    • ic2
    • ic2's Avatar


  • Posts: 1574
  • I went with Frank through the various steps to find out if this was an issue of the latest X# and asked him to post this if the problem stayed away with the previous X#. But I considered that unlikely, which apparently it wasn't, as I thought that the Clean process isn't compiler dependent but a VS thing, deleting files associated with the build. When this is fixed I am a bit curious to learn what role the X# compiler plays in this.

    Dick

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 13:13 #22736

    • robert
    • robert's Avatar


  • Posts: 3293
  • Dick,

    Msbuild is reponsible for the actual build, rebuild and clean process.
    Inside Visual Studio a copy of MsBuild is running and both VS and this MsBuild subsystem communicates with our project system.

    Over time MS has changed some things with the way how MsBuild runs inside VS. It runs more and more in the background (to keep VS responsive during builds). One of the reasons for that is the feature that they call "Live testing".
    During this live testing MsBuild continually builds changed assemblies and runs unit tests.
    If that would run on the foreground then VS would not be very responsive.
    Most likely we made a change to support this background building that cause the problem.

    You can also run MsBuild from the command line :
    MsBuild MySolution.Sln -target:Rebuild /p:Configuration=Debug
    or
    MsBuild MySolution.Sln -target:Clean /p:Configuration=Release

    The X# compiler is called as part of the build process. The project file (Xsproj file) contains a list of file names and references and contains a reference to "XSharp.targets" in the XSharp MsBuild dir.
    This targets file tells MsBuild how to construct the command line for the X# compiler (and also how to process /rc files with the native resource compiler and also how to handle .resx files.
    The processing of .rc files will be done by rc.exe and this will result in a native resource file that will be passed to the compiler so it can be included in the EXE or DLL. Something similar happens with .resx files and .resources files and with the generated code for .xaml files.
    In the last case MsBuild will locate the X# component that generates source code(XSharpCodeDomProvider).


    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Visual Studio crashes since last Xsharp Update 10 Jun 2022 18:10 #22737

    • ic2
    • ic2's Avatar


  • Posts: 1574
  • Hello Robert,

    Thanks for the extensive explanation.

    Dick

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1