NotepadNext icon indicating copy to clipboard operation
NotepadNext copied to clipboard

Startup crash on Ubuntu Snap

Open dogbear opened this issue 1 year ago • 1 comments

Operating System and Version

Ubuntu 24.04 LTS

Distribution

SNAP

Description

HI. Installed Notepadnext via the Ubuntu App Center and started it up from there but nothing happened. Then from command prompt, ran it and got this output: [ 0.001] I: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. [ 0.057] I: ============================= [ 0.057] I: Notepad Next v0.7 (Snap) [ 0.057] I: Build Date/Time: Apr 11 2024 09:47:38 [ 0.057] I: Qt: 5.15.3 [ 0.057] I: OS: Ubuntu 24.04 LTS [ 0.057] I: Locale: en_US [ 0.057] I: CPU: x86_64 [ 0.057] I: File Path: /snap/notepadnext/13/usr/bin/NotepadNext [ 0.057] I: Arguments: /snap/notepadnext/13/usr/bin/NotepadNext [ 0.057] I: ============================= [ 0.057] I: bool NotepadNextApplication::init() [ 0.068] I: void TranslationManager::loadTranslation(QLocale) [ 0.068] I: LuaState::LuaState() [ 0.082] I: MacroManager::MacroManager(QObject*) [ 0.082] I: void MacroManager::loadSettings() [ 0.082] I: MainWindow::MainWindow(NotepadNextApplication*) [ 0.143] I: setupUi Completed [ 0.187] I: FileListDock::FileListDock(MainWindow*) [ 0.188] I: void MainWindow::setupLanguageMenu() [ 0.206] I: void MainWindow::restoreSettings() [ 0.206] I: void NotepadNextApplication::openFiles(const QStringList&) [ 0.206] I: void MainWindow::newFile() [ 0.206] I: void EditorManager::setupEditor(ScintillaNext*) [ 0.210] I: void MainWindow::addEditor(ScintillaNext*) [ 0.210] I: void MainWindow::detectLanguage(ScintillaNext*) [ 0.210] I: void MainWindow::setLanguage(ScintillaNext*, const QString&) [ 0.210] I: Language Name: Text [ 0.210] I: void DockedEditor::addEditor(ScintillaNext*) realloc(): invalid pointer Aborted (core dumped)

Any possible fixes?

Steps to Reproduce

  1. Install NotepadNext
  2. Run NotepadNext
  3. Be disappointed with NotepadNext

Additional Details

I'm running this on a Lenovo Ideapad laptop with an AMD chip.

I had uninstalled NotepadNext to try installing it via flatpak but got this message:

sudo flatpak install flathub com.github.dail8859.NotepadNext Looking for matches… error: No remote refs found for ‘flathub’

Then I tried installing the snap version again, but this time via command line and got this:

sudo snap install notepadnext error: This revision of snap "notepadnext" was published using classic confinement and thus may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which may put your system at risk.

   If you understand and want to proceed repeat the command including
   --classic.

I didn't like the sound of that so I went back to the App Center and installed NotepadNext again (which is of course the classic confinement version anyway) and same problem.

Fun!

dogbear avatar Aug 19 '24 05:08 dogbear