Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by rjpontefract on March 01, 2023, 09:32:51 pm »
I wasn't sure what to expect, but the first thing that I noticed was that line 7 had a compile error "invalid expression".  I changed the code to the following and tried again:
Code: [Select]
#include "slick.sh"
defmain()
{
   args:=arg(1);
   filename:=parse_file(args,false);
   if (filename!="") {
       // We want this one to act like user typed command on command line
       // except we don't look for internal editor commands.
       _str vslickpathfilename=slick_path_search(filename,"");
       // We want this one to act like user is at shell prompt.
       _str pathfilename=path_search(filename,"","");
       _str msg="VSLICKPATH found <"vslickpathfilename">   PATH found <"pathfilename">";
       sticky_message(msg);
   }
}

That resulted in the following message in the status line:
Code: [Select]
VSLICKPATH found <>  PATH found <>

I'm not sure if that helps or not.
32
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by Dennis on March 01, 2023, 09:02:17 pm »
This is a long shot too, but try this.  Save this code to a Slick-C batch macro:  /tmp/which_file.e
Code: [Select]
#include "slick.sh"
defmain()
{
   args:=arg(1);
   filename:=parse_file(args,false);
   if (filename=="") {
      return;
   }
   // We want this one to act like user typed command on command line
   // except we don't look for internal editor commands.
   _str vslickpathfilename=slick_path_search(filename,"");
   // We want this one to act like user is at shell prompt.
   _str pathfilename=path_search(filename,"","");
   _str msg="VSLICKPATH found <"vslickpathfilename">   PATH found <"pathfilename">";
   sticky_message(msg);
}

Then, from the SlickEdit command line, run:
Code: [Select]
    xcom /tmp/which_file.e smain.dct
33
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by rjpontefract on March 01, 2023, 07:31:50 pm »
Sure, no problem:
Code: [Select]
$ cksum /Applications/SlickEditPro2022.app/Contents/smain.dct
1374061862 395955 /Applications/SlickEditPro2022.app/Contents/smain.dct
34
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by patrick on March 01, 2023, 04:59:01 pm »
Thanks for doing that.  We're still investigating, and still haven't reproduced it.

Just to be paranoid, when you get a chance, can you run the following from a terminal, and let us know what the output is?

Code: [Select]
cksum /Applications/SlickEditPro2022.app/Contents/smain.dct
35
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by rjpontefract on February 28, 2023, 10:56:50 pm »
I started SE with a new configuration and hit finish on the setup wizard.  I then changed the spell check when typing option for C++ and opened the offending project.  Unfortunately SE still abended when I opened the project.
The following was output in the terminal that I started SE from:
Code: [Select]
$ /Applications/SlickEditPro2022.app/Contents/MacOS/vs +new -sc /tmp/NoSuchDir
2023-03-01 11:54:37.565 vs[88765:5815527] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
2023-03-01 11:54:58.594 vs[88765:5815527] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
2023-03-01 11:54:59.403 vs[88765:5815527] +[CATransaction synchronize] called within transaction
vs(88765,0x200b64140) malloc: *** error for object 0x153843ee8: pointer being freed was not allocated
vs(88765,0x200b64140) malloc: *** set a breakpoint in malloc_error_break to debug
36
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by patrick on February 28, 2023, 10:52:16 pm »
So far, we have not been able to reproduce it with the files you provided.  So it seems like it's not something special about one of those files. 

You said when you enabled the spell check with the project closed, it worked, but crashed when you opened the project.  We want to check to see if you still get it with a clean configuration.  Go to a terminal window, and start SlickEdit with this command line:

Code: [Select]
/Applications/SlickEditPro2022.app/Contents/MacOS/vs +new -sc /tmp/NoSuchDir

When it starts up, enable the spell check while typing setting for C/C++, and then see if it still crashes when you open up the problem project.
37
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by rjpontefract on February 28, 2023, 07:18:25 pm »
Hi Clark, I'm running this on an m1 max based mac.
I've removed all of the source buffers that are outside of the project I uploaded and it still crashes when enabling spell check while typing.
I've uploaded se3.tar.bz2 to the case with the contents of /Users/rjp/Library/Application Support/SlickEdit/27.0.1 (without the tagfiles) which should hopefully just restore files from the project.
Let me know if there's anything else I can provide.

38
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by Clark on February 28, 2023, 02:21:14 pm »
Exporting your options would not include vrestore.slk. Although, it sounds like the restore information in your workspace reproduces this problem.

No luck reproducing this with your uploaded files. Are you running on an Intel mac or M1/M2? I tested on an Intel mac.

Your vrestore.slk file looks like it has about 101 source files open but only about 50ish are there. Can you reduce this test case down and provide all the files? I'm hoping this test case doesn't require a bunch of files but maybe just one that is problematic.
39
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by Dennis on February 28, 2023, 01:16:41 pm »
Just for posterity (or others reading this thread), in a case like this, it would probably have been sufficient to just export your options and put up the zip file.  Tools > Options > Export/Import Options > Export All Options...
40
SlickEdit® / Re: SE crash when enabling spell check while typing
« Last post by rjpontefract on February 28, 2023, 01:18:17 am »
Why didn't I think of that   :)
Uploaded the SE config without tagfiles to the case.
Pages: 1 2 3 [4] 5 6 ... 10