dail8859 / NotepadNext

A cross-platform, reimplementation of Notepad++
GNU General Public License v3.0
9.26k stars 553 forks source link

[Bug?] Primary instance already running; but PID of this instance is not active #649

Closed bsdooby closed 1 month ago

bsdooby commented 1 month ago

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 commented 1 month ago

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 (https://github.com/itay-grudev/SingleApplication/issues/190#issuecomment-1950231485) with multi-instance support for anything past Qt 6.5, thus Qt 6.7 will have this kind of error

bsdooby commented 1 month ago

I did not do any custom builds; but downloaded it from your GitHub repo. I am puzzled. What is your proposed solution?

On Sat, Oct 19, 2024 at 3:19 PM dail8859 @.***> wrote:

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) https://github.com/itay-grudev/SingleApplication/issues/190#issuecomment-1950231485) with multi-instance support for anything past Qt 6.5, thus Qt 6.7 will have this kind of error

— Reply to this email directly, view it on GitHub https://github.com/dail8859/NotepadNext/issues/649#issuecomment-2423845846, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIWLMJSQ3HUVACT5KE2YWLZ4JL4VAVCNFSM6AAAAABQET5DTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTHA2DKOBUGY . You are receiving this because you authored the thread.Message ID: @.***>

dail8859 commented 1 month ago

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

bsdooby commented 1 month ago

I did use the latest version: I observe the following: NotepadNext built w/ Q 6.6 does yield the error message, the version using Qt 6.5 runs just fine. That is super strange...

On Sat, Oct 19, 2024 at 4:13 PM dail8859 @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/dail8859/NotepadNext/issues/649#issuecomment-2423906640, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIWLMPCEWJQAZBXOC2Q3VDZ4JSG7AVCNFSM6AAAAABQET5DTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTHEYDMNRUGA . You are receiving this because you authored the thread.Message ID: @.***>

dail8859 commented 1 month ago

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 commented 1 month ago

All good then; I always prefer the official versions ;)

On Sat, Oct 19, 2024 at 5:40 PM dail8859 @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/dail8859/NotepadNext/issues/649#issuecomment-2423986375, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIWLMNMPN7R53QLIJ776JTZ4J4NHAVCNFSM6AAAAABQET5DTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTHE4DMMZXGU . You are receiving this because you authored the thread.Message ID: @.***>