Crashes when restoring sessions is enabled
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start at SessionManager::loadSession(MainWindow*) and SessionManager::loadTempFile(QSettings&), using the reported restore sequence and the session file path in the backtrace. Inspect how the 9-byte temporary file is handled when unsaved data is restored. Done means reopening with session restoring enabled no longer crashes after adding and leaving data unsaved.
Written by the indexing model from the issue text.
Description
Operating System and Version
Pop_OS 22.04
Distribution
installer
Description
After the update to 0.15.1 I have started to experience constant crashes after enabling restoring sessions option in the menu.
Steps to Reproduce
- Enable session restoring
- Add some data
- Do not save it
- Close the app
- Open the app and see the crash
Debug Information
The backtrace is the following:
[New Thread 0x7fffe8c75640 (LWP 38416)]
[ 0.536] I: void TranslationManager::loadTranslation(QLocale)
[ 0.536] I: Loaded translation ":/i18n/NotepadNext_uk.qm"
[ 0.536] I: LuaState::LuaState()
[ 0.544] I: MacroManager::MacroManager(QObject*)
[ 0.544] I: void MacroManager::loadSettings()
[ 0.544] I: MainWindow::MainWindow(NotepadNextApplication*)
[ 0.592] I: setupUi Completed
[New Thread 0x7fffc7fff640 (LWP 38417)]
[ 0.689] I: FileListDock::FileListDock(MainWindow*)
[ 0.690] I: void MainWindow::setupLanguageMenu()
[ 0.692] I: void MainWindow::applyStyleSheet()
[ 0.692] I: Loading stylesheet: ":/stylesheets/npp.css"
[ 0.707] I: void MainWindow::restoreSettings()
[ 0.707] I: Restoring previous session
[ 0.707] I: void SessionManager::loadSession(MainWindow*)
[ 0.708] I: ScintillaNext* SessionManager::loadTempFile(QSettings&)
[ 0.708] D: Session temp file: "/home/myusername/.local/share/NotepadNext/NotepadNext/session/6573007f-c0bb-460e-ae70-fe7e000a5605"
[ 0.708] D: Read 9 bytes
Thread 1 "NotepadNext" received signal SIGSEGV, Segmentation fault.
0x0000555555631821 in ?? ()
(gdb) backtrace
#0 0x0000555555631821 in ()
#1 0x0000555555637a60 in ()
#2 0x00005555555fd4c8 in ()
#3 0x00007ffff5e29d90 in __libc_start_call_main (main=main@entry=0x5555555fafc0, argc=argc@entry=1, argv=argv@entry=0x7fffffffdfc8)
at ../sysdeps/nptl/libc_start_call_main.h:58
#4 0x00007ffff5e29e40 in __libc_start_main_impl
(main=0x5555555fafc0, argc=1, argv=0x7fffffffdfc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdfb8)
at ../csu/libc-start.c:392
#5 0x0000555555608235 in ()
Debug info:
Notepad Next v0.15.1
Build Date/Time: Sep 22 2026 16:00:00
Qt: 6.2.4
OS: Pop!_OS 22.04 LTS
Locale: uk_UA
CPU: x86_64
File Path: /usr/bin/NotepadNext
Arguments: /usr/bin/NotepadNext
Config File: /home/myusername/.config/NotepadNext/NotepadNext.ini
Additional Details
e.g. screenshots, logs, etc
- Dominant language
- C++
- Stars
- 14.7k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 5
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dail8859/NotepadNext
-
Extended search mode does not find escape sequences (\t, \n, \r...)Possibly taken @CyrilB1531 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
dail8859/NotepadNext#1181 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
dail8859/NotepadNext#1145 · 1 comment ·
Maintainers usually reply within 1 day
-
macos
Difficulty 3/5 Half a day Newbie friendliness 30/100
dail8859/NotepadNext#1164 ·
Maintainers usually reply within 1 day
-
linux
Difficulty 3/5 1-2 days Newbie friendliness 55/100
dail8859/NotepadNext#1161 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
dail8859/NotepadNext#1140 ·
Maintainers usually reply within 1 day
All issues in dail8859/NotepadNext
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
espressif/esp-matter#1913 ·
-
bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
chipsalliance/verible#2644 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
grafana/pyroscope-dotnet#470 ·
Maintainers usually reply within 1 day
-
documentation P5 XS
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-astro/AlpacaBridge#1848 ·
Maintainers usually reply within 1 day