P403n1x87 / austin-vscode

Austin extension for Visual Studio Code
MIT License
21 stars 4 forks source link

Code 33 #64

Closed ayush22jain closed 1 month ago

ayush22jain commented 5 months ago

Running the Austin extension on Windows and it just doesn’t seem to work - I keep getting the error message “Austin process exited with code 33” “the terminal process terminated with exit code:33” “terminal will be reused by tasks, press any key to close it”

When I try to pipe it using powershell, however, it works and gives me a .austin file as the output. But when I try to open the file using the flamegraph tab, it says “crunching the numbers” for a long time and eventually exits. I also get nothing displayed on Austin Stats

P403n1x87 commented 5 months ago

👋 @ayush22jain thanks for reporting this. May I get some more details from you please?

Running the Austin extension on Windows and it just doesn’t seem to work - I keep getting the error message “Austin process exited with code 33” “the terminal process terminated with exit code:33” “terminal will be reused by tasks, press any key to close it”

How are you running Austin in this case? Is it via a task definition, or the "Profile with Austin" command?

When I try to pipe it using powershell, however, it works and gives me a .austin file as the output. But when I try to open the file using the flamegraph tab, it says “crunching the numbers” for a long time and eventually exits. I also get nothing displayed on Austin Stats

It might be the case that the file is too big to be processed. If so, you could try increasing the sampling interval with -i/--interval to reduce the number of samples collected. That should make the file easier to parse by the extension (at the cost of some accuracy).

spaceman1313 commented 3 months ago

I'm having the same problem with VS Code on Windows. I have the latest VS Code, just installed the Austin extension as well ast the austin executables.

I have a very simple python script for testing (basically a single time.sleep() command followed by print())

I'm running Austin with "Profile with Austin" command

The path to my python script does have a space in it but the extension seems to be putting in quotes to account for it:

Starting Profiler in d:\Documents\Files & Data\My_Project\Python. Running 'austin' with args '-i 100 --pipe P:\programming\anaconda3\user\envs\gcat\python.exe "d:\Documents\Files & Data\My_Project\Python\sleep.py"'. austin process exited with code 33

I can run Austin directly from the VS Code terminal and it works fine: austin python sleep.py

bemaru commented 2 months ago

@ayush22jain Have you tried it like this? pip install austin-dist

P403n1x87 commented 1 month ago

This is likely a duplicate of #62