Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
14 crawler(s) on-line.
 61 guest(s) on-line.
 2 member(s) on-line.


 NutsAboutAmiga,  Gunnar

You are an anonymous user.
Register Now!
 NutsAboutAmiga:  1 min ago
 Gunnar:  4 mins ago
 Poison:  49 mins ago
 retrofaza:  1 hr 6 mins ago
 vox:  1 hr 9 mins ago
 matthey:  1 hr 9 mins ago
 danwood:  1 hr 12 mins ago
 amyren:  1 hr 54 mins ago
 DiscreetFX:  2 hrs 3 mins ago
 Rob:  2 hrs 20 mins ago

/  Forum Index
   /  Amiga OS4.x \ Workbench 4.x
      /  OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Register To Post

Goto page ( 1 | 2 Next Page )
PosterThread
ChrisH 
OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 10:10:09
#1 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

THRICE REVISED POST

I was finding that a program of mine could cause my Sam440 to stop responding to it's USB keyboard/mouse, when Virtual Memory kicked in (i.e normal memory ran out). I have now been able to duplicate this problem using only the RAM disk! So it seems clear I have found an OS4.1 bug. Here is what you do:

Copy at least 750MB of files to the RAM disk (assuming you have 500MB of installed RAM like the Sam440). At the point it looks like the Free Memory is going to run out (check the Workbench title bar), start moving your mouse very fast (say in a small circle). Before the copying operation finishes you should find that the USB mouse & keyboard have stopped responding! If not, then reboot & try again.

I should note that everything else continues to work fine though (CPU meter continues to work, TuneNet continues to play music, etc). But I have to reboot before I can use the keyboard or mouse again :(


Note that if CPU usage is very high (say 100%) due to a program running (at priority zero), then the problem seems to happen almost as soon as the V.M. kicks in.


Please report whether or not you are able to duplicate this problem. While I am most interested in Sam440 users, I would also like to hear from other OS4.1 users.

Last edited by ChrisH on 02-Mar-2009 at 01:22 PM.
Last edited by ChrisH on 02-Mar-2009 at 01:08 PM.
Last edited by ChrisH on 02-Mar-2009 at 01:05 PM.
Last edited by ChrisH on 02-Mar-2009 at 01:01 PM.
Last edited by ChrisH on 02-Mar-2009 at 12:54 PM.
Last edited by ChrisH on 02-Mar-2009 at 12:47 PM.
Last edited by ChrisH on 02-Mar-2009 at 12:35 PM.
Last edited by ChrisH on 02-Mar-2009 at 11:32 AM.
Last edited by ChrisH on 02-Mar-2009 at 11:30 AM.
Last edited by ChrisH on 02-Mar-2009 at 11:26 AM.
Last edited by ChrisH on 02-Mar-2009 at 11:08 AM.
Last edited by ChrisH on 02-Mar-2009 at 10:51 AM.
Last edited by ChrisH on 02-Mar-2009 at 10:50 AM.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 10:51:19
#2 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

Bumping my revised post.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 11:31:14
#3 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

Bumping my thrice revised post! This time I have got it reproducable without needing to use a network share.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
ChrisH 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 12:47:09
#4 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

OK, I found one other *necessary* condition for the bug to appear: The CpuInfo docky needs to be running (but not necessarily visible).

Oddly the same problem does not seem to appear with the CpuClock docky. HOWEVER, I got the problem to appear when running THREE copies of the CpuClock docky!!! Seems like the CpuClock docky just pushes the OS less, since it updates less often than CpuInfo docky.

ALSO, I can get this same problem to appear without *any* CPU docky - I just run a new version of PortablE, compiled using the new SDK, and when memory runs out the same keyboard+mouse problem arises.

Last edited by ChrisH on 02-Mar-2009 at 01:24 PM.
Last edited by ChrisH on 02-Mar-2009 at 01:07 PM.
Last edited by ChrisH on 02-Mar-2009 at 01:06 PM.
Last edited by ChrisH on 02-Mar-2009 at 12:59 PM.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
Deniil715 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 13:17:24
#5 ]
Elite Member
Joined: 14-May-2003
Posts: 4236
From: Sweden

@ChrisH

What I believe you forgot to mention (but which is obvious for a Sam440 user) is that this is a USB keyboard and mouse.

My guess is that the USB stack gets out of sync if it can't respond to USB input quickly enough, which happens more easily during heavy load or when the VM kicks in. Sounds strange as USB is a polled interface without any interrupt facility AFAIK. But maybe if the USB input driver gets two mouse moves or keyboard hits in one read it stops working..?

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
ChrisH 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 13:23:26
#6 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

@Deniil715
Thanks, reference to USB got lost in the revisions I made to my post. Now added "USB" back.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
Hypex 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 15:01:44
#7 ]
Elite Member
Joined: 6-May-2007
Posts: 11232
From: Greensborough, Australia

@ChrisH

Just wondering, what happens if you unplug the keyboard/mouse and plug them back in again?

 Status: Offline
Profile     Report this post  
ChrisH 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 17:38:15
#8 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

@Hypex
First time I tried dis/re-connecting, it made no difference. Third time I tried it, it started working again! (BTW, a USB recognition message did appear in both cases, although difficult to be precise since I use a KVM.)

ALSO, I have sometimes noticed that the keyboard still reponds, even when the mouse is locked-up. So it seems specific to the USB *drivers* rather than the USB stack. Which may make some sense.

Last edited by ChrisH on 02-Mar-2009 at 05:40 PM.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
SinanG 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 19:26:28
#9 ]
Regular Member
Joined: 24-Dec-2004
Posts: 334
From: Unknown

@ChrisH

Does it work when you restart USB stack ?
usbctrl restart from CLI ?

These problems was happening on mA1s many months ago, but it was fixed before OS4.1

_________________
AmigaOS4 Beta-Tester
----------------------------------
Amiga X5000 8GB Radeon RX 560
Amiga A1222 2GB Radeon RX 550
Sam 460 2GB RadeonRX 550

 Status: Offline
Profile     Report this post  
ChrisH 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 19:35:14
#10 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

@SinanG
Difficult to restart USB stack when keyboard & mouse don't work . If I get lucky, and keyboard still works, I'll try it - my guess it would fix it, since that would be the equivalent of dis/re-connecting the USB devices.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
padrino 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 2-Mar-2009 20:00:41
#11 ]
Regular Member
Joined: 26-Jun-2004
Posts: 486
From: Germany

@ChrisH

As you can reproduce it, start this little script before..

wait 60
usbctrl restart

so you will see, if this helps. :)

CU,
Mario

_________________
********** AMIGA - More Than Just Standard **********

 Status: Offline
Profile     Report this post  
Gebrochen 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 5-Mar-2009 2:33:48
#12 ]
Super Member
Joined: 23-Nov-2008
Posts: 1430
From: Australia

@ChrisH

A solution to this, atleast for me it was happening reguarly with my Rubber Flex Keyboard, is to use a 4 port USB hub.

IN general, I rarely get this error anymore since using my 4 port HUB, whereas, before using the HUB, I would get it anywhere from 15 minute intervals to 1 hour.

Now I can use my sam440ep for hours and hours, with no usb keyboard or mouse glitches, again in general.

There have bene times, where If I load a program that doesnt like my hardware, this can still occur, whereby I loose the mouse. But the keyboard thats in my hub, continues to work, even at these times where the mouse was lost.

mMmmmm, Maybe I should also plug in the mouse into the 4 Port HUB?

Cheers.

Oh, I got my front usb ports also working, I have a total of 7 usb ports on my sam440ep.

Cheers again.

_________________
Courtesy of SAM440Flex & Amiga OS4.1 only
Flex is 800mhz
A1000 with Classic 520 Amiga OS3.2.1
AmiKit 12
MorphOS PowerBook G4 (which can play youtube vids)

https://blitterwolf.blogspot.com

 Status: Offline
Profile     Report this post  
Interesting 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 5-Mar-2009 3:22:22
#13 ]
Super Member
Joined: 29-Mar-2004
Posts: 1812
From: a place & time long long ago, when things mattered.

@Gebrochen

Quote:
IN general, I rarely get this error anymore since using my 4 port HUB, whereas, before using the HUB, I would get it anywhere from 15 minute intervals to 1 hour.


is that a powered hub? I remember those kinda issues in the early x86 changeover to Usb 2.0 from version 1.1.

_________________
"The system no longer works " -- Young Anakin Skywalker

 Status: Offline
Profile     Report this post  
ghack22 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 5-Mar-2009 3:26:03
#14 ]
New Member
Joined: 6-Feb-2009
Posts: 8
From: Unknown

@ChrisH

I get this all the time in Amiga OS 4.1 on my SAM.

Nice to know I am not the only one.

It never happens in linux... so I gotta assume it is a but in the OS 4.1 USB stack, but what do I know.

 Status: Offline
Profile     Report this post  
ChrisH 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 5-Mar-2009 8:59:14
#15 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

@ghack22 & Gebrochen
Unless you have exhausted your real memory, and OS4 has started using Virtual Memory (swap partition), your problem is not the same as mine.

_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
Tomas 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 5-Mar-2009 11:34:07
#16 ]
Elite Member
Joined: 25-Jul-2003
Posts: 4286
From: Unknown

@SinanG

Quote:

SinanG wrote:
@ChrisH

Does it work when you restart USB stack ?
usbctrl restart from CLI ?

These problems was happening on mA1s many months ago, but it was fixed before OS4.1


A bit hard to do that when you have no mouse or keyboard?

 Status: Offline
Profile     Report this post  
SinanG 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 5-Mar-2009 15:22:02
#17 ]
Regular Member
Joined: 24-Dec-2004
Posts: 334
From: Unknown

@Tomas

I had ps2 mouse keyboard connected to my ma1 so that I was able to restart USB stack

_________________
AmigaOS4 Beta-Tester
----------------------------------
Amiga X5000 8GB Radeon RX 560
Amiga A1222 2GB Radeon RX 550
Sam 460 2GB RadeonRX 550

 Status: Offline
Profile     Report this post  
KimmoK 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 25-Apr-2009 15:29:57
#18 ]
Elite Member
Joined: 14-Mar-2003
Posts: 5211
From: Ylikiiminki, Finland

Is there a fix for this issue yet?



I've installed AOS4.1 and SAM boots nicely. Next thing to solve is the loss of USB device that happens every now and then. Usually keyboard "drops off" after SAM stands idle for some time. When I disconnect and reconnect, it comes back but then mouse drops off ....


not having much fun yet

_________________
- KimmoK
// For freedom, for honor, for AMIGA
//
// Thing that I should find more time for: CC64 - 64bit Community Computer?

 Status: Offline
Profile     Report this post  
Hypex 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 25-Apr-2009 17:40:24
#19 ]
Elite Member
Joined: 6-May-2007
Posts: 11232
From: Greensborough, Australia

@Interesting

Quote:
is that a powered hub?


No it looks like a cheap $5 dollar special. I've seen it.

 Status: Offline
Profile     Report this post  
RWO 
Re: OS4.1 Virtual Memory BUG (mouse/keyboard stops working)
Posted on 25-Apr-2009 19:53:06
#20 ]
Regular Member
Joined: 8-Mar-2003
Posts: 457
From: Denmark

@ChrisH

What most likely is happening is this

The driver that is talking to the usb hardware uhci/ohci/ehci driver needs to allocate memory so it can start transaction (for read and write request), it will fail with low memory as it need specialy alligned and phycical mem.

The solutions is to use preallocate memory that gets recycled after use. This way you will not exhorst the memory and stop when memory is low.

Ofcoarse if you prealloce all memory that might be used.. a case of 127 devices with all 31 endpoints and so.. you will need to allocate a hugh size and that is just waste.

So allocating a small amount and in the event of low memory either delaying a request till there are free buffers or trying to allocate more.

RWO

Last edited by RWO on 25-Apr-2009 at 07:59 PM.

_________________
Debugging is a state of mind

 Status: Offline
Profile     Report this post  
Goto page ( 1 | 2 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle