Author Topic: SlickStack on 18B1  (Read 2811 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1682
  • Hero Points: 161
  • Text
SlickStack on 18B1
« on: May 02, 2013, 06:12:33 pm »
I had a file open in slick.
From another application I deleted it.
Switching to slick, it opened the "Save deleted files" dialog.
I selected the file and clicked "close selected".
Slick-c Error:
   Invalid number argument, file=files.ex, offset=19261



 Invalid number argument
files.ex 19261 _save_deleted_close_button.lbutton_up()   p_window_id: 125   p_object: OI_COMMAND_BUTTON   p_name: ctl_selectall
dlgman.ex 1516 _ainh_dlg_manager.enter()   p_window_id: 125   p_object: OI_COMMAND_BUTTON   p_name: ctl_selectall
dlgeditv.ex 7007 show(-modal _select_tree_form,
   2:   
  • =c:\users\joe_po~1\appdata\local\temp\p4\joeporkka1\16627\r..........

   3:   <empty>
   4:   
  • =3920

   5:   <empty>
   6:   
  • =1

   7:   &173605606
   8:   
   9:   Save Deleted Files
   10:   1233216
   11:   File
   12:   130
   13:   auto reload
   14:   <empty>
   p_window_id: 5
   p_object: OI_FORM
   p_name:
seltree.ex 780 select_tree(
   1:   
  • =c:\users\joe_po~1\appdata\local\temp\p4\joeporkka1\16627\r.....

   2:   <empty>
   3:   
  • =3920

   4:   <empty>
   5:   
  • =1

   6:   &173605606
   7:   
   8:   Save Deleted Files
   9:   1233216
   10:   File
   11:   130
   12:   1
   13:   auto reload
   14:   <empty>
   p_window_id: 5
   p_object: OI_FORM
   p_name:
files.ex 12296 _ReloadFiles(1,<empty>,@26909,5000)   p_window_id: 5   p_object: OI_FORM   p_name:
files.ex 13264 _actapp_files()   p_window_id: 123   p_object: OI_EDITOR   p_name:
files.ex 10194 call_list(_actapp_,)   p_window_id: 123   p_object: OI_EDITOR   p_name:
files.ex 10507 _on_activate_app()   p_window_id: 123   p_object: OI_EDITOR   p_name:

jporkkahtc

  • Senior Community Member
  • Posts: 1682
  • Hero Points: 161
  • Text
Re: SlickStack on 18B4
« Reply #1 on: May 17, 2013, 06:02:53 pm »
This still happens with Beta 4.

Repro:
Open a file in slick.
From CMD.exe, delete the file.
Return to slick.
Choose "Close Selected".
SlickStack.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2220
  • Hero Points: 116
Re: SlickStack on 18B1
« Reply #2 on: May 20, 2013, 11:54:39 am »
I can't reproduce this so far.  You seem to be on Windows, correct?

jporkkahtc

  • Senior Community Member
  • Posts: 1682
  • Hero Points: 161
  • Text
Re: SlickStack on 18B1
« Reply #3 on: May 20, 2013, 08:35:47 pm »
Windows 7, 64bit.
Odd...its more particular than I expected.
Seems to depend on either "%TEMP%" or perhaps a path of a particular depth.
Do this:
CD /d %TEMP%
mkdir a\b\c\d\e\f
cd a\b\c\d\e\f
echo > foo.txt
vs foo.txt

Then, go back to CMD and delete foo.txt and switch back to slick.
Slick prompts for what to do, choose to close the file.
---------------------------
Slick-C Error
---------------------------
Invalid number argument

file=files.ex offset=19282
---------------------------
OK   
---------------------------

 Invalid number argument
files.ex 19282 _save_deleted_close_button.lbutton_up()   p_window_id: 151   p_object: OI_COMMAND_BUTTON   p_name: ctl_selectall
dlgeditv.ex 7007 show(-modal _select_tree_form,
   2:   
  • =C:\Users\JOE_PO~1\AppData\Local\Temp\a\b\c\d\e\f\foo.txt

   3:   <empty>
   4:   
  • =3953

   5:   <empty>
   6:   
  • =1

   7:   &175506177
   8:   
   9:   Save Deleted Files
   10:   1233216
   11:   File
   12:   130
   13:   auto reload
   14:   <empty>
   p_window_id: 5
   p_object: OI_FORM
   p_name:
seltree.ex 780 select_tree(
   1:   
  • =C:\Users\JOE_PO~1\AppData\Local\Temp\a\b\c\d\e\f\foo.txt

   2:   <empty>
   3:   
  • =3953

   4:   <empty>
   5:   
  • =1

   6:   &175506177
   7:   
   8:   Save Deleted Files
   9:   1233216
   10:   File
   11:   130
   12:   1
   13:   auto reload
   14:   <empty>
   p_window_id: 5
   p_object: OI_FORM
   p_name:
files.ex 12317 _ReloadFiles(1,<empty>,@29602,5000)   p_window_id: 5   p_object: OI_FORM   p_name:
files.ex 13285 _actapp_files()   p_window_id: 125   p_object: OI_EDITOR   p_name:
files.ex 10215 call_list(_actapp_,)   p_window_id: 125   p_object: OI_EDITOR   p_name:
files.ex 10528 _on_activate_app()   p_window_id: 125   p_object: OI_EDITOR   p_name:


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2220
  • Hero Points: 116
Re: SlickStack on 18B1
« Reply #4 on: May 21, 2013, 12:39:42 pm »
I'm still not getting it.  Is there anything odd about your TEMP directory?  Is it in a path with spaces, etc?

jc44

  • Senior Community Member
  • Posts: 191
  • Hero Points: 13
Re: SlickStack on 18B1
« Reply #5 on: May 21, 2013, 01:01:07 pm »
For what its worth I can reproduce it too (using the given instructions - not against any arbitrary file).  B4, Win 7 x64

My cmd output (in case it helps):

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\jc.HINGE>CD /d %TEMP%

C:\Users\JCEE31~1.HIN\AppData\Local\Temp>mkdir a\b\c\d\e\f

C:\Users\JCEE31~1.HIN\AppData\Local\Temp>cd a\b\c\d\e\f

C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>echo > foo.txt

C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>vs foo.txt

C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>erase foo.txt

C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f>


SE in brief emulation mode, a goodly number of other open buffers, and two open panes.  I can't see why it should make a difference but I'm a domain member with roving profiles on.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2220
  • Hero Points: 116
Re: SlickStack on 18B1
« Reply #6 on: May 21, 2013, 01:29:38 pm »
I still can't get it, I even tried Brief emulation.  I'll keep trying.

jc44

  • Senior Community Member
  • Posts: 191
  • Hero Points: 13
Re: SlickStack on 18B1
« Reply #7 on: May 21, 2013, 01:51:14 pm »
It may be that a requirement for the issue is for the path to include a converted 8+3 section.  In my case if run the instructions from "C:\Users\jc.HINGE\AppData\Local\Temp\a\b\c\d\e\f" then all is well but if I do them from the equivalent path of "C:\Users\JCEE31~1.HIN\AppData\Local\Temp\a\b\c\d\e\f" then I get the error.

I hope that helps

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2220
  • Hero Points: 116
Re: SlickStack on 18B1
« Reply #8 on: May 21, 2013, 02:08:27 pm »
It makes sense but it hasn't helped so far.  I've tried using the short path of long paths(if that makes sense) but I still can't get it.  Are you using the mouse?  Are you tabbing to it with the keyboard?

jc44

  • Senior Community Member
  • Posts: 191
  • Hero Points: 13
Re: SlickStack on 18B1
« Reply #9 on: May 21, 2013, 02:39:17 pm »
Seems to be independent of navigation between windows - I can reproduce with mouse or keyboard only.

I don't need particularly long paths, creating and deleting a file called "t" in "C:\temp\JC96FB~1.WOM" (long name "jc.wombat") seems to trigger the problem (and doing it in c:\temp\jc.wombat doesn't).

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2220
  • Hero Points: 116
Re: SlickStack on 18B1
« Reply #10 on: May 21, 2013, 02:41:41 pm »
I was finally able to reproduce this.  It looks like it may be fixed already, but we are verifying this fix.

jc44

  • Senior Community Member
  • Posts: 191
  • Hero Points: 13
Re: SlickStack on 18B1
« Reply #11 on: May 21, 2013, 02:44:56 pm »
Heh! After all that and it is fixed already :-)

Out of curiosity, what causes it?

Many thanks

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2220
  • Hero Points: 116
Re: SlickStack on 18B1
« Reply #12 on: May 21, 2013, 02:47:26 pm »
Yes, as this specific problem hadn't been fixed I was testing it in my development editor today.  Yesterday I tried it repeatedly in beta 4 but not with the short path.

IF it is fixed already it is caused by us trying to get the buffer information from the short path and not finding it, and then trying to use the resulting buffer id, which is "".

jporkkahtc

  • Senior Community Member
  • Posts: 1682
  • Hero Points: 161
  • Text
Re: SlickStack on 18B1
« Reply #13 on: May 21, 2013, 05:52:51 pm »
Thanks for looking ... I was begining to think it was short path related.
On my machine my root directory (users\jo_po~1) has the auto-generated short path, but I've turned short path support off for NTFS so new filenames don't get the short name generated.