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 »

My environment:
Windows 7 Enterprise x86 RTM
all hotfixes installed (except SP1)
PrimalScript 2011, newest build (149)

occasionally newest build 149 of PrimalScript 2011 simply crashes when editing script files (in my case VBScript most of the time).
These crashes occur quite randomly, meaning I can't find a certain pattern when this is happening.
But when it crashes, there are two identical error messages. The error message shown is the default Windows message "PrimalScript stopped working", the second one appears two seconds after hitting OK on the first one.

I had a crash when changing options in PrimalScript 2011, where a script was opened. But I also got crashes in the middle of changing a script (simply typing code, no fancy PrimalScript features used or something :) Suddenly PrimalScript crashes).
So far I could not force/reproduce any crashes.

If this might be a possible cause: I'm editing script files on a network share most of the time.

In Eventlog I found the following messages:
----
Faulting application name: primalscript.exe, version: 6.0.149.0, time stamp: 0x4e4f36aaFaulting module name: MSVCR90.dll, version: 9.0.30729.6161, time stamp: 0x4dace5b9Exception code: 0xc0000005Fault offset: 0x00059e74Faulting process id: 0x1598Faulting application start time: 0x01cc66450f01b475Faulting 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: b45a6d6c-d23e-11e0-bb81-001999a6f128
----
----
Faulting application name: primalscript.exe, version: 6.0.149.0, time stamp: 0x4e4f36aaFaulting module name: ntdll.dll, version: 6.1.7600.16695, time stamp: 0x4cc7ab44Exception code: 0xc0150010Fault offset: 0x000817ffFaulting process id: 0x1598Faulting application start time: 0x01cc66450f01b475Faulting application path: C:Program FilesSAPIEN Technologies, IncPrimalScript 2011primalscript.exeFaulting module path: C:WindowsSYSTEM32ntdll.dllReport Id: b7047611-d23e-11e0-bb81-001999a6f128
----
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, thank you for letting us know. I will look into it today and try to find out what is causing this.
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 »

Ok, I did some checking, the crash actually occurs in a function called _wcsicmp, which does a case insensitive string compare. As you may imagine that doesn't help much.

I suspect that there is something in your code the VBScript parser gets a hiccup over and I was wondering if you could email a file your where editing at the time to support@sapien.com and indicate the general area where you where editing.
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 »

as soon as it happens again, and with a script I can savely send to you (company restrictions), I will do this :)
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, thanks. I put a trap around the most common used location for this function, so please try with the next build and see if it happens again.
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 »

hi again,

I again just had a crash with build 150
What I did:
- clicked on the "New" icon
- inserted some VBScript function into PrimalScript
- hit Ctrl+S to save the file, saved to desktop as serial.vbs
- save dialog closed, PrimalScript reloaded the code to apply VBScript code formatting
--> crash
I cannot reproduce the error (tried same steps again)

I'm not sure this is the same crash behaviour, as I did not have crashes since updating to build 150, and this time the crash occured on saving the file, not simply because the file was open. But the crash data looks similiar / the same.
No special error message, so again simply "stopped working"...

crash data:
>>>>>
Faulting application name: primalscript.exe, version: 6.0.150.0, time stamp: 0x4e63e401
Faulting module name: MSVCR90.dll, version: 9.0.30729.6161, time stamp: 0x4dace5b9
Exception code: 0xc0000005
Fault offset: 0x00059e74
Faulting process id: 0xa58
Faulting application start time: 0x01cc77648e01ec0a
Faulting application path: C:Program FilesSAPIEN Technologies, IncPrimalScript 2011primalscript.exe
Faulting module path: C:WindowsWinSxSx86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57MSVCR90.dll
Report Id: 83014946-e359-11e0-aa5a-001999a6f128
<<<<<

>>>>>
Faulting application name: primalscript.exe, version: 6.0.150.0, time stamp: 0x4e63e401
Faulting module name: ntdll.dll, version: 6.1.7600.16695, time stamp: 0x4cc7ab44
Exception code: 0xc0150010
Fault offset: 0x000817ff
Faulting process id: 0xa58
Faulting application start time: 0x01cc77648e01ec0a
Faulting application path: C:Program FilesSAPIEN Technologies, IncPrimalScript 2011primalscript.exe
Faulting module path: C:WindowsSYSTEM32ntdll.dll
Report Id: 8e00ac6f-e359-11e0-aa5a-001999a6f128
<<<<<

the VBScript code I inserted:
>>>>>
Function GetSerial() Dim objWMIService Dim colObjects, objectO Dim bolMAC Dim colItems, objItem bolMAC = False Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!.rootcimv2") Set colObjects = objWMIService.ExecQuery("Select SerialNumber from Win32_SystemEnclosure") For Each objectO in colObjects GetSerial = Trim(objectO.SerialNumber) Next If GetSerial = "" Then GetSerial = Trim(ReadReg("HKLMSoftwareTestSerialNumber")) GetSerial = Replace(GetSerial, " ", "") GetSerial = Replace(GetSerial, "-", "") GetSerial = Replace(GetSerial, "_", "") GetSerial = Replace(GetSerial, ":", "") GetSerial = Replace(GetSerial, "<", "") GetSerial = Replace(GetSerial, ">", "") If (GetSerial = "") Or (GetSerial = "0") Or IsNull(GetSerial) Or (LCase(GetSerial) = "n/a") Or Len(GetSerial)<=1 Or (GetSerial = "0000000000") Then bolMAC = True If (LCase(GetSerial) = "tobefilledbyo.e.m.") Or (UCase(GetSerial) = "Y000000CES") Or (UCase(GetSerial) = "RCXXXXXXXX") Or (UCase(GetSerial) = "UNKNOWN") Then bolMAC = True If (UCase(GetSerial) = "NONE") Or (LCase(GetSerial) = "chassisserialnumber") Or (UCase(GetSerial) = "YYYYYYYYYY") Or (GetSerial = "n.a.") Then bolMAC = True If bolMAC = True Then Set objWMIService = Nothing GetSerial = "" Set objWMIService = GetObject("winmgmts:.rootCIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration",,48) For Each objItem in colItems If objItem.WINSPrimaryServer <> "" Then GetSerial = Trim(UCase(objItem.MACAddress)) Next GetSerial = Replace(GetSerial, ":", "") End If If GetSerial = "" Then GetSerial = "ERROR" Set objWMIService = NothingEnd Function
<<<<<dominik.ecke2011-09-20 02:44:32
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 »

I was following your steps and was not able to replicate the crash. Are you able to reproduce the crash on your machine at will?
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 »

nope, unfortunately I cannot reproduce any of the crashes at will :(

and I had several crashes now again, just after I wrote the last post, after having no problems whatsoever for a week or so.
I would say there is a problem with my client rather than PrimalScript, however I had at least one crash on a totally different machine as well. However much fewer crashes so far on the second machine...

is it possible to provide some kind of debug version of PrimalScript which could provide more information on the crash for you? I'm not a programmer, but I'm willing to help out if possible ;)dominik.ecke2011-09-20 04:16:10
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 »

Such a simple operation really shouldn't crash anything and I am tempted to say that the crash position is most likely bogus due to a corrupted call stack.
I'll do some investigating on my end.
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 »

just if this is of importance, I have installed the following C++ Runtimes (according to "Programs and Features"):

C++ 2005 - 8.0.61001
C++ 2008 x86 - 9.0.30729.5570

C++ 2008 x86 - 9.0.30729.6161
C++ 2010 x86 - 10.0.30319

C++ 2010 x86 - 10.0.40219
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.