Skip to content

Crashes when restoring sessions is enabled #3

Description

@oleua

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

So, I have tried to build the app myself, the error repeats the same:

NotepadNext
[     0.000] I: Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[     0.183] I: =============================
[     0.183] I: Notepad Next v0.15.1 
[     0.183] I: Build Date/Time: Sep 27 2026 00:01:28
[     0.183] I: Qt: 6.2.4
[     0.183] I: OS: Pop!_OS 22.04 LTS
[     0.183] I: Locale: uk_UA
[     0.183] I: CPU: x86_64
[     0.183] I: File Path: /usr/local/bin/NotepadNext
[     0.183] I: Arguments: NotepadNext
[     0.183] I: Config File: /home/myusername/.config/NotepadNext/NotepadNext.ini
[     0.183] I: =============================
[     0.183] I: bool NotepadNextApplication::init()
[     0.190] I: void TranslationManager::loadTranslation(QLocale)
[     0.191] I: Loaded translation ":/i18n/NotepadNext_uk.qm"
[     0.191] I: LuaState::LuaState()
[     0.199] I: MacroManager::MacroManager(QObject*)
[     0.199] I: void MacroManager::loadSettings()
[     0.199] I: MainWindow::MainWindow(NotepadNextApplication*)
[     0.236] I: setupUi Completed
[     0.294] I: FileListDock::FileListDock(MainWindow*)
[     0.294] I: void MainWindow::setupLanguageMenu()
[     0.296] I: void MainWindow::applyStyleSheet()
[     0.296] I: Loading stylesheet: ":/stylesheets/npp.css"
[     0.304] I: void MainWindow::restoreSettings()
[     0.304] I: Restoring previous session
[     0.304] I: void SessionManager::loadSession(MainWindow*)
[     0.304] I: ScintillaNext* SessionManager::loadTempFile(QSettings&)
[     0.304] D: Session temp file: "/home/myusername/.local/share/NotepadNext/NotepadNext/session/8fb0b13a-36aa-465c-aa12-6752b299febc"
[     0.304] D: Read 1 bytes

UPD: Finally, I have compiled version 0.14.0 from sources (which was strangely sitting in the package 0.15.0), and it works fine with sessions, not producing crashes.

[     0.000] I: Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[     0.181] I: =============================
[     0.181] I: Notepad Next v0.14 
[     0.181] I: Build Date/Time: Sep 27 2026 00:38:38
[     0.181] I: Qt: 6.2.4
[     0.181] I: OS: Pop!_OS 22.04 LTS
[     0.181] I: Locale: uk_UA
[     0.181] I: CPU: x86_64
[     0.181] I: File Path: /usr/local/bin/NotepadNext
[     0.181] I: Arguments: NotepadNext
[     0.181] I: Config File: /home/myusername/.config/NotepadNext/NotepadNext.ini
[     0.181] I: =============================
[     0.181] I: bool NotepadNextApplication::init()
[     0.188] I: void TranslationManager::loadTranslation(QLocale)
[     0.188] I: Loaded translation ":/i18n/NotepadNext_uk.qm"
[     0.188] I: LuaState::LuaState()
[     0.199] I: MacroManager::MacroManager(QObject*)
[     0.199] I: void MacroManager::loadSettings()
[     0.199] I: MainWindow::MainWindow(NotepadNextApplication*)
[     0.236] I: setupUi Completed
[     0.289] I: FileListDock::FileListDock(MainWindow*)
[     0.289] I: void MainWindow::setupLanguageMenu()
[     0.290] I: void MainWindow::applyStyleSheet()
[     0.290] I: Loading stylesheet: ":/stylesheets/npp.css"
[     0.298] I: void MainWindow::restoreSettings()
[     0.298] I: Restoring previous session
[     0.298] I: void SessionManager::loadSession(MainWindow*)
[     0.299] I: ScintillaNext* SessionManager::loadTempFile(QSettings&)
[     0.299] D: Session temp file: "/home/myusername/.local/share/NotepadNext/NotepadNext/session/110132a1-9afc-46ea-9eca-13fa3d79fe21"
[     0.299] D: Read 3 bytes
[     0.299] I: 110132a1-9afc-46ea-9eca-13fa3d79fe21 last modified Sun Sep 27 00:47:08 2026
[     0.299] I: void EditorManager::setupEditor(ScintillaNext*)
[     0.299] I: int EditorManager::detectEOLMode(ScintillaNext*) const
[     0.304] I: Scintilla::Internal::RegexSearchBase* Scintilla::Internal::CreateRegexSearch(CharClassify*)
[     0.305] I: void MainWindow::addEditor(ScintillaNext*)
[     0.305] I: void MainWindow::detectLanguage(ScintillaNext*)
[     0.305] I: void MainWindow::setLanguage(ScintillaNext*, const QString&)
[     0.305] I: Language Name: Text
[     0.305] I: void DockedEditor::addEditor(ScintillaNext*)
[     0.331] D: Setting session file language to "Text"
[     0.331] I: void NotepadNextApplication::openFiles(const QStringList&)
[     0.430] I: void MainWindow::focusIn()
[     0.431] I: bool MainWindow::checkFileForModification(ScintillaNext*)
[     2.556] I: void MainWindow::saveSettings() const
[     2.556] I: void SessionManager::saveSession(MainWindow*)
[     2.573] I: QFileDevice::FileError writeToDisk(const QByteArray&, const QString&, ScintillaNext::BomType)
[     2.583] I: void MacroManager::saveSettings() const

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions