Skip to content
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

NotepadNext auto-update fails on Windows 11 #714

Closed
3 tasks
inkydragon opened this issue Feb 12, 2025 · 1 comment
Closed
3 tasks

NotepadNext auto-update fails on Windows 11 #714

inkydragon opened this issue Feb 12, 2025 · 1 comment

Comments

@inkydragon
Copy link
Contributor

Operating System and Version

Win11 24H2

Distribution

NotepadNext-v0.9-Installer.exe

Description

NotepadNext-v0.9 opened the binary patch file in text mode instead of installing it after downloading the update patch using automatic updates on Windows.

I re-downloaded and reinstalled NotepadNext-v0.9 can reproduce the problem stably.

The logs don't seem to give any more useful information. Further debugging is required.

  • Try more versions.
    The problem didn't start with v0.9, it was present in the previous one or two releases as well,
    and the approximate range of releases in which the regression was introduced needs to be determined.
  • Use source build version
  • with debug mode

Steps to Reproduce

  1. Install NotepadNext using Installer
    (For All user, but not use default install path)
  2. Open NotepadNext, waiting for update popup or click check update
  3. Click Yes to download update, then click Yes to install update
  4. NotepadNext opened QSUUpdate.bin as binary file

Additional Details

screenshots:
Image

logs:

Check for update
[     0.039] I: =============================
[     0.039] I: Notepad Next v0.9.0.0
[     0.039] I: Build Date/Time: Nov 20 2024 00:47:03
[     0.039] I: Qt: 6.5.3
[     0.039] I: OS: Windows 11 Version 24H2
[     0.039] I: Locale: zh_CN
[     0.039] I: CPU: x86_64
[     0.039] I: File Path: D:/env/Notepad Next/NotepadNext.exe
[     0.039] I: Arguments: D:\env\Notepad Next\NotepadNext.exe
[     0.039] I: =============================
[     0.039] I: bool __cdecl NotepadNextApplication::init(void)
[     0.048] I: void __cdecl TranslationManager::loadTranslation(class QLocale)
[     0.048] I: Loaded translation ":/i18n/NotepadNext_zh_CN.qm"
[     0.048] I: Loaded translation ":/i18n/qtbase_zh_CN.qm"
[     0.048] I: __cdecl LuaState::LuaState(void)
[     0.053] I: __cdecl MacroManager::MacroManager(class QObject *)
[     0.053] I: void __cdecl MacroManager::loadSettings(void)
[     0.054] I: __cdecl MainWindow::MainWindow(class NotepadNextApplication *)
[     0.064] I: setupUi Completed
[     0.098] I: __cdecl FileListDock::FileListDock(class MainWindow *)
[     0.099] I: void __cdecl MainWindow::setupLanguageMenu(void)
[     0.101] I: void __cdecl MainWindow::applyStyleSheet(void)
[     0.101] I: Loading stylesheet:  ":/stylesheets/npp.css"
[     0.110] I: void __cdecl MainWindow::restoreSettings(void)
[     0.110] I: AutoUpdates: 1
[     0.110] I: void __cdecl NotepadNextApplication::openFiles(const class QList<class QString> &)
[     0.110] I: void __cdecl MainWindow::newFile(void)
[     0.110] I: void __cdecl EditorManager::setupEditor(class ScintillaNext *)
[     0.111] I: void __cdecl MainWindow::addEditor(class ScintillaNext *)
[     0.111] I: void __cdecl MainWindow::detectLanguage(class ScintillaNext *)
[     0.111] I: void __cdecl MainWindow::setLanguage(class ScintillaNext *,const class QString &)
[     0.111] I: Language Name: Text
[     0.111] I: void __cdecl DockedEditor::addEditor(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::activateEditor(class ScintillaNext *)
[     0.224] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateGui(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateFileStatusBasedUi(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateSaveStatusBasedUi(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateEOLBasedUi(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateLanguageBasedUi(class ScintillaNext *)
[     0.286] I: void __cdecl MainWindow::focusIn(void)
[     0.286] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[     0.505] I: class Scintilla::Internal::RegexSearchBase *__cdecl Scintilla::Internal::CreateRegexSearch(class Scintilla::Internal::CharClassify *)
[    10.181] I: void __cdecl MainWindow::focusIn(void)
[    10.182] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    15.107] I: Last checked for updates at: Wed Feb 12 11:11:35 2025
[    33.955] I: void __cdecl MainWindow::focusIn(void)
[    33.956] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    45.583] I: void __cdecl MainWindow::checkForUpdates(bool)
[    84.431] I: void __cdecl MainWindow::focusIn(void)
[    84.432] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    89.337] I: void __cdecl MainWindow::focusIn(void)
[    89.338] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
Install / Open QSU_Update.bin
[     0.039] I: =============================
[     0.039] I: Notepad Next v0.9.0.0
[     0.039] I: Build Date/Time: Nov 20 2024 00:47:03
[     0.039] I: Qt: 6.5.3
[     0.039] I: OS: Windows 11 Version 24H2
[     0.039] I: Locale: zh_CN
[     0.039] I: CPU: x86_64
[     0.039] I: File Path: D:/env/Notepad Next/NotepadNext.exe
[     0.039] I: Arguments: D:\env\Notepad Next\NotepadNext.exe
[     0.039] I: =============================
[     0.039] I: bool __cdecl NotepadNextApplication::init(void)
[     0.048] I: void __cdecl TranslationManager::loadTranslation(class QLocale)
[     0.048] I: Loaded translation ":/i18n/NotepadNext_zh_CN.qm"
[     0.048] I: Loaded translation ":/i18n/qtbase_zh_CN.qm"
[     0.048] I: __cdecl LuaState::LuaState(void)
[     0.053] I: __cdecl MacroManager::MacroManager(class QObject *)
[     0.053] I: void __cdecl MacroManager::loadSettings(void)
[     0.054] I: __cdecl MainWindow::MainWindow(class NotepadNextApplication *)
[     0.064] I: setupUi Completed
[     0.098] I: __cdecl FileListDock::FileListDock(class MainWindow *)
[     0.099] I: void __cdecl MainWindow::setupLanguageMenu(void)
[     0.101] I: void __cdecl MainWindow::applyStyleSheet(void)
[     0.101] I: Loading stylesheet:  ":/stylesheets/npp.css"
[     0.110] I: void __cdecl MainWindow::restoreSettings(void)
[     0.110] I: AutoUpdates: 1
[     0.110] I: void __cdecl NotepadNextApplication::openFiles(const class QList<class QString> &)
[     0.110] I: void __cdecl MainWindow::newFile(void)
[     0.110] I: void __cdecl EditorManager::setupEditor(class ScintillaNext *)
[     0.111] I: void __cdecl MainWindow::addEditor(class ScintillaNext *)
[     0.111] I: void __cdecl MainWindow::detectLanguage(class ScintillaNext *)
[     0.111] I: void __cdecl MainWindow::setLanguage(class ScintillaNext *,const class QString &)
[     0.111] I: Language Name: Text
[     0.111] I: void __cdecl DockedEditor::addEditor(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::activateEditor(class ScintillaNext *)
[     0.224] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateGui(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateFileStatusBasedUi(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateSaveStatusBasedUi(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateEOLBasedUi(class ScintillaNext *)
[     0.224] I: void __cdecl MainWindow::updateLanguageBasedUi(class ScintillaNext *)
[     0.286] I: void __cdecl MainWindow::focusIn(void)
[     0.286] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[     0.505] I: class Scintilla::Internal::RegexSearchBase *__cdecl Scintilla::Internal::CreateRegexSearch(class Scintilla::Internal::CharClassify *)
[    10.181] I: void __cdecl MainWindow::focusIn(void)
[    10.182] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    15.107] I: Last checked for updates at: Wed Feb 12 11:11:35 2025
[    33.955] I: void __cdecl MainWindow::focusIn(void)
[    33.956] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    45.583] I: void __cdecl MainWindow::checkForUpdates(bool)
[    84.431] I: void __cdecl MainWindow::focusIn(void)
[    84.432] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    89.337] I: void __cdecl MainWindow::focusIn(void)
[    89.338] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    96.465] I: void __cdecl MainWindow::focusIn(void)
[    96.465] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[    99.188] I: void __cdecl MainWindow::checkForUpdates(bool)
[   152.714] I: void __cdecl MainWindow::bringWindowToForeground(void)
[   152.759] I: void __cdecl NotepadNextApplication::receiveInfoFromSecondaryInstance(unsigned int,class QByteArray)
[   152.760] I: void __cdecl NotepadNextApplication::openFiles(const class QList<class QString> &)
[   152.761] I: void __cdecl MainWindow::openFileList(const class QList<class QString> &)
[   152.761] I: C:\Users\inkyd\Downloads\QSU_Update.bin
[   152.770] D: Read 4194304 bytes
[   152.771] D: BOM mark not found, using uchardet
[   152.785] D: uchardet detected encoding as: ''
[   152.785] D: Using codec: ''
[   152.788] D: Read 4194304 bytes
[   152.792] D: Read 2742937 bytes
[   152.794] I: QSU_Update.bin last modified Wed Jun 26 20:52:40 2024
[   152.795] I: void __cdecl EditorManager::setupEditor(class ScintillaNext *)
[   152.795] D: EditorConfig settings for: "C:\\Users\\inkyd\\Downloads\\QSU_Update.bin"
[   152.795] I: void __cdecl MainWindow::addEditor(class ScintillaNext *)
[   152.796] I: void __cdecl MainWindow::detectLanguage(class ScintillaNext *)
[   152.796] I: class QString __cdecl NotepadNextApplication::detectLanguage(class ScintillaNext *) const
[   152.796] I: class QString __cdecl NotepadNextApplication::detectLanguageFromExtension(const class QString &) const
[   152.796] I: class QString __cdecl NotepadNextApplication::detectLanguageFromContents(class ScintillaNext *) const
[   152.796] I: void __cdecl MainWindow::setLanguage(class ScintillaNext *,const class QString &)
[   152.796] I: Language Name: Text
[   152.802] I: void __cdecl DockedEditor::addEditor(class ScintillaNext *)
[   152.808] I: void __cdecl MainWindow::activateEditor(class ScintillaNext *)
[   152.809] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[   152.809] I: QSU_Update.bin last modified Wed Jun 26 20:52:40 2024
[   152.809] I: void __cdecl MainWindow::updateGui(class ScintillaNext *)
[   152.809] I: void __cdecl MainWindow::updateFileStatusBasedUi(class ScintillaNext *)
[   152.809] I: void __cdecl MainWindow::updateSaveStatusBasedUi(class ScintillaNext *)
[   152.810] I: void __cdecl MainWindow::updateEOLBasedUi(class ScintillaNext *)
[   152.810] I: void __cdecl MainWindow::updateLanguageBasedUi(class ScintillaNext *)
[   153.229] W: DirectWrite: CreateFontFaceFromHDC() failed (指示输入文件 (例如字体文件) 中的错误。) for QFontDef(Family="Fixedsys", pointsize=11.25, pixelsize=16, styleHint=5, weight=400, stretch=100, hintingPreference=0) LOGFONT("Fixedsys", lfWidth=0, lfHeight=-16) dpi=96
[   153.230] W:   OpenType support missing for "Courier New", script 9
[   153.231] W:   OpenType support missing for "Tahoma", script 9
[   153.231] W:   OpenType support missing for "SimSun", script 9
[   153.232] W:   OpenType support missing for "Arial", script 9
[   153.232] W:   OpenType support missing for "MS UI Gothic", script 9
[   153.232] W:   OpenType support missing for "Segoe UI Emoji", script 9
[   153.232] W:   OpenType support missing for "Segoe UI Symbol", script 9
[   153.234] W:   OpenType support missing for "Courier New", script 66
[   153.234] W:   OpenType support missing for "Tahoma", script 66
[   153.235] W:   OpenType support missing for "SimSun", script 66
[   153.235] W:   OpenType support missing for "Arial", script 66
[   153.235] W:   OpenType support missing for "MS UI Gothic", script 66
[   153.235] W:   OpenType support missing for "Segoe UI Emoji", script 66
[   153.235] W:   OpenType support missing for "Segoe UI Symbol", script 66
[   153.465] I: class Scintilla::Internal::RegexSearchBase *__cdecl Scintilla::Internal::CreateRegexSearch(class Scintilla::Internal::CharClassify *)
[   153.527] W:   OpenType support missing for "Courier New", script 10
[   153.528] W:   OpenType support missing for "Tahoma", script 10
[   153.528] W:   OpenType support missing for "SimSun", script 10
[   153.528] W:   OpenType support missing for "Arial", script 10
[   153.528] W:   OpenType support missing for "MS UI Gothic", script 10
[   153.529] W:   OpenType support missing for "Segoe UI Emoji", script 10
[   153.529] W:   OpenType support missing for "Segoe UI Symbol", script 10
[   153.531] W:   OpenType support missing for "Courier New", script 11
[   153.531] W:   OpenType support missing for "Tahoma", script 11
[   153.532] W:   OpenType support missing for "SimSun", script 11
[   153.532] W:   OpenType support missing for "Arial", script 11
[   153.532] W:   OpenType support missing for "MS UI Gothic", script 11
[   153.532] W:   OpenType support missing for "Segoe UI Emoji", script 11
[   153.533] W:   OpenType support missing for "Segoe UI Symbol", script 11
[   153.572] W:   OpenType support missing for "Courier New", script 18
[   153.572] W:   OpenType support missing for "Tahoma", script 18
[   153.572] W:   OpenType support missing for "SimSun", script 18
[   153.572] W:   OpenType support missing for "Arial", script 18
[   153.573] W:   OpenType support missing for "MS UI Gothic", script 18
[   153.573] W:   OpenType support missing for "Segoe UI Emoji", script 18
[   153.573] W:   OpenType support missing for "Segoe UI Symbol", script 18
[   153.595] W:   OpenType support missing for "Courier New", script 14
[   153.595] W:   OpenType support missing for "Tahoma", script 14
[   153.595] W:   OpenType support missing for "SimSun", script 14
[   153.595] W:   OpenType support missing for "Arial", script 14
[   153.596] W:   OpenType support missing for "MS UI Gothic", script 14
[   153.596] W:   OpenType support missing for "Segoe UI Emoji", script 14
[   153.596] W:   OpenType support missing for "Segoe UI Symbol", script 14
[   153.658] W:   OpenType support missing for "Courier New", script 15
[   153.658] W:   OpenType support missing for "Tahoma", script 15
[   153.659] W:   OpenType support missing for "SimSun", script 15
[   153.659] W:   OpenType support missing for "Arial", script 15
[   153.659] W:   OpenType support missing for "MS UI Gothic", script 15
[   153.659] W:   OpenType support missing for "Segoe UI Emoji", script 15
[   153.660] W:   OpenType support missing for "Segoe UI Symbol", script 15
[   153.674] W:   OpenType support missing for "Courier New", script 12
[   153.675] W:   OpenType support missing for "Tahoma", script 12
[   153.675] W:   OpenType support missing for "SimSun", script 12
[   153.675] W:   OpenType support missing for "Arial", script 12
[   153.675] W:   OpenType support missing for "MS UI Gothic", script 12
[   153.675] W:   OpenType support missing for "Segoe UI Emoji", script 12
[   153.676] W:   OpenType support missing for "Segoe UI Symbol", script 12
[   153.720] W:   OpenType support missing for "Courier New", script 32
[   153.720] W:   OpenType support missing for "Tahoma", script 32
[   153.721] W:   OpenType support missing for "SimSun", script 32
[   153.721] W:   OpenType support missing for "Arial", script 32
[   153.722] W:   OpenType support missing for "MS UI Gothic", script 32
[   153.722] W:   OpenType support missing for "Segoe UI Emoji", script 32
[   153.723] W:   OpenType support missing for "Segoe UI Symbol", script 32
[   154.033] W:   OpenType support missing for "Courier New", script 16
[   154.033] W:   OpenType support missing for "Tahoma", script 16
[   154.034] W:   OpenType support missing for "SimSun", script 16
[   154.034] W:   OpenType support missing for "Arial", script 16
[   154.034] W:   OpenType support missing for "MS UI Gothic", script 16
[   154.034] W:   OpenType support missing for "Segoe UI Emoji", script 16
[   154.034] W:   OpenType support missing for "Segoe UI Symbol", script 16
[   154.039] W:   OpenType support missing for "Courier New", script 17
[   154.039] W:   OpenType support missing for "Tahoma", script 17
[   154.040] W:   OpenType support missing for "SimSun", script 17
[   154.040] W:   OpenType support missing for "Arial", script 17
[   154.040] W:   OpenType support missing for "MS UI Gothic", script 17
[   154.040] W:   OpenType support missing for "Segoe UI Emoji", script 17
[   154.040] W:   OpenType support missing for "Segoe UI Symbol", script 17
[   154.090] W:   OpenType support missing for "Courier New", script 20
[   154.091] W:   OpenType support missing for "Tahoma", script 20
[   154.091] W:   OpenType support missing for "SimSun", script 20
[   154.092] W:   OpenType support missing for "Arial", script 20
[   154.092] W:   OpenType support missing for "MS UI Gothic", script 20
[   154.092] W:   OpenType support missing for "Segoe UI Emoji", script 20
[   154.093] W:   OpenType support missing for "Segoe UI Symbol", script 20
[   154.130] W:   OpenType support missing for "Courier New", script 13
[   154.130] W:   OpenType support missing for "Tahoma", script 13
[   154.130] W:   OpenType support missing for "SimSun", script 13
[   154.131] W:   OpenType support missing for "Arial", script 13
[   154.131] W:   OpenType support missing for "MS UI Gothic", script 13
[   154.131] W:   OpenType support missing for "Segoe UI Emoji", script 13
[   154.131] W:   OpenType support missing for "Segoe UI Symbol", script 13
[   154.343] W:   OpenType support missing for "Courier New", script 19
[   154.343] W:   OpenType support missing for "Tahoma", script 19
[   154.344] W:   OpenType support missing for "SimSun", script 19
[   154.344] W:   OpenType support missing for "Arial", script 19
[   154.344] W:   OpenType support missing for "MS UI Gothic", script 19
[   154.345] W:   OpenType support missing for "Segoe UI Emoji", script 19
[   154.345] W:   OpenType support missing for "Segoe UI Symbol", script 19
[   156.054] W: DirectWrite: CreateFontFaceFromHDC() failed (指示输入文件 (例如字体文件) 中的错误。) for QFontDef(Family="System", pointsize=11.25, pixelsize=16, styleHint=5, weight=400, stretch=100, hintingPreference=0) LOGFONT("System", lfWidth=0, lfHeight=-16) dpi=96
[   156.055] W: DirectWrite: CreateFontFaceFromHDC() failed (指示输入文件 (例如字体文件) 中的错误。) for QFontDef(Family="Terminal", pointsize=11.25, pixelsize=16, styleHint=5, weight=400, stretch=100, hintingPreference=0) LOGFONT("Terminal", lfWidth=0, lfHeight=-16) dpi=96
[   171.742] I: void __cdecl MainWindow::focusIn(void)
[   171.742] I: bool __cdecl MainWindow::checkFileForModification(class ScintillaNext *)
[   171.743] I: QSU_Update.bin last modified Wed Jun 26 20:52:40 2024
@dail8859
Copy link
Owner

Unfortunately, there was a bug in the QSimpleUpdater package which did not properly rename the downloaded file correctly and Windows tries to "open" the bin file rather than execute it. This has been fixed now (#710) by simply updating that 3rd party library. I'll pin this issue for anyone else running across this.

Note to future readers

If you are running v0.9 you will have to manually update Notepad Next this time. This is fixed for future releases. Apologies for any inconveniences.

@dail8859 dail8859 pinned this issue Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants