PrimalScript 2011 crashing

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 12 years and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

PrimalScript 2011 crashing

Post by Alexander Riedel »

Ok, if you can, please try to run this test for me.
Since you can produce this mostly by scrolling please try this:
Open any file where this happened before, preferably a longer one.

Scroll up and down through the file with the cursor keys.
Make sure the mouse is NOT anywhere inside the edit view.
Then do the same by grabbing the scrollbar and dragging it up and down.
Now use the mouse wheel as usual and try again.
Since it's random it may not do anything, but if it also happens on your machine WITHOUT the mouse wheel then it tells me where NOT to look. I hope this makes sense. Thanks!
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
gmichaud
Posts: 108
Last visit: Fri Mar 10, 2023 9:05 am

PrimalScript 2011 crashing

Post by gmichaud »

Well, I did as you asked but couldn't get it to crash. I have 2 scripts that are 3,400 lines long in one tab group, a smaller file in another tab group. This is how I normally use PS, sometimes with 4 or 5 files in each group. I wonder if it's related to another anomoly I've noticed. I use bookmarks (right-click on line number) and noticed that sometimes the line I jump to with F2 is a few lines above or below the bookmark. I assume this is from editing after creating the bookmark, and may also involve code folding and split windows, both of which I use frequently. I'll play with this and if find a way to repro on demand I'll let you know.
Thanks,
Gerry
User avatar
gmichaud
Posts: 108
Last visit: Fri Mar 10, 2023 9:05 am

PrimalScript 2011 crashing

Post by gmichaud »

Go figure - it just crashed while simply moving the mouse across the screen. I was editing my small file. The mouse may have just crossed from the right tab group to the left. Too close to tell for sure. I started debugging with VS2008. Here's the error: The thread 'Win32 Thread' (0x1460) has exited with code 0 (0x0).
Unhandled exception at 0x67d09e74 (msvcr90.dll) in PrimalScript.exe: 0xC0000005: Access violation reading location 0x00000958.It opened wcsicmp.c and execution stopped on line 92 highlighted in red below. extern "C" int __cdecl _wcsicmp ( const wchar_t * dst, const wchar_t * src ){ if (__locale_changed == 0) { wchar_t f,l; /* validation section */ _VALIDATE_RETURN(dst != NULL, EINVAL, _NLSCMPERROR); _VALIDATE_RETURN(src != NULL, EINVAL, _NLSCMPERROR); do { f = __ascii_towlower(*dst); l = __ascii_towlower(*src); dst++; src++; } while ( (f) && (f == l) ); return (int)(f - l); } else { return _wcsicmp_l(dst, src, NULL); }}Here's the top of the call stack: > msvcr90.dll!_wcsicmp(const wchar_t * dst=0x00000958, const wchar_t * src=0x07010730) Line 92 C++ mfc90u.dll!ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >::CompareNoCase(const wchar_t * psz=0x07010730) Line 1155 + 0xc bytes C++ ScriptParse.dll!009b1cb0() [Frames below may be incorrect and/or missing, no symbols loaded for ScriptParse.dll] ScriptParse.dll!009b2100() PrimalScript.exe!004186ce() PrimalScript.exe!0044a0aa() mfc90u.dll!_AfxDispatchCmdMsg(CCmdTarget * pTarget=0x00000000, unsigned int nID=0x00000000, int nCode=0x0018ec80, void (void)* pfn=0x00000000, void * pExtra=0x00000000, unsigned int nSig=0x00000040, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Line 144 C++ mfc90u.dll!CCmdTarget::OnCmdMsg(unsigned int nID=0x00000000, int nCode=0x0000fdee, void * pExtra=0x0018ed24, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Line 381 + 0x16 bytes C++ mfc90u.dll!CView::OnCmdMsg(unsigned int nID=0x00000000, int nCode=0x004efdee, void * pExtra=0x0018ed24, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Line 162 + 0x11 bytes C++ mfc90u.dll!CFrameWnd::OnCmdMsg(unsigned int nID=0x00000000, int nCode=0x004efdee, void * pExtra=0x0018ed24, AFX_CMDHANDLERINFO * pHandlerInfo=0x00000000) Line 942 + 0x15 bytes C++ mfc90u.dll!CWnd::OnNotify(unsigned int __formal=0x000714c6, long lParam=0xfffffdee, long * pResult=0x0018ed58) Line 2389 + 0x21 bytes C++ mfc90u.dll!CWnd::OnWndMsg(unsigned int message=0x0000004e, unsigned int wParam=0x000714c6, long lParam=0x0018f3e4, long * pResult=0x0018ee00) Line 1781 + 0x1e bytes C++ mfc90u.dll!CWnd::WindowProc(unsigned int message=0x0000004e, unsigned int wParam=0x000714c6, long lParam=0x0018f3e4) Line 1755 + 0x17 bytes C++ PrimalScript.exe!0042619b() My guess it has something to do with syntax highlighting?? I've seen ongoing non-critical issues with that. I'll keep VS2008 open for about another half hour. Let me know if there's anything specific I can get from it for you.
Thanks,
Gerry
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

PrimalScript 2011 crashing

Post by Alexander Riedel »

Thanks that is very helpful.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
gmichaud
Posts: 108
Last visit: Fri Mar 10, 2023 9:05 am

PrimalScript 2011 crashing

Post by gmichaud »

Been trying to upload a small screenshot but the upload is not cooperating. Anyway, the tooltip on *dst is 0x00000958 <Bad Ptr>CXX0030: Error: expression cannot be evaluated
Thanks,
Gerry
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

PrimalScript 2011 crashing

Post by Alexander Riedel »

Can you determine what the other value is?
Just to make sure I get the right spot.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
gmichaud
Posts: 108
Last visit: Fri Mar 10, 2023 9:05 am

PrimalScript 2011 crashing

Post by gmichaud »

*src: 0x07010730 ""winmgmts:{impersonationLevel=impersonate}!.rootcimv2"" 0x0022 L'"'
Thanks,
Gerry
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

PrimalScript 2011 crashing

Post by Alexander Riedel »

Interesting. One final question: Do you use classes in VBScript?
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
gmichaud
Posts: 108
Last visit: Fri Mar 10, 2023 9:05 am

PrimalScript 2011 crashing

Post by gmichaud »

Interesting that you ask. YES, I recently wrote a shortcut class. From my backup files I can see that I started using it around the last week in November, 1st week in December. That would be roughly about the time the crashes started.
Thanks,
Gerry
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

PrimalScript 2011 crashing

Post by Alexander Riedel »

Now we are getting somewhere. Would it be possible for you to email that file to support@sapien.com? (zipped)
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 12 years and 3 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.