Notepad3 v5.19.815.2595 crashes while opening the file

Created on 23 Sep 2019  路  7Comments  路  Source: rizonesoft/Notepad3

When opening a file (from command line or in notepad menus) application tries to load file for some time (few seconds) and than crashes and closes immediately leaving no information.

After opening the file I recognized the scrollbar appears, indicating the file content had to be loaded or analyzed for it's length.

Error happens when I try to open Apache config file: _httpd.conf_

Here is my configuration:
[Notepad3] [Settings] SettingsVersion=4 Favorites=%APPDATA%\Rizonesoft\Notepad3\Favorites\ OpenWithDir=%USERPROFILE%\Desktop MarkLongLines=true ShowSelectionMargin=false PreserveCaretPos=true SaveFindReplace=true TabsAsSpaces=true IndentWidth=0 AutoCloseTags=true AutoCompleteWords=true AutoDetectIndentSettings=true FileWatchingMode=1 ResetFileWatching=false [Settings2] PreferredLanguageLocaleName=en-US [Statusbar Settings] [Toolbar Images] [Toolbar Labels] [Custom Colors] [Styles] ThemeFileName=Dark [Common Base] [2nd Common Base] [Text Files] [ANSI Art] [Apache Config Files] [Assembly Script] [AutoHotkey_L Script] [AutoIt3 Script] [AviSynth Script] [Awk Script] [Batch Files] [C# Source Code] [C/C++ Source Code] [Cmake Script] [Coffeescript] [Configuration Files] [CSS Style Sheets] [D Source Code] [Diff Files] [Go Source Code] [Inno Setup Script] [Java Source Code] [JavaScript] [JSON] [LaTeX Files] [Lua Script] [Makefiles] [Markdown] [MATLAB] [Nim Source Code] [NSIS Script] [Pascal Source Code] [Perl Script] [PowerShell Script] [Python Script] [Registry Files] [Resource Script] [R-S-SPlus Statistics Code] [Ruby Script] [Rust Source Code] [Shell Script] [SQL Query] [Tcl Script] [TOML Config] [VBScript] [VHDL] [Visual Basic] [Web Source Code] [XML Document] [YAML] [Window] 1920x1080 HighDpiToolBar=0 1920x1080 PosX=4152 1920x1080 PosY=189 1920x1080 SizeX=960 1920x1080 SizeY=707 1920x1080 Maximized=true 1920x1080 Zoom=100 [Suppressed Messages] [Recent Files] 01="I:\Apache_2.4\logs\localhost_80-error.log" ENC01=3 POS01=2691 02="I:\Apache_2.4\logs\error.log" ENC02=3 03="I:\PHP_5.6.38\php.ini" ENC03=3 04="I:\PHP_7.2.12\php.ini" ENC04=3 POS04=71799 05="I:\Apache_2.4\logs\localhost_443-error.log" ENC05=3 POS05=798 06="I:\Apache_2.4\conf\httpd.conf" ENC06=3 07="I:\Apache_2.4\logs\httpd.pid" ENC07=3 08="I:\Apache_2.4\logs\localhost_80-access.log" ENC08=3 09="I:\Apache_2.4\conf\php\php5.conf" ENC09=3 10="%SystemRoot%\System32\drivers\etc\hosts" ENC10=3 11="I:\Apache_2.4\conf\php\global.conf" ENC11=3 12="I:\Apache_2.4\conf\php\php7.conf" ENC12=3 13="%USERPROFILE%\Downloads\php.ini" ENC13=3 POS13=75878

I attached Windows report file, but it doesn't tell to much.
Report.wer.log

馃悶 bug

Most helpful comment

Yes, in Notepad3 beside new features, a lot of already existing Notepad2 functions have been adapted/extended or reworked, so some "bugs" may have been added too. Unfortunately, we only have a manual regression testing :cry:, which leaves a lot of space for bugs to slip into the code ...

All 7 comments

I decided to use Notepad3 after many years of using Notepad2, but now I cannot work normally (without thinking if I can open file, instead of just editing the file).

This is a big step back in comparison to reliable Notepad2 馃様

@ArturSprinter : Sorry for the inconvenience.
I am not able to reproduce your issue (using your configuration and same NP3 version).
If possible, please provide an (anonymous, non sensitive data) example file, which crashes NP3.
Ed.: ... meanwhile I found an example ... debugging ...

While analyzing the problem, feel free to to test latest development beta version, e.g. Notepad3Portable_5.19.919.2643_BETA (seems, that this version does not have a problem with my testfile).
(For beta channel access see: #1129)

I have problem opening this file (I changed extension to _.txt_ because GitHub doesn't support _.conf_ extension for attachments):
httpd.conf.txt

My machine spec:

  • OS: Windows 10 Pro v1903 (build 18326.295) x64
  • CPU: Intel Core i3-8100
  • RAM: 8GB DDR3

Maybe later I will download your repository and check what causes problem on my machine.

Okay, the problem is [Settings] IndentWidth=0 , Menu-Settings->Tab Settings... : Indentation size: 0,
causing a "division by zero" exception, which crashes the last release version. This has been fixed in the current beta versions.
Workaround for release version is to set a value != 0 ... - sorry for the inconvenience.

Ok. Good to know 馃槈

With Notepad2 this setting value worked without causing any problems (I cloned my Notepad2 settings, to have the same feel with new Notepad3).

Yes, in Notepad3 beside new features, a lot of already existing Notepad2 functions have been adapted/extended or reworked, so some "bugs" may have been added too. Unfortunately, we only have a manual regression testing :cry:, which leaves a lot of space for bugs to slip into the code ...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zb-z picture zb-z  路  3Comments

valhristov picture valhristov  路  3Comments

tzleon picture tzleon  路  3Comments

RaffaeleBianc0 picture RaffaeleBianc0  路  3Comments

blackcrack picture blackcrack  路  3Comments