FIXED? 12.62 (x64): access violations when pressing tab (multiple computers)

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
zifnab
Posts: 11
Joined: 28 Sep 2017 13:32

FIXED? 12.62 (x64): access violations when pressing tab (multiple computers)

Post by zifnab » 15 Jan 2018 11:01

hi.
I encounter EaccessViolation popups when pressing the 'Tab' key in version 12.62 64 bits.
about 80% of the time.
This happens on 2 very different computers:
- Windows 7 Enterprise (portable RJ TextEd version used)
- Windows 10 Pro (regular/installable RJ TextEd version used)
both freshly installed (so, not so many apps installed) and up to date.

here is the copy/paste of the popup window:

Code: Select all

[Please add error details below]
>

[Exception]
EAccessViolation: Access violation at address 00000000019944E1 in module 'TextEd.exe'. Read of address 0000000000000000

Date/Time          : 15/01/2018 10:54:59
Registered Owner   : ******************************
Windows            : Windows 7 Enterprise
Build              : 7601
System Up Time     : 0 days 0 hours 14 minutes 49 seconds
System Language    : Français (France)
Program Name       : D:\PA\RJ TextEd\Win64\TextEd.exe
Program Version    : Version 12.62 (64-bit)
Program Up Time    : 3 minutes, 9 seconds, 761 milliseconds
CPU                : Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz 1
Physical memory    : 16025,1640625 MB
Available memory   : 12429,4609375 MB
Current Screen     : 1920x1080, DPI: 96
System Screen      : 1920x1080, DPI: 96
Contact name       : Rickard Johansson
Contact email      : support@rj-texted.se

[Stack trace]
[00000000019944E1]{TextEd.exe  } Main.TMainForm.GetAbbreviationText (Line 35640, "Main.pas" + 21) + $15
[0000000048247E48]{Jcl250.bpl  } Jcldebug.JclCreateStackList + $48
[0000000048247BD7]{Jcl250.bpl  } Jcldebug.Unknown function at JclValidateModuleAddress + $177
[0000000048249BE2]{Jcl250.bpl  } Jcldebug.Unknown function at AddModule + $B2
[0000000048228125]{Jcl250.bpl  } Unknown function at _ZTRN13Jclhookexcept15TJclModuleArrayE + $B25
[000000004822836B]{Jcl250.bpl  } Unknown function at _ZTRN13Jclhookexcept15TJclModuleArrayE + $D6B
[000000004822850F]{Jcl250.bpl  } Unknown function at _ZTRN13Jclhookexcept15TJclModuleArrayE + $F0F
[000000000271942E]{rtl250.bpl  } System._DelphiExceptionHandler + $26E
[000000007755812D]{ntdll.dll   } Unknown function at RtlDecodePointer + $AD
[000000007754855F]{ntdll.dll   } Unknown function at RtlUnwindEx + $BBF
[000000007757BCB8]{ntdll.dll   } KiUserExceptionDispatcher + $2E
[00000000019944E1]{TextEd.exe  } Main.TMainForm.GetAbbreviationText (Line 35640, "Main.pas" + 21) + $15
[00000000014FF891]{TextEd.exe  } MainFunctions.TMainFormHelper.OnMemoExpandAbbreviation (Line 17570, "MainFunctions.pas" + 3) + $0
[0000000000939931]{TextEd.exe  } RJMemo.TRJMemo.KeyDown (Line 52887, "RJMemo.pas" + 21) + $0
[0000000000455BED]{TextEd.exe  } Vcl.Controls.TWinControl.DoKeyDown + $BD
[0000000000455C28]{TextEd.exe  } Vcl.Controls.TWinControl.WMKeyDown + $18
[0000000002717E65]{rtl250.bpl  } System.TObject.Dispatch + $45
[000000000044C410]{TextEd.exe  } Vcl.Controls.TControl.WndProc + $370
[0000000000453220]{TextEd.exe  } Vcl.Controls.TWinControl.WndProc + $930
[000000000045245C]{TextEd.exe  } Vcl.Controls.TWinControl.MainWndProc + $2C
[00000000028A1256]{rtl250.bpl  } System.Classes.Unknown function at TDataModule.WriteHeight + $46
[0000000077329BBD]{USER32.dll  } Unknown function at TranslateMessageEx + $29D
[00000000773298C2]{USER32.dll  } Unknown function at TranslateMessage + $1E2
[00000000005FF513]{TextEd.exe  } Vcl.Forms.TApplication.ProcessMessage + $133
[00000000005FF588]{TextEd.exe  } Vcl.Forms.TApplication.HandleMessage + $18
[00000000005FF9D6]{TextEd.exe  } Vcl.Forms.TApplication.Run + $E6
[0000000001A1EB65]{TextEd.exe  } TextEd.TextEd (Line 387, "" + 59) + $F
[00000000774259CD]{kernel32.dll} BaseThreadInitThunk + $D
[000000007755A561]{ntdll.dll   } RtlUserThreadStart + $21
Thanks for your help.

User avatar
Rickard Johansson
Site Admin
Posts: 5550
Joined: 19 Jul 2006 14:29

Re: 12.62 (x64): access violations when pressing tab (multiple computers)

Post by Rickard Johansson » 15 Jan 2018 16:43

Is the file "Abbreviations.xml" present in

"c:\Users\<you>\AppData\Roaming\RJ TextEd\Data\Clips\"

or

"RJ TextEd\Data\Clips" (portable version) ?

zifnab
Posts: 11
Joined: 28 Sep 2017 13:32

Re: 12.62 (x64): access violations when pressing tab (multiple computers)

Post by zifnab » 16 Jan 2018 10:45

I can only check on the computer with the portable version for now.
there IS a Abbreviations.xml file:

Code: Select all

<clips2xml/>
there is also a Abbreviations.XML.bak file with way more content:

Code: Select all

<clips2xml>
  <item text="Abbreviations" valueA="" valueB="" shortcut="" imageIndex="167" id="-1">
    <item text="Cpp" valueA="" valueB="" shortcut="" imageIndex="99" id="-1">
      <item text="for" valueA="%% » [[#1]]=@tab i » [[#2]]=@tab 0 » [[#3]]=@tab » [[#4]]=@tab » %% » for ( [[#1]] = [[#2]]; [[#1]] &lt; [[#3]]; [[#1]]++ ) » { » ¦[[#4]] » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="while" valueA="%% » [[#1]]=@tab n » [[#2]]=@tab » [[#3]]=@tab » %% » while([[#1]] &lt; [[#2]]) { » ¦[[#3]] » ¦[[#1]]++; » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
    </item>
    <item text="css" valueA="" valueB="" shortcut="" imageIndex="99" id="-1">
      <item text="fn" valueA="%% » [[#1]]=@tab arial, sans-serif » %% » font-name: [[#1]];" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="fz" valueA="%% » [[#1]]=@tab 10 » %% » font-size: [[#1]]em;" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="f" valueA="%% » [[#1]]=@tab 10 » [[#2]]=@tab arial, sans-serif » %% » font: [[#1]]em [[#2]];" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="fb" valueA="%% » [[#1]]=@tab bold » [[#2]]=@tab 10 » [[#3]]=@tab arial, sans-serif » %% » font: [[#1]] [[#2]]em [[#3]];" valueB="" shortcut="" imageIndex="149" id="-1"/>
    </item>
    <item text="Html" valueA="" valueB="" shortcut="" imageIndex="99" id="-1">
      <item text="html4s" valueA="%% » [[#1]]=@tab Document » [[#2]]=@tab » %% » &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt; » &lt;html lang=&quot;en&quot;&gt; » &lt;head&gt; » ¦&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt; » ¦&lt;title&gt;[[#1]]&lt;/title&gt; » &lt;/head&gt; » &lt;body&gt; » ¦[[#2]] » &lt;/body&gt; » &lt;/html&gt;" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="html4t" valueA="%% » [[#1]]=@tab Document » [[#2]]=@tab » %% » &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt; » &lt;html lang=&quot;en&quot;&gt; » &lt;head&gt; » ¦&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt; » ¦&lt;title&gt;[[#1]]&lt;/title&gt; » &lt;/head&gt; » &lt;body&gt; » ¦[[#2]] » &lt;/body&gt; » &lt;/html&gt;" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="html5" valueA="%% » [[#1]]=@tab Document » [[#2]]=@tab » %% » &lt;!DOCTYPE html&gt; » &lt;html lang=&quot;en&quot;&gt; » &lt;head&gt; » ¦&lt;meta charset=&quot;UTF-8&quot; /&gt; » ¦&lt;title&gt;[[#1]]&lt;/title&gt; » &lt;/head&gt; » &lt;body&gt; » ¦[[#2]] » &lt;/body&gt; » &lt;/html&gt;" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="link" valueA="%% » [[#1]]=@tab » %% » &lt;link rel=&quot;stylesheet&quot; href=&quot;[[#1]]&quot; /&gt;" valueB="" shortcut="" imageIndex="149" id="-1"/>
    </item>
    <item text="JScript" valueA="" valueB="" shortcut="" imageIndex="99" id="-1">
      <item text="func" valueA="%% » [[#1]]=@tab name » [[#2]]=@tab args » [[#3]]=@tab » %% » function [[#1]]([[#2]]) { » ¦[[#3]] » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="try" valueA="%% » [[#1]]=@tab » %% » try { » ¦[[#1]]  » } catch(e) { »     alert(e); » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
    </item>
    <item text="Pascal" valueA="" valueB="" shortcut="" imageIndex="99" id="-1">
      <item text="for" valueA="%% » [[#1]]=@tab i » [[#2]]=@tab 0 » [[#3]]=@tab » [[#4]]=@tab » %% » for [[#1]]:= [[#2]] to [[#3]] do » begin » ¦[[#4]] » end;" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="while" valueA="%% » [[#1]]=@tab i » [[#2]]=@tab » %% » while [[#1]] &lt; [[#2]] do » begin »  » ¦Inc([[#1]]); » end;" valueB="" shortcut="" imageIndex="149" id="-1"/>
    </item>
    <item text="PHP" valueA="" valueB="" shortcut="" imageIndex="99" id="-1">
      <item text="class" valueA="%% » [[#1]]=@tab name » [[#2]]=@tab » %% » class [[#1]] { » ¦[[#2]] » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="for" valueA="%% » [[#1]]=@tab x » [[#2]]=@tab 0 » [[#3]]=@tab » [[#4]]=@tab » %% » for ($[[#1]] = [[#2]]; $[[#1]] &lt;= [[#3]]; $[[#1]]++) { » ¦[[#4]] » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="func" valueA="%% » [[#1]]=@tab Name » [[#2]]=@tab Arg » [[#3]]=@tab » %% » /* »  * function [[#1]] »  * @param $[[#2]] »  */ »  » function [[#1]]($[[#2]]) { » ¦[[#3]] » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
      <item text="while" valueA="%% » [[#1]]=@tab x » [[#2]]=@tab » [[#3]]=@tab » %% » while($[[#1]] &lt;= [[#2]]) { » ¦[[#3]] » ¦$[[#1]]++; » }" valueB="" shortcut="" imageIndex="149" id="-1"/>
    </item>
  </item>
</clips2xml>
I didn't mess around with any of those files or features before.
Following your hint, I just tried the following:
  • deleting the Abbreviations.xml file and restarting RJ TextEd: launches, en error popup when pressing tab in the editor (different from before: missing object...)
  • as the backup file content seems more sane, I renamed the Abbreviations.XML.bak to Abbreviations.xml: seems to work properly now when pressing the tab key in the editor...
thanks for your help.
ps: any change in the code that would explain the improper Abbreviations.xml? feels like an unrelated change in the options somewhere is overwriting the file improperly... just a wild guess...

User avatar
Rickard Johansson
Site Admin
Posts: 5550
Joined: 19 Jul 2006 14:29

Re: 12.62 (x64): access violations when pressing tab (multiple computers)

Post by Rickard Johansson » 16 Jan 2018 21:13

I think this is fixed now in the next version (v12.70).

Post Reply