Highlighted
Contributor.
Contributor.
2351 views

Error -- memory violation : Exception ACCESS_VIOLATION received

Hi,

I am very new to the load runner. Just trying to replay the script

launch-->login-->logout

and while replaying the script, getting below error

Error: C interpreter run time error: Login.c (19):  Error -- memory violation : Exception ACCESS_VIOLATION received.

can some one help.

 

 

While recording the below script was generated by VuGen:

Login()
{

    web_add_header("Upgrade-Insecure-Requests", 
        "1");

/*Correlation comment - Do not change!  Original value='123156.232968813zDDtitipHDDDDDDDDiAAQpAQct' Name ='userSession' Type ='ResponseBased'*/
    web_reg_save_param_attrib(
        "ParamName=userSession",
        "TagName=input",
        "Extract=value",
        "Name=userSession",
        "Type=hidden",
        SEARCH_FILTERS,
        "IgnoreRedirections=No",
        "RequestUrl=*/nav.pl*",
        LAST);

    web_url("index.htm", 
        "URL=http://127.0.0.1:1080/WebTours/index.htm", 
        "Resource=0", 
        "RecContentType=text/html", 
        "Referer=", 
        "Snapshot=t48.inf", 
        "Mode=HTML", 
        LAST);

    web_set_sockets_option("SSL_VERSION", "2&3");

    web_url("l", 
        "URL=https://translate.googleapis.com/translate_a/l?client=chrome&hl=en&key=AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=", 
        "Snapshot=t49.inf", 
        "Mode=HTML", 
        LAST);

    web_add_header("A-IM", 
        "x-bm,gzip");

    web_url("seed", 
        "URL=https://clientservices.googleapis.com/chrome-variations/seed?osname=win&channel=stable&milestone=64", 
        "Resource=0", 
        "Referer=", 
        "Snapshot=t50.inf", 
        "Mode=HTML", 
        LAST);

    /* ********************LOGIN************************* */

    web_add_header("Origin", 
        "http://127.0.0.1:1080");

    web_add_auto_header("Upgrade-Insecure-Requests", 
        "1");

    lr_think_time(19);

    web_submit_data("login.pl",
        "Action=http://127.0.0.1:1080/cgi-bin/login.pl",
        "Method=POST",
        "RecContentType=text/html",
        "Referer=http://127.0.0.1:1080/cgi-bin/nav.pl?in=home",
        "Snapshot=t51.inf",
        "Mode=HTML",
        ITEMDATA,
        "Name=userSession", "Value={userSession}", ENDITEM,
        "Name=username", "Value=jojo", ENDITEM,
        "Name=password", "Value=bean", ENDITEM,
        "Name=login.x", "Value=31", ENDITEM,
        "Name=login.y", "Value=9", ENDITEM,
        "Name=login", "Value=Login", ENDITEM,
        "Name=JSFormSubmit", "Value=off", ENDITEM,
        LAST);

    /* *******************SIGN-OFF**************** */

    lr_think_time(19);

    web_image("SignOff Button", 
        "Alt=SignOff Button", 
        "Snapshot=t52.inf", 
        LAST);

    return 0;

0 Likes
6 Replies
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Error -- memory violation : Exception ACCESS_VIOLATION received

I just compiled your script. It is passing. Please reopen your script by launching it with administrator privilege. 


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE
Highlighted
Contributor.
Contributor.

Re: Error -- memory violation : Exception ACCESS_VIOLATION received

Hi Naveen,

Thanks for your answer. But the solution you provided here is not working. Still I am getting the same error.

I opened VuGen as administrator and than recorded the script again. But still getting the same error.

 

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Error -- memory violation : Exception ACCESS_VIOLATION received

hi,

 

what version of LoadRunner are you using?

Micro Focus Performance Core.
Functional Architect
your performance, our passion!
0 Likes
Highlighted
New Member.

Re: Error -- memory violation : Exception ACCESS_VIOLATION received

I am also facing same problem, I am using LR 12.0.0 and chrome browser Version 67.0.3396.87 (Official Build) (64-bit).

Thanks in advance .

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Error -- memory violation : Exception ACCESS_VIOLATION received

Hi,

A couple of things...

1. As far as I know LoadRunner 12.0 is end of support. I really advice using the most up to date version. If you have extended support please open a support case.
2. Chrome 67 was released years after LoadRunner 12.0 was released. This use case was not tested ever and its' results are unpredictable

Regards,
Shlomi

0 Likes
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Re: Error -- memory violation : Exception ACCESS_VIOLATION received

Hi, 

here's a link that contains some suggestions about your error of access violation, which seems to have many causes.

https://automation-performance.blogspot.com/2012/05/error-memory-violation-exception.html

I hope someone of the option can help you. 

Lorenzo

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.