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

Application hangs on exit with v2.1.0 #662

Closed
curtisporter1 opened this issue May 8, 2018 · 3 comments
Closed

Application hangs on exit with v2.1.0 #662

curtisporter1 opened this issue May 8, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@curtisporter1
Copy link

A standalone application built with ApplicationInsights-Java hangs on exit. There is a thread pool (pool-1-thread-1) that is not shut down, and it prevents the application from exiting. This does not occur with version 2.0.2.

Attached is a trivial program that demonstrates the problem.

telemetrysample.zip

@littleaj
Copy link
Contributor

littleaj commented May 8, 2018

Thank you for bringing this to our attention. We're investigating the issue.

@littleaj
Copy link
Contributor

littleaj commented May 8, 2018

I found the issue and have a PR for it. In the meantime, @curtisporter1 , if this is blocking you, there is a workaround:

As the last statement in your main method, add SDKShutdownActivity.INSTANCE.stopAll();. This will stop all the threads in the SDK, including the one in question. If you have the SDKLogger enabled, you may see some exceptions, but this is expected.

@littleaj
Copy link
Contributor

littleaj commented Jun 8, 2018

This fix will ship in the next release.

@littleaj littleaj modified the milestones: 2.1.1, 2.1.2 Jun 8, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants