Giter Site home page Giter Site logo

Comments (5)

robert7 avatar robert7 commented on July 20, 2024

It says "DEBUG ... Another running instance with same account detected - configured action: "SHOW_OTHER"" ... Trying to activate it..

That means the app is already running in your system. And the new instance can't start - and according to configuration it tried to activate the "other instance" and then quit.

I agree that the DEBUG level may not be appropriate, so I change to INFO (but its not really an error).

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

Btw: --logLevel=0 is TRACE log level (most verbose); DEBUG level is --logLevel=1 and INFO level (default) is --logLevel=2

I will improve logging in the code handling running instances (as I also had problems in special circumstances).

Btw - don't remove keyin the conf file - as you may corrupt the database (if you run 2 instances with same database).

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

In the last version 2.1.0-beta4l you get a bit more info, whats is happening:

WARN  2018-10-23 08:31:31.540 src/utilities/crossmemorymapper.cpp:55 Shared memory failed to allocate, key: "36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2"
DEBUG 2018-10-23 08:31:31.540 src/utilities/crossmemorymapper.cpp:98 Shared memory attach, key: "36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2", result: true
DEBUG 2018-10-23 08:31:31.540 src/utilities/crossmemorymapper.cpp:106 Shared memory detach, key: "36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2", result: true
WARN  2018-10-23 08:31:31.540 src/utilities/crossmemorymapper.cpp:55 Shared memory failed to allocate, key: "36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2"
INFO  2018-10-23 08:31:31.540 src/main.cpp:225 New shared memory segment could not be created.
INFO  2018-10-23 08:31:31.540 src/main.cpp:226 We assume another instance with the same configuration is running, instance key:"36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2"
INFO  2018-10-23 08:31:31.540 src/main.cpp:252 Another running instance with same account detected - configured action: "SHOW_OTHER" instance key:"36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2"
DEBUG 2018-10-23 08:31:31.540 src/utilities/crossmemorymapper.cpp:98 Shared memory attach, key: "36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2", result: true
INFO  2018-10-23 08:31:31.540 src/main.cpp:257 Trying to activate it..
DEBUG 2018-10-23 08:31:31.540 src/utilities/crossmemorymapper.cpp:106 Shared memory detach, key: "36e376fd-a44f-4e96-9b2d-3fa4ea36cf0e2", result: true

from nixnote2.

HaleTom avatar HaleTom commented on July 20, 2024

Cheers - this will make it much easier for others to track this down if it ever happens again.

I am pretty sure that I had already killed the other running instances of nixnote2, but from the error messages it does look like I was wrong.

from nixnote2.

robert7 avatar robert7 commented on July 20, 2024

The "instance running" detection is done by shared memory segment. In "normal cases" this should work OK, but for special cases it may not work correctly.

E.g. I have seen one case where 2 instances each compiled again different version of Qt on same machine, didn't do the detection correctly.

In case it happens again, try analyse a bit and eventually send me more info.

from nixnote2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.