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

Opening of LTTng trace fails when running theia-traceviewer and server on Windows #545

Closed
bhufmann opened this issue Oct 28, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@bhufmann
Copy link
Collaborator

bhufmann commented Oct 28, 2021

When opening a LTTng kernel trace (e.g. using Open With -> Trace Viewer) on Windows using the Trace Compass server in Windows fails with error: "Invalid trace(s): kernel"

To reproduce use Theia Blueprint for C https://download.eclipse.org/theia/c/1.17.2/windows/TheiaBlueprintForC.exe and Trace Compass server nightly build for windows: https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/

@bhufmann bhufmann added the bug Something isn't working label Oct 28, 2021
@bhufmann
Copy link
Collaborator Author

bhufmann commented Oct 28, 2021

Debugging in front-end shows that backend call tspClient.openTrace() returns error code 406 (NOT_ACCEPTABLE) with message "Illegal char <:> at index 2: /c:/Users/user/Desktop/ls-trace-20170217-141925/kernel"

This means that the trace server can't handle such path strings created by the front-end on Windows.

@arfio
Copy link
Contributor

arfio commented Oct 29, 2021

This issue is documented on the Theia IDE github: eclipse-theia/theia#8098.

@bhufmann
Copy link
Collaborator Author

bhufmann commented Nov 9, 2021

Workaround for eclipse-theia/theia#8098 and additional required fixes are implemented in the trace server. See trace server Bug 577145 and Patch for that.

@bhufmann
Copy link
Collaborator Author

The trace compass server has been updated and a new server build is available: https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/

I tested it with Theia Blueprint for C and it works now.

@bhufmann
Copy link
Collaborator Author

bhufmann commented Feb 8, 2022

Opening it in Windows fails again. Changes in #554 make the Theia bug (eclipse-theia/theia#8098) visible again. It fails now during the execution of the theia-traceviewer code and the following error is shown:
image

@bhufmann bhufmann reopened this Feb 8, 2022
@hoangphamEclipse
Copy link
Contributor

A patch for a work around is available for review. Please see PR 674.

@bhufmann
Copy link
Collaborator Author

bhufmann commented Feb 9, 2022

Fixed by #674

@bhufmann bhufmann closed this as completed Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants