error on run record after machine crash

Ask general questions here.
dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

error on run record after machine crash

Post by dman » Wed Sep 05, 2012 10:13 am

Hi,

I'm running my Ranorex on a virtual machine that crashed at some point. I was not working at the moment of the crash and all files were previously saved.

Before it happend I was working on some user code (called from a recording) - now as I try to run my recording I get: "Failed to validate if user code update is required. Failed to initialize user code. Index should be between 0 and 406." error. See attached the full information.

Now this kind of blocks me, could I please get fast a solution?

All the best,
D.
RX error.png
RX error
RX error.png (23.15 KiB) Viewed 952 times

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Wed Sep 05, 2012 12:01 pm

solved: the problem was in front of the keyboard - had nothing to do with the crash & co

anyway, that is a really funny error for a missing curly bracket

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: error on run record after machine crash

Post by Support Team » Wed Sep 05, 2012 12:24 pm

Hi,

Thanks for informing us that you were able to solve the problem :).
This is strange, normally you should get another message if you just forget a curly bracket, maybe it was because of the crash and because something happened what in normal circumstances didn't happen.

Regards,
Markus
Ranorex Support Team
.
Image

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Wed Sep 05, 2012 2:16 pm

Hi Markus,

It was code I wrote after the crash - and as I was trying to reproduce the error I got into something really bad :( (good thing I had a back-up otherwise my work for about a week would be now gone).

I have a UserCode.cs file containing a structure like:

using ..
using..

namespace ...
{
public class ..
{
..
}

public class...
{
..
}
...
//and the generated
public partial class ....
{
..
}
}


as I got the first error I was missing the { of one of my classes (right after the class declaration) - the error you have above
as I was trying to reproduce it (i.e. took out one of the curly brackets, and clicked run record) I found myself in front of the almost empty user code file - only the skeletons of the generated class and user code method were there!!!! hence, all my classes and content of the user code method were gone!

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Wed Sep 05, 2012 2:59 pm

happend again - on simple run! HELP!

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: error on run record after machine crash

Post by Support Team » Thu Sep 06, 2012 11:06 am

Hi,

I wasn't able to reproduce the issue on my machine, so you really just deleted one bracket as described in the previous post?
Which Ranorex version are you using?
Did you already try to reinstall Ranorex, maybe some parts of Ranorex gets corrupted because of the crash.
You will find the link to the actual version on the start page of Ranorex Studio.

Regards,
Markus
Ranorex Support Team
.
Image

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Thu Sep 06, 2012 12:37 pm

first time it happend I did only remove a bracket; second time - it just happened without me doing anything special

Rx v3.3.1.18438

Did not try to reinstall yet. Will do

All the best,
D.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: error on run record after machine crash

Post by Support Team » Thu Sep 06, 2012 1:16 pm

Hi,

Please inform us if the re-installation helped, by the way a new Ranorex version was released, so please install the new one, you will find the link on the start page of Ranorex Studio.

Regards,
Markus
Ranorex Support Team
.
Image

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Thu Sep 06, 2012 4:51 pm

Installed the 3.3.2 - so far, all good
I'll let you know if it happens again

Thank you!
D.

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Fri Sep 07, 2012 1:54 pm

just happend again! after a simple run :|
what can I do?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: error on run record after machine crash

Post by odklizec » Fri Sep 07, 2012 1:59 pm

Hi,

I experienced some mysterious Ranorex crashes at start of my Ranorex evaluation period. It turned out to be a problem with not installed latest Windows updates. So I updated my WinXP with most recent updates and all crashes stopped. Are you sure your machine is up to dated? Just a thought ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Fri Sep 07, 2012 2:26 pm

Hi,

Ranorex is not crashing - just "kindly" loosing all my user-code without any aparent reason.

I'm using a Win Server 2008 R2 standard with SP1 - up to date.
Thank you for trying!

All the best,
D.

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Fri Sep 07, 2012 2:51 pm

oh joy! now it happens at every run - I'm stuck :(
Huston, we have a problem!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: error on run record after machine crash

Post by odklizec » Fri Sep 07, 2012 2:52 pm

Ah...sorry, I missed your post about "emptied" UserCode ;) Well, I experienced this problem too. Tell me, did you by any chance rename the Recording Module? Because I this is how I experienced this problem. I renamed the "Recording Module", I added some user code lines and after an attempt to run the test case I found the user code is gone. I was busy with other things so I forgot to report this issue. The bad thing is it does not happen all the time. Just sometime ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

dman
Posts: 64
Joined: Mon Aug 29, 2011 9:33 am
Location: München

Re: error on run record after machine crash

Post by dman » Fri Sep 07, 2012 2:57 pm

Can't say for sure but I doubt I did this - more, I tried creating a new record and copy-pasting all the code in the new file - it happened again :(