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

[Bug]: Profiler crashes for Ballerina service in windows environment #41578

Closed
HindujaB opened this issue Oct 26, 2023 · 1 comment · Fixed by #41823
Closed

[Bug]: Profiler crashes for Ballerina service in windows environment #41578

HindujaB opened this issue Oct 26, 2023 · 1 comment · Fixed by #41823
Assignees
Labels
OS/Windows Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug

Comments

@HindujaB
Copy link
Contributor

Description

$subject

Steps to Reproduce

Create a bal package with a service and execute the bal profile. Terminate the process when it's running the executable.
Crash log:

Exception in thread "Thread-0" io.ballerina.runtime.profiler.util.ProfilerException: Failed to delete file: C:\Users\WSO2\Documents\Ballerina\ballerina-lang\tests\jballerina-integration-test\src\test\resources\profiler\serviceProjectForProfile\package_a\target\bin\Profiler.jar%n
        at io.ballerina.runtime.profiler.Profiler.deleteFileIfExists(Profiler.java:115)
        at io.ballerina.runtime.profiler.Profiler.lambda$addShutdownHookAndCleanup$0(Profiler.java:102)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.nio.file.FileSystemException: C:\Users\WSO2\Documents\Ballerina\ballerina-lang\tests\jballerina-integration-test\src\test\resources\profiler\serviceProjectForProfile\package_a\target\bin\Profiler.jar: The process cannot access the file because it is being used by another process
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275)
        at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
        at java.base/java.nio.file.Files.delete(Files.java:1152)
        at io.ballerina.runtime.profiler.Profiler.deleteFileIfExists(Profiler.java:113)
        ... 2 more

Affected Version(s)

2201.8.2

OS, DB, other environment details and versions

Windows 10

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added the Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime label Oct 26, 2023
@gabilang gabilang moved this to Planned for Sprint in Ballerina Team Main Board Dec 12, 2023
@gabilang gabilang moved this from Planned for Sprint to In Progress in Ballerina Team Main Board Dec 14, 2023
@gabilang gabilang moved this from In Progress to PR Sent in Ballerina Team Main Board Dec 14, 2023
@github-project-automation github-project-automation bot moved this from PR Sent to Done in Ballerina Team Main Board Jan 3, 2024
Copy link

github-actions bot commented Jan 3, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS/Windows Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants