GithubHelp home page GithubHelp logo

Comments (7)

b-winkler avatar b-winkler commented on September 14, 2024 1

Hi Ramon,

thanks for the quick response. Yes, you were right, the extraction is the one causing problems, .etl file is created successfully.
I will try to analyze the extraction issue as you proposed, will get back to you with more infos. But this will probably take a few days.

Cheers,
Benjamin

PS: I could not find information about why ScoreGenerator needs to be started in elevated mode. Did not seem to make a difference in my environment?

from compilescore.

b-winkler avatar b-winkler commented on September 14, 2024 1

Sorry for the delay.
I just ran ScoreDataExtractor in Debug mode and reproduced the crash, only to find out that someone else has reported the same bug, just with more detailed information.
So, same here: OnCompilerPassStart() is being called with activity.InputSourcePath and activity.OutputObjectPath == nullptr

Benjamin

from compilescore.

Viladoman avatar Viladoman commented on September 14, 2024 1

I think I got a workaround for the issue with the missing activity names meanwhile it is not fixed in the SDK.

FYI, I left a more detailed information of the workaround in the other issue thread

Whenever you have time could you validate if the profiler works on version 1.5.6 when using the /MP ( which was the root cause of the SDK not giving up the path names ).

Thanks for the investigation, I really appreciate it.

from compilescore.

b-winkler avatar b-winkler commented on September 14, 2024 1

Hey Ramon,
workaround seems to have fixed it. At least it did not crash anymore, though I did not look into the results, yet. Will do that later.
Benni

from compilescore.

b-winkler avatar b-winkler commented on September 14, 2024 1

Works perfectly!
Thanks alot!

Benni

from compilescore.

Viladoman avatar Viladoman commented on September 14, 2024

Sorry about that. Sadly, there is not much information I can use to pinpoint the issue.

In order to narrow it down, I would recommend to do the following steps:

  • ScoreDataExtractor.exe -msvc -start
  • Build your sources
  • ScoreDataExtractor.exe -msvc -stop -o <yourfolder>\output.etl (this will store the event capture in an event trace log format. Which can be later processed)
  • ScoreDataExtractor.exe -msvc -extract -i <yourfolder>\output.etl -o <yourfolder>\output.scor (this will process the event trace log into the aggregated scor file)

This way we can see what is the problematic step (gathering or processing)
I am pretty sure it is failing in the extraction/processing part (as the first one is mainly MS Build insights sdk calls for msvc), but always good to double check.

If the extractor is the one crashing I would then recommend to just clone this repo, open the DataExtractorSolution, Go to the Project Settings - Debugging and use the command arguments from the last step. This way we will get a callstack. Also, because the data is already in the etl file VS does not need to run in Admin mode.

Thanks for your help. Please let me know the outcome.

from compilescore.

Viladoman avatar Viladoman commented on September 14, 2024

No rush! Let me know what you find in there.

I checked what you are mentioning about the elevated mode and you are right, maybe MS updated their Build insights to not require it anymore and I was still under the impression it was mandatory. I will run some tests and remove the elevated requirement if it is not needed anymore.

Thanks for letting me know!

Edit: After several tests... I will remove the elevated restriction as apparently it is not needed anymore! Good news! :)

from compilescore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.