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: [0.5.10 & olders] Cortex server process doesn't close after Jan exit #4206

Open
1 of 3 tasks
imtuyethan opened this issue Dec 3, 2024 · 3 comments
Open
1 of 3 tasks
Assignees
Labels
category: cortex.cpp Related to cortex.cpp type: bug Something isn't working

Comments

@imtuyethan
Copy link
Contributor

Jan version

0.5.10

Describe the Bug

The cortex-server.exe process occasionally remains running in the background after Jan application is closed. This is a persistent issue that has been observed across multiple versions.

Steps to Reproduce

  1. Launch Jan application
  2. Use Jan normally
  3. Exit Jan application
  4. Check Task Manager/Process List for remaining cortex-server.exe process

Expected behavior:

  • cortex-server.exe should terminate automatically when Jan is closed

Actual behavior:

  • cortex-server.exe sometimes continues running in background after Jan exit
  • Requires manual process termination

Screenshots / Logs

image

What is your OS?

  • MacOS
  • Windows
  • Linux
@imtuyethan imtuyethan added the type: bug Something isn't working label Dec 3, 2024
@github-project-automation github-project-automation bot moved this to Investigating in Jan & Cortex Dec 3, 2024
@imtuyethan imtuyethan changed the title bug: Cortex Server Process Doesn't Close After Jan Exit bug: [0.5.10 & olders] Cortex server process doesn't close after Jan exit Dec 3, 2024
@imtuyethan imtuyethan added the category: cortex.cpp Related to cortex.cpp label Dec 3, 2024
@louis-jan
Copy link
Contributor

This is something that frontend or bundler should handle, unassigned backend folks.

@louis-jan
Copy link
Contributor

To check:

  1. Quick Ask isn't enabled? Since it could cause the same effect, where we don’t want to close the app when the window closes.
  2. A raise from users where app should maintain on window close, only exit on force quit

@imtuyethan imtuyethan added this to the v0.5.12 milestone Dec 4, 2024
@Glashkoff
Copy link

For clarity: the comment in the screenshot is mine. Windows 11 Pro x64 23H2.
Experimental Mode is disabled, so Quick Response is also off.

The issue with cortex-server.exe not closing occurred even after a clean Jan 0.5.10 installation with only the Qwen2.5-Coder-14B model. I restarted Jan, edited parameters in the Qwen2.5-Coder-14B-Instruct-Q4_K_M.yml file to investigate issues #4210 and #4209, and at some point noticed the cortex-server.exe process was still running, using about 900 MB of RAM. I had to terminate it manually and then continued exploring other issues.

Unfortunately, I haven’t been able to reproduce this behavior intentionally. I usually disable logging because I work with NDA-protected data.

What I can say is that this might be related to changing model parameters in Jan’s right sidebar and regenerating responses in a dialog. While working with models, I often adjust Temperature and Top P, triggering response regeneration. That’s all the information I have on this issue for now.

@louis-jan louis-jan moved this from Investigating to Scheduled in Jan & Cortex Dec 5, 2024
@louis-jan louis-jan moved this from Scheduled to Investigating in Jan & Cortex Dec 5, 2024
@imtuyethan imtuyethan removed this from the v0.5.12 milestone Dec 10, 2024
@louis-jan louis-jan moved this from Investigating to Scheduled in Jan & Cortex Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: cortex.cpp Related to cortex.cpp type: bug Something isn't working
Projects
Status: Scheduled
Development

No branches or pull requests

4 participants