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?] Primary instance already running; but PID of this instance is not active #649

Closed
bsdooby opened this issue Oct 17, 2024 · 6 comments

Comments

@bsdooby
Copy link

bsdooby commented Oct 17, 2024

Operating System and Version

macOS Sequoia

Distribution

dmg

Description

I cannot start NotepadNext, as there seems to be an already running instance.
No process exists. Are there any stale lock files stored?

Steps to Reproduce

  1. Go into the App bundle: NotepadNext.app/../MacOS/
  2. Start ./NotepadNext
  3. Get log message: === ... [ 1.250] I: Primary instance already running. PID: 45127 [ 1.357] I: Secondary instance closing...
  4. PID shown does not exist (no instance of NotepadNext is actually running)
  5. Thus, NotepadNext cannot be started (anymore)

Additional Details

NotepadNext.log

@dail8859
Copy link
Owner

According to your attached log file:

[     1.250] I: Notepad Next v0.7
[     1.250] I: Build Date/Time: Apr  5 2024 16:36:24
[     1.250] I: Qt: 6.7.0

This must have been a custom or test build. There is a known issue (itay-grudev/SingleApplication#190 (comment)) with multi-instance support for anything past Qt 6.5, thus Qt 6.7 will have this kind of error

@dail8859 dail8859 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
@bsdooby
Copy link
Author

bsdooby commented Oct 19, 2024 via email

@dail8859
Copy link
Owner

Use the latest v0.8 version from this repository and it should work fine.

@bsdooby
Copy link
Author

bsdooby commented Oct 19, 2024 via email

@dail8859
Copy link
Owner

NotepadNext built w/ Q 6.6 does yield the error message, the version using Qt 6.5 runs just fine

Yes that is expected. This is why all published versions are built with Qt 6.5

@bsdooby
Copy link
Author

bsdooby commented Oct 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants