-
Notifications
You must be signed in to change notification settings - Fork 32
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
regression since v2.1.9: nixnote2 no longer exiting cleanly (terminated by SIGABRT) #208
Comments
Are your auto sync options enabled? If so, you could try to disable all the options about auto sync temprarily, and see if it happens still. |
I had auto sync on startup & shutdown & every 15 mins enabled. (But those were also enabled on 2.1.8, when it exited cleanly). I've disabled all 3 of those auto sync settings, and the issue is still there. This is the output I get now:
The only message that no longer appears is this one: |
You could run nixnote with --logLevel=1, and see what happens. ps: I noticed that your shared memory segment key is 'foo', instead of a random string, did you do any changes and some of them may change the exiting process of nixnote? |
Hi boo-yee Thanks for your help. When running the develop branch with "--logLevel=1", here's the output I get when all auto syncs are disabled and exiting through Ctrl+Q:
|
If so, then in NixNote::saveOnExit(), comment out from line 1302 to 1304, like this:
(or you can apply the patch I upload below) and build again. I tested about 10 times, and found no core dump under bash. You could have a try and see if it can exit normally. |
Here's the output I get with the patch applied:
To be complete, it's ~the same when running in bash:
|
If so, it should be syncThread, indexThread, counterThread or browserThread. Apply this new patch, and try again please. It may work this time. |
Thanks for all your help. No SIGABRT this time:
(FYI I did have to change |
That's OK. I'll create a pr for this issue later.
I forgot to update the patch. My bad. |
no longer exiting cleanly (terminated by SIGABRT) robert7#208
no longer exiting cleanly (terminated by SIGABRT) robert7#208
Thanks for fixing it, much appreciated. |
You contributed too. Thank both of us. |
Fix the issue: regression since v2.1.9: nixnote2 no longer exiting cleanly (terminated by SIGABRT) #208
@robert7 should I close this bug report or do you want to wait for the fix to reach the master branch? |
I just merged develop to master |
no longer exiting cleanly (terminated by SIGABRT) robert7#208
This issue should be closed. |
Expected vs. actual behavior
Up until 2.1.8, when I exit nixnote (File->Quit or Ctrl+Q) it terminates cleanly. Since 2.1.9 it gets terminated by a SIBABRT signal when I exit it.
Running nixnote2 on Linux (Fedora 38).
Here's what it looks line on 2.1.8:
What it looks like on the develop branch and on 2.1.9:
When I run it using the bash shell, it also tells me it did a coredump:
Happy to do a debug build or anything else you want me to look at, if you can point me to instructions.
Thanks,
Ludovic
The text was updated successfully, but these errors were encountered: