Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Crashes when restoring sessions is enabled

Open
#1,155 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, linux
Domain
desktop

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
  1. Enable session restoring
  2. Add some data
  3. Do not save it
  4. Close the app
  5. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dail8859/NotepadNext

All issues in dail8859/NotepadNext

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.