Author Topic: Slick Hang on longish path  (Read 947 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1660
  • Hero Points: 155
  • Text
Slick Hang on longish path
« on: May 21, 2013, 06:07:42 pm »
OK, so in trying to repro the stack-on-close buffer issue, I found a worse one where Slick becomes unresponsive and using 100% of one CPU.

Here is the transcript from my CMD window:
rem First, create a longish path (about 135 characters).
rem Then create file "foo". It doesn't hang with file "foo.txt"
C:\Users\JOE_PO~1\AppData\Local\Temp\root\1\2\3\4\5\6\7\8\9\10\11\12\13\14\15\16\17\18\19\20\21\22\23\24\25\26\27\28\29\30\31\32\33\34>echo > foo

C:\Users\JOE_PO~1\AppData\Local\Temp\root\1\2\3\4\5\6\7\8\9\10\11\12\13\14\15\16\17\18\19\20\21\22\23\24\25\26\27\28\29\30\31\32\33\34>vs foo

Now, slick becomes unresponsive.
Breaking with ctrl+shift+alt+f2:
---------------------------
Slick-C Error
---------------------------
Break key pressed.  Macro halted

file=LanguageSettings.ex offset=14599
---------------------------
OK   
---------------------------
 Break key pressed.  Macro halted
LanguageSettings.ex 14599 se.lang.api.LanguageSettings.maybeUseLanguageOptionItemDefault(fundamental,12,<empty>,<empty>)   p_window_id: 129   p_object: OI_EDITOR   p_name:
LanguageSettings.ex 14562 se.lang.api.LanguageSettings.checkAllLanguageOptionDefaults(fundamental,
   2:   
  • =0

   2:   [1]=0
   2:   [2]=1
   2:   [3]=0
   2:   [4]=0
   2:   [5]=1
   2:   [6]=0
   2:   [7]=0
   2:   [8]=0
   2:   [9]=0
   2:   [10]=0
   2:   [11]=0
   2:   [12]=<empty>
   p_window_id: 129
   p_object: OI_EDITOR
   p_name:
LanguageSettings.ex 906 se.lang.api.LanguageSettings.getAllLanguageOptions(fundamental,
   2:   ._typename()=VS-LANGUAGE-OPTIONS
   2:   .szRefersToLanguage=(null)
   2:   .szLexerName=
   2:   .ColorFlags=4
   2:   .LeftMargin=1
   2:   .RightMargin=74
   2:   .NewParagraphMargin=1
   2:   .WordWrapStyle=1
   2:   .IndentWithTabs=1
   2:   .DisplayLineNumbers=0
   2:   .SyntaxExpansion=(null)
   2:   .szTabs=+4
   2:   .szModeName=Plain Text
   2:   .szBeginEndPairs=(null)
   2:   .szAliasFilename=(null)
   2:   .szEventTableName=default-keys
   2:   .szWordChars=A-Za-z0-9_'.$
   2:   .IndentStyle=1
   2:   .SyntaxIndent=(null)
   2:   .TruncateLength=0
   2:   .encoding=(null)
   2:   .default-dtd=(null)
   2:   .UseFileAssociation=(null)
   2:   .szOpenApplication=(null)
   2:   .szInheritsFrom=(null)
   2:   .BoundsStart=0
   2:   .BoundsEnd=0
   2:   .AutoCaps=0
   2:   .SoftWrap=0
   2:   .SoftWrapOnWord=1
   2:   .minAbbrev=(null)
   2:   .IndentCaseFromSwitch=(null)
   2:   .PadParens=(null)
   2:   .NoSpaceBeforeParen=(null)
   2:   .BeginEndStyle=(null)
   2:   .PointerStyle=(null)
   2:   .FunctionBraceOnNewLine=(null)
   2:   .ShowTabs=0
   2:   .KeywordCasing=(null)
   2:   .TagCasing=(null)
   2:   .AttributeCasing=(null)
   2:   .ValueCasing=(null)
   2:   .HexValueCasing=(null)
   2:   .szFileExtensions=(null)
   2:   .HexMode=0
   2:   .LineNumbersLen=1
   2:   .LineNumbersFlags=0
   p_window_id: 129
   p_object: OI_EDITOR
   p_name:
setupext.ex 23779 _GetDefaultLanguageOptions(fundamental,fundamental,
   3:   ._typename()=VS-LANGUAGE-OPTIONS
   3:   .szRefersToLanguage=(null)
   3:   .szLexerName=
   3:   .ColorFlags=4
   3:   .LeftMargin=1
   3:   .RightMargin=74
   3:   .NewParagraphMargin=1
   3:   .WordWrapStyle=1
   3:   .IndentWithTabs=1
   3:   .DisplayLineNumbers=0
   3:   .SyntaxExpansion=(null)
   3:   .szTabs=+4
   3:   .szModeName=Plain Text
   3:   .szBeginEndPairs=(null)
   3:   .szAliasFilename=(null)
   3:   .szEventTableName=default-keys
   3:   .szWordChars=A-Za-z0-9_'.$
   3:   .IndentStyle=1
   3:   .SyntaxIndent=(null)
   3:   .TruncateLength=0
   3:   .encoding=(null)
   3:   .default-dtd=(null)
   3:   .UseFileAssociation=(null)
   3:   .szOpenApplication=(null)
   3:   .szInheritsFrom=(null)
   3:   .BoundsStart=0
   3:   .BoundsEnd=0
   3:   .AutoCaps=0
   3:   .SoftWrap=0
   3:   .SoftWrapOnWord=1
   3:   .minAbbrev=(null)
   3:   .IndentCaseFromSwitch=(null)
   3:   .PadParens=(null)
   3:   .NoSpaceBeforeParen=(null)
   3:   .BeginEndStyle=(null)
   3:   .PointerStyle=(null)
   3:   .FunctionBraceOnNewLine=(null)
   3:   .ShowTabs=0
   3:   .KeywordCasing=(null)
   3:   .TagCasing=(null)
   3:   .AttributeCasing=(null)
   3:   .ValueCasing=(null)
   3:   .HexValueCasing=(null)
   3:   .szFileExtensions=(null)
   3:   .HexMode=0
   3:   .LineNumbersLen=1
   3:   .LineNumbersFlags=0
   p_window_id: 129
   p_object: OI_EDITOR
   p_name:
stdcmds.ex 35872 _SetEditorLanguage(fundamental,0,1,0)   p_window_id: 129   p_object: OI_EDITOR   p_name:
files.ex 4136 files:edit_status(0,0,45 129,261,)   p_window_id: 129   p_object: OI_EDITOR   p_name:
files.ex 3243 files:edit2(-#  foo,261,)   p_window_id: 129   p_object: OI_EDITOR   p_name:
files.ex 400 edit(-#  foo,261,)   p_window_id: 129   p_object: OI_EDITOR   p_name:
files.ex 9888 dde(e -#  foo)   p_window_id: 129   p_object: OI_EDITOR   p_name:

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Slick Hang on longish path
« Reply #1 on: May 21, 2013, 06:49:14 pm »
Reproduced.  I'll see what's going on.

Sandra

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 754
  • Hero Points: 35
Re: Slick Hang on longish path
« Reply #2 on: May 22, 2013, 02:56:50 pm »
This is fixed for the next beta.  Good catch!