Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in DiagnosticAssembly.Execute(string argument) #12

Closed
CrazyBaran opened this issue Nov 7, 2017 · 8 comments · Fixed by #22
Closed

Error in DiagnosticAssembly.Execute(string argument) #12

CrazyBaran opened this issue Nov 7, 2017 · 8 comments · Fixed by #22
Assignees
Labels

Comments

@CrazyBaran
Copy link

CrazyBaran commented Nov 7, 2017

I try execute sample code from Open file and I get error:

Merge operation failed return code 0x2

Script execution failed: System.ApplicationException: Merge operation failed return code 0x2
w Microsoft.Diagnostics.Tracing.Session.TraceEventSession.Merge(String[] inputETLFileNames, String outputETLFileName, TraceEventMergeOptions options)
w Microsoft.Diagnostics.Tracing.Session.TraceEventSession.MergeInPlace(String etlFileName, TextWriter log)
w Tune.Core.Collectors.ClrEtwCollector.Stop() w C:\TestAndOtherStuff\TUNE\Tune.Core\Collectors\ClrEtwCollector.cs:wiersz 62
w Tune.Core.Collectors.ClrEtwCollector.Dispose() w C:\TestAndOtherStuff\TUNE\Tune.Core\Collectors\ClrEtwCollector.cs:wiersz 159
w Tune.Core.DiagnosticAssembly.Execute(String argument) w C:\TestAndOtherStuff\TUNE\Tune.Core\DiagnosticAssembly.cs:wiersz 75

@kkokosa kkokosa added the bug label Nov 7, 2017
@kkokosa kkokosa self-assigned this Nov 7, 2017
@kkokosa
Copy link
Owner

kkokosa commented Nov 7, 2017

@CrazyBaran thank you for the report. Could you try to run it as an administrator?

@CrazyBaran
Copy link
Author

I try Run as Administrator and the same, but I think i don't have real administrator on this machine in work.

@kkokosa
Copy link
Owner

kkokosa commented Nov 7, 2017

This may be the reason. Could you check, at the time of the error, the size of files data.etl and data.kernel.etl in the program directory?

@CrazyBaran
Copy link
Author

Before error I have only file data.clrRundown.etl size: 73 664 KB, after the same. Breakpoint in line 62 in file ClrEtwCollector.cs .

@kkokosa
Copy link
Owner

kkokosa commented Nov 7, 2017

I've created issue #14 to remember about better handling of this. BTW could you check elevated value at ClrEtwCollector.cs:line 86 ?

@CrazyBaran
Copy link
Author

CrazyBaran commented Nov 7, 2017

When i don't made Run as Administrator elevated is of course false, but when i made it, it is true, even with my doubtful administrator right on work.

BTW. I am thankful for this project, I looking long for some small project where I could watch and help with development processes from beginning even as tester.

@kkokosa
Copy link
Owner

kkokosa commented Nov 7, 2017

You are welcome! This is small project and with its current 0.3 version there will be a lot of testing possible altogether with small fixes contributions:)

@CrazyBaran
Copy link
Author

I test it at home and the same. I think the problem is that data.etl doesn't exist. I copy data.clrRundown.etl change name into data.etl and no error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants