Comments (5)
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.
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 key
in the conf file - as you may corrupt the database (if you run 2 instances with same database).
from nixnote2.
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.
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.
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)
- 2.1.8: please update this link https://github.com/robert7/nixnote2/releases/download/continuous-develop/NixNote2-x86_64.AppImage HOT 4
- AppImage file name must contain version number HOT 5
- Shortcuts don't seem to be syncing HOT 2
- regression introduced in sorting code (pull #187) - narrow note list no longer sorted HOT 3
- Clarity on build pipeline, branches, tags HOT 3
- Releases: please provide binary for macOS
- regression since v2.1.9: nixnote2 no longer exiting cleanly (terminated by SIGABRT) HOT 14
- master branch triggers an unhandled exception in EDAMErrorCode::RATE_LIMIT_REACHED exception handling HOT 4
- develop branch - ccache added build dependency for the build-with-qmake.sh script not explicitely documented HOT 4
- debian packaging - wrong debian changelog package name
- Feature Request: add link to the images HOT 1
- Bug reseting background color of a note HOT 1
- Bug: Expanded icon and collapse icon don't change the visual HOT 1
- Need some help for building on Windows HOT 5
- Tags UI: not enough of space
- UI: dark theme: title in unreadable (white on white) when active (after mouse click)
- Windows: quick freezes (2-3 sec) each ~15secs HOT 2
- Feature request: Wayland support & icu 74.2 lib HOT 3
- API Issues with initial sync (RateLimitExceeded) HOT 37
- Nixnote2 will not connect to validate account HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixnote2.