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
dominik.ecke
Posts: 38
Last visit: Thu Apr 16, 2015 7:14 am

PrimalScript 2011 crashing

Post by dominik.ecke »

the default ones (I think).
Workspace, Tools and Object Browser on the left (Workspace active), Snippet Browser on the right, Output, Debug and Build on the bottom (Output active)
User avatar
gmichaud
Posts: 108
Last visit: Fri Mar 10, 2023 9:05 am

PrimalScript 2011 crashing

Post by gmichaud »

just had another crash with .162. Same line in wcsicmp.c as the pre-.159 builds. *dst 0x00000111 <Bad Ptr> CXX0030: Error: expression cannot be evaluated I got it when I scrolled with the mouse wheel. Had ps maximized on my main monitor, 2 files open in 2 vertical tab groups. I had the right file split into 2 panes and a bookmark in the lower pane. I wanted to see if the old bug still exists where setting bookmarks in the lower pane if off a few lines if you add new lines to the file in the upper pane. It crashed before I got to add the new lines. Alexander, you should be able to duplicate bookmark behavior with the template file I sent 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 »

Did you get a call stack by any chance?
Alexander Riedel
SAPIEN Technologies, Inc.
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 »

Let's take the bookmark thing aside, please remind me later to look into that. I really would like to focus on that crash problem.
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 »

No problem. I was just wondering if the two were related. I was gonna get a stack dump, but didn't think you'd need it, since it was the same crash as before. Maybe I'll be able to get one. I'll try to make it crash. how much of the stack trace do you want?
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 »

:-) As much as you can get...
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 »

Be careful what you ask for :-)Same crash. *dst could not be evaluated The thread 'Win32 Thread' (0x958) has exited with code 0 (0x0).Unhandled exception at 0x6b7c9e74 (msvcr90.dll) in PrimalScript.exe: 0xC0000005: Access violation reading location 0x000002f2.Call stack: > msvcr90.dll!_wcsicmp(const wchar_t * dst=0x000002f2, const wchar_t * src=0x06f265c8) Line 92 C++ mfc90u.dll!ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >::CompareNoCase(const wchar_t * psz=0x06f265c8) Line 1155 + 0xc bytes C++ ScriptParse.dll!009b79a7() [Frames below may be incorrect and/or missing, no symbols loaded for ScriptParse.dll] ScriptParse.dll!009b3b47() ScriptParse.dll!009b3fb8() PrimalScript.exe!0041872a() PrimalScript.exe!0044a228() 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=0x000e0f26, long lParam=0xfffffdee, long * pResult=0x0018ed58) Line 2389 + 0x21 bytes C++ mfc90u.dll!CWnd::OnWndMsg(unsigned int message=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4, long * pResult=0x0018ee00) Line 1781 + 0x1e bytes C++ mfc90u.dll!CWnd::WindowProc(unsigned int message=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 1755 + 0x17 bytes C++ PrimalScript.exe!00426256() mfc90u.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * hWnd=0x00110e92, unsigned int nMsg=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 240 + 0x11 bytes C++ mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x00110e92, unsigned int nMsg=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 402 + 0x10 bytes C++ mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x00110e92, unsigned int nMsg=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 441 + 0x16 bytes C++ user32.dll!76ae62fa() user32.dll!76ae6d3a() user32.dll!76ae6ce9() user32.dll!76ae965e() user32.dll!76ae96c5() mfc90u.dll!CSplitterWnd::OnNotify(unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4, long * pResult=0x0018f050) Line 1871 + 0x21 bytes C++ mfc90u.dll!CWnd::OnWndMsg(unsigned int message=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4, long * pResult=0x0018f0f4) Line 1781 + 0x1e bytes C++ mfc90u.dll!CWnd::WindowProc(unsigned int message=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 1755 + 0x17 bytes C++ mfc90u.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * hWnd=0x000c0f4c, unsigned int nMsg=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 240 + 0x11 bytes C++ mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x000c0f4c, unsigned int nMsg=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 402 + 0x10 bytes C++ mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x000c0f4c, unsigned int nMsg=0x0000004e, unsigned int wParam=0x000e0f26, long lParam=0x0018f3e4) Line 441 + 0x16 bytes C++ user32.dll!76ae62fa() user32.dll!76ae6d3a() user32.dll!76ae6ce9() user32.dll!76ae965e() user32.dll!76ae96c5() comctl32.dll!6f94c05d() comctl32.dll!6f94364c() msvcr90.dll!free(void * pBlock=0x00000000) Line 110 C mfc90u.dll!CMapWordToOb::RemoveAll() Line 91 C++ mfc90u.dll!CDC::Detach() Line 122 C++ user32.dll!76ae62fa() user32.dll!76ae6d3a() user32.dll!76ae6ce9() user32.dll!76af0d27() user32.dll!76af0d4d() mfc90u.dll!CWnd::DefWindowProcW(unsigned int nMsg=0x00000438, unsigned int wParam=0x00000000, long lParam=0x0018f978) Line 1049 + 0x13 bytes C++ mfc90u.dll!CWnd::WindowProc(unsigned int message=0x00000438, unsigned int wParam=0x00000000, long lParam=0x0018f978) Line 1756 + 0x13 bytes C++ mfc90u.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * hWnd=0x000a0f44, unsigned int nMsg=0x00000438, unsigned int wParam=0x00000000, long lParam=0x0018f978) Line 240 + 0x11 bytes C++ mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x000a0f44, unsigned int nMsg=0x00000438, unsigned int wParam=0x00000000, long lParam=0x0018f978) Line 402 + 0x10 bytes C++ mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x000a0f44, unsigned int nMsg=0x00000438, unsigned int wParam=0x00000000, long lParam=0x0018f978) Line 441 + 0x16 bytes C++ user32.dll!76ae62fa() user32.dll!76ae6d3a() user32.dll!76ae6ce9() user32.dll!76ae965e() user32.dll!76ae96c5() mfc90u.dll!CToolTipCtrl::GetText(ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t> > > & str="", CWnd * pWnd=0x07223e18, unsigned int nIDTool=0x00000000) Line 204 C++ PrimalScript.exe!0045cbff() ntdll.dll!7798e603() mfc90u.dll!CWnd::OnWndMsg(unsigned int message=0x00000200, unsigned int wParam=0x00000000, long lParam=0x0077026b, long * pResult=0x0018fafc) Line 2062 C++ mfc90u.dll!CWnd::WindowProc(unsigned int message=0x00000200, unsigned int wParam=0x00000000, long lParam=0x0077026b) Line 1755 + 0x17 bytes C++ mfc90u.dll!AfxCallWndProc(CWnd * pWnd=0x00000000, HWND__ * hWnd=0x000e0f26, unsigned int nMsg=0x00000200, unsigned int wParam=0x00000000, long lParam=0x0077026b) Line 240 + 0x11 bytes C++ mfc90u.dll!AfxWndProc(HWND__ * hWnd=0x000e0f26, unsigned int nMsg=0x00000200, unsigned int wParam=0x00000000, long lParam=0x0077026b) Line 402 + 0x10 bytes C++ mfc90u.dll!AfxWndProcBase(HWND__ * hWnd=0x000e0f26, unsigned int nMsg=0x00000200, unsigned int wParam=0x00000000, long lParam=0x0077026b) Line 441 + 0x16 bytes C++ user32.dll!76ae62fa() user32.dll!76ae6d3a() user32.dll!76ae6ce9() user32.dll!76af0d27() user32.dll!76af0d4d() PrimalScript.exe!004e15c9() PrimalScript.exe!004e5141() mfc90u.dll!CThreadSlotData::GetThreadValue(int nSlot=0x00000000) Line 268 C++ mfc90u.dll!CMapPtrToPtr::Lookup(void * key=0x00000000, void * & rValue=0x00000000) Line 205 C++ 00000200() user32.dll!76ae62fa() user32.dll!76ae6d3a() user32.dll!76ae6ce9() user32.dll!76ae77c4() user32.dll!76ae788a() mfc90u.dll!AfxInternalPumpMessage() Line 183 C++ mfc90u.dll!CWinThread::Run() Line 629 + 0x7 bytes C++ mfc90u.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, wchar_t * lpCmdLine=0x00a92774, int nCmdShow=0x00000003) Line 47 + 0x7 bytes C++ PrimalScript.exe!004e9cce() kernel32.dll!75d1339a() ntdll.dll!77959ef2() ntdll.dll!77959ec5()
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 »

Hmm, ok, so the problem for those knowing about debugging is that the offset in scriptparse.dll points nowhere.

So, let's try something different.
Please replace scriptparse.dll with the attached


ScriptParse.zip

And let's seen what's happening with that.
Alexander Riedel
SAPIEN Technologies, Inc.
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 »

An updated test build 6.0.163 is available here:
http://www.sapien.com/downloads in the "Support Files" folder
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
dominik.ecke
Posts: 38
Last visit: Thu Apr 16, 2015 7:14 am

PrimalScript 2011 crashing

Post by dominik.ecke »

had a crash again, this time with a VBScript without Classes (only functions).
The error code also changed, so maybe this is another problem? But the DLL is the same:

Faulting application name: primalscript.exe, version: 6.0.163.0, time stamp: 0x4f35926dFaulting module name: MSVCR90.dll, version: 9.0.30729.6161, time stamp: 0x4dace5b9Exception code: 0xc0000417Fault offset: 0x00059e63Faulting process id: 0xc0Faulting application start time: 0x01cceb00b6728729Faulting application path: C:Program FilesSAPIEN Technologies, IncPrimalScript 2011primalscript.exeFaulting module path: C:WindowsWinSxSx86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57MSVCR90.dllReport Id: 80aefb4d-56f8-11e1-b74b-001999a6f128
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.