www.virtualacorn.co.uk/forum

For support and advice on VirtualAcorn products
Forums now closed. This is an HTML only record of the content.
HTML version of Forum generated Thursday 24th May 2018

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: "VRPC-SA has encountered a problem .....
PostPosted: Tue Apr 28, 2009 11:53 am 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
.... and needs to close. We are sorry for the inconvenience."

"The instruction at 00x00b6e3f3 referenced memory at 0xe59ce38e which could not be read."

Any ideas ?

I have now narrowed the problem down to two of my own BBC basic applications. These two programs share data via two files.

- On a RiscPC 600 running RiscOS 3.50, The applications are working perfectly
- On a RiscPC 700 running RiscOS 3.60, the machine locks up eventually
- On a VRPC-SA running RiscOS 4.02, the virtual machine either just closes down or stops as above.
- VRPC-SE does the same thing and using ADFS instead of HostFS make no difference.

I realise the BBC basic programming fault is mine, but does the above help to locate it .....
..... and why does VRPC-SA just shut down?

Yes, I know there are better ways to share data and I am now re-writing the code to use Wimp_TransferBlock.

_________________
John


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Wed Apr 29, 2009 10:07 am 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
It would seem from the error that your application is trying to write to memory that it does not own. Beyond that it's difficult to know.


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Wed Apr 29, 2009 10:35 am 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
OK thanks. (I had thought the message came from Windows, not RiscOS)

But, I have changed the code and everything is stable again. :)

_________________
John


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Wed Apr 29, 2009 12:11 pm 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
Glad you have got it working.


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Thu Apr 30, 2009 7:28 am 
Offline

Joined: Wed Oct 23, 2002 10:37 pm
Posts: 64
If you still have versions of the app that crash VRPC would you be able to forward them to Aaron so we can take a look? If not, could you produce a minimal app that causes the same effect?

Thanks,
Graeme


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Thu Apr 30, 2009 5:08 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
OK - give me a day or two.

_________________
John


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Tue May 05, 2009 11:17 am 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
Sorry. I can not reproduce the close down.

I have managed to make the system lock up - but a real RiscPC locks up just the same .....
..... and is nothing more than a program in a loop without calling Wimp_Poll

At the time VA close downs, I had lots of applications running:
Two of my own written in Basic.
!Igor - with a session connected from another PC
!WebJames - with page requests from yet another PC and from a Real RiscPC 700
!Perl - as it comes with !WebJames
!Deltanet - with just FTP active and connections from a Solaris Workstation.
(all of these communicating with each other using Wimp_TransferBlock and/or shared files)
!VNCserver
SocketFS module
!Printers+

_________________
John


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Tue May 05, 2009 9:33 pm 
Offline
Site Admin

Joined: Wed Oct 23, 2002 12:16 pm
Posts: 958
Normally you can escape from a program that's stuck in a loop using ALT + BREAK. This applies to both real and Virtual machines.

Thanks for taking the time to try and reproduce the problem.


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Fri Sep 11, 2009 11:27 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
I appreciate that this is going to be hard to fix if I can not reproduce it in a controlled manner.

However, yesterday I had VRPC-SA running all the applications listed above with lots of network traffic. It ran for about 10 hours and then VRPC-SA just closed down with no warning.

I know it is a long shot, but two things occur to me. Just before the crash I noticed that a WebJames created application was appearing repeatedly in the RiscOS application tasks listing when the web client was only sending one page request once every minute. This had run for the ten hours without problem and it all also works perfectly when I use a real RiscPC 600/700. Perhaps a network buffer overflow somewhere?

The second long shot is that my application sometimes writes directly to the screen instead of using a window nicely. This is OK on a real RiscPC 600/700 and A410 but maybe the VA Windows Controller gets confused?

(As I was typing this, it has just occurred to me to try all this on a different PC with VRPC-SE)
We will see how it all gets on overnight - OK so far after 50 minutes



Edit: still OK after 10 hours - will post again only if it crashes.

_________________
John


Top
 Profile  
 
 Post subject: Re: "VRPC-SA has encountered a problem .....
PostPosted: Tue Sep 22, 2009 4:38 pm 
Offline

Joined: Wed Oct 24, 2007 6:29 pm
Posts: 124
Location: West Lancashire
Sorry. VRPC-SE crashes (and closees down) in just the same way.

_________________
John


Top
 Profile  
 
 
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

   
Forums originally Powered by phpBB © 2007 phpBB Group. Contents © 3QD Developments Ltd 2018 version no. 1.07