English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 02 June 2012, 16:15   #1
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
uaenet.device problem with amitcp 2.2

I am using uaenet.device and AmiTCP 2.2 and at startup the message is shown:
S2_CONFIG_INTERFACE: Inappropriate State (Attempt to config twice).

And Internet doesnt works.

Previously (with A2065 Z2) the message isnt shown.

It happens with the config generated by AmiTCP.
Leandro Jardim is offline  
Old 02 June 2012, 16:59   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Create log with -netlog command line parameter.
Toni Wilen is online now  
Old 02 June 2012, 17:44   #3
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
Done. Now Internet worked even message being shown...

Last edited by Leandro Jardim; 21 September 2013 at 10:26.
Leandro Jardim is offline  
Old 02 June 2012, 19:32   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Hmm.. Following messages are more serious (something confuses copper emulation), could you try to find out what causes them to appear?

Code:
error2: vpos=0 until_hpos=219
cvcmp=12 chcmp=0 chpos=162 cvpos=0 ci1=0C01 ci2=FFFE
cstate=7 ip=4bc SPCFLAGS=4
Toni Wilen is online now  
Old 02 June 2012, 22:19   #5
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
Well, it happens everytime WinUAE is transmitting something with uaenet.device or bsdsocket.library and CPU is in 68EC020 mode, AGA chipset. I usually use a interlaced screen 640x512 16/64/256 color. The screen blinks many times and the problem is more visible when I run Copper-Demon. I didnt tested other modes. But I tested with other CPUs and no problem was seen with them. And the interesting is that it never happens with the Z2 CBM card emulation.

I browse the Internet in an AGA 16 color screen mode propositionally to stress a bit WinUAE. I love to see the emulation working and I loved doing this on my Amiga.
Leandro Jardim is offline  
Old 03 June 2012, 13:11   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
I can't duplicate. I used your config (only replaced harddrive) and no strange logging, even if I used miami + a2065 or uaenet.

Could you create minimal harddrive that still shows the problem? As minimal as possible to reduce the number of unknown variables? (But do not upload it, it most likely includes programs that shouldn't be uploaded)
Toni Wilen is online now  
Old 03 June 2012, 20:22   #7
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
Quote:
Originally Posted by Toni Wilen View Post
I can't duplicate. I used your config (only replaced harddrive) and no strange logging, even if I used miami + a2065 or uaenet.

Could you create minimal harddrive that still shows the problem? As minimal as possible to reduce the number of unknown variables? (But do not upload it, it most likely includes programs that shouldn't be uploaded)
Interesting, because I have this problem not only with the computer I have actually, but with another completely different computer I used before... The CPU brand, the video card, all different... And with different hardfiles... This problem is very, very old.

Then I will do this: I will comment suspicious lines in my startup-sequence and remove all programs in my WBStartup until I find the problem.

One suspicious program I have installed is SystemPatch 2.9.

Last edited by Leandro Jardim; 03 June 2012 at 20:43.
Leandro Jardim is offline  
Old 03 June 2012, 20:56   #8
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
As I said the problem is very old. It happens even before you put the Cycle-Exact feature into WinUAE.

What I want to say is that a similar problem appeared in the 0.8.x versions of WinUAE. I reported it to Brian King at that time but I stopped reporting the error because I had lost my Internet connection. I am unsure of what happened to WinUAE since then. But the side effects was the same. The only difference is that at that time instead of writing a log WinUAE showed a dialog with the copper registers.

But at that time Brian King didnt know about the reason of the bug. Maybe you should talk a bit with Brian King, to talk about this bug, maybe him remembers it well and could say to you something about it.

Last edited by Leandro Jardim; 03 June 2012 at 21:04.
Leandro Jardim is offline  
Old 02 July 2012, 22:00   #9
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
Well guys... it appears that the problem is caused by FBlit, any configuration but I use its default. With it AmigaOS crashes near instantly when in AWeb. But SystemPatch seems to fix the bug a bit, what happens is that the screen blinks and flashes very much, but interesting is that AmigaOS gets usable. Dont forget to use a Copper backdrop, because the screen will blink/flash even more.

I use an AGA interlaced screen, with 16 colours. I installed SystemPatch 2.99, ClassAct 3.3, FBlit 3.79a, CopperDemon 3.2, and AWEB 3.5.09. With BSDSocket.library only.

I submitted a new configuration.

Last edited by Leandro Jardim; 21 September 2013 at 10:26.
Leandro Jardim is offline  
Old 03 July 2012, 15:59   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Quote:
Originally Posted by Leandro Jardim View Post
Well guys... it appears that the problem is caused by FBlit, any configuration but I use its default. With it AmigaOS crashes near instantly when in AWeb. But SystemPatch seems to fix the bug a bit, what happens is that the screen blinks and flashes very much, but interesting is that AmigaOS gets usable. Dont forget to use a Copper backdrop, because the screen will blink/flash even more.

I use an AGA interlaced screen, with 16 colours. I installed SystemPatch 2.99, ClassAct 3.3, FBlit 3.79a, CopperDemon 3.2, and AWEB 3.5.09. With BSDSocket.library only.

I submitted a new configuration.
If you run with -log command line parameter, when does above log messages appear? Immediately you run AWeb? Does it always happen when bsdsocket.library is opened? (Opened by any program, does even simple ping cause it?)

I assume it also happens without JIT?
Toni Wilen is online now  
Old 03 July 2012, 18:56   #11
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
It happens only if I disable JIT. Thats because the bug needs the 24 bits addressing of 680EC20 to appear. Tested. I use a 68EC020 cycle-exact configuration with 4 MB and AGA (based on the A1200 quickstart configuration) always. I formatted a new hard-file and installed everything, from scratch.

The message appears on a ping or when AWeb is downloading a HTML page. For example the home page of Aminet or even better, EAB (because its much bigger and has more pictures).

If I use A2065 this is the message that I see (but the screen does not flash/blink):

38-869 [4304 002-000]: A2065: RECEIVE BUFFER ERROR

I am thinking that probably the problem may not be related directly to FBlit, etc., but only to the 24 bit addressing of the registers of the 68EC020.

Last edited by Leandro Jardim; 03 July 2012 at 19:31.
Leandro Jardim is offline  
Old 04 July 2012, 14:37   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Does it still happen (or does something change?) if you enable RTG in Zorro2 mode (set for example 1M VRAM size).

There is no need to actually use RTG in AOS, only need to enable it in emulation configuration.

EDIT: Must use latest 2.4.2 beta! (RTG enabled or 68020+ = different memory allocation)

Last edited by Toni Wilen; 04 July 2012 at 14:45.
Toni Wilen is online now  
Old 06 July 2012, 04:59   #13
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
I downloaded the last beta and tested it...

Without RTG, I noticed the screen doesnt blinked/flashed anymore, but I got 3 recoverable alerts. But it dont crashed, before it crashed sometimes.

With RTG, the screen blinked/flashed 4 times and it didnt crashed. There was almost no difference in the logs.

Perhaps I would need to test it some time more, mainly because of the crashes, but my Internet connection is horrible.

Last edited by Leandro Jardim; 06 July 2012 at 22:37.
Leandro Jardim is offline  
Old 09 July 2012, 11:38   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,570
Problem found (and it was ancient), hopefully this is fully fixed in next version.
(Thanks to OP for sending perfectly working test case)

It was caused by new host/m68k switching calltrap code which needed to store (and later restore) CPU state (=registers etc..) but accidentally it also stored variables that are used by chipset emulation (including flag that tells if next scanline ends copper wait)

It seems only some bsdsocket calls can trigger this problem (uses trap that does emulated m68k code -> native C code -> native C code calls AOS library function -> m68k code -> RTS from emulated m68k code -> back to native -> back to original call)

Problem was triggered only if chipset state changed during middle m68k code which is very rare unless CPU emulation is slow (non-JIT) and chipset was busy (for example copper background)

At least it was not completely my fault because this code was implemented years ago by (disappeared) E-UAE author (It is just a tiny mistake, new trap code was great improvement, old one was really horrible and non-portable)
Toni Wilen is online now  
Old 06 August 2012, 00:34   #15
Leandro Jardim
Registered User
 
Leandro Jardim's Avatar
 
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
Wow, so its should be a very complex problem and you fixed it... Wow... Congratulations!

Last edited by Leandro Jardim; 06 August 2012 at 03:35.
Leandro Jardim is offline  
Old 06 August 2012, 10:00   #16
cosmicfrog
The 1 who ribbits
 
cosmicfrog's Avatar
 
Join Date: Apr 2006
Location: leek, Staffs, UK
Age: 56
Posts: 3,557
Send a message via MSN to cosmicfrog
I like happy endings
cosmicfrog is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uaenet.device Fabie support.WinUAE 1 18 January 2010 18:12
UAENet.device Doc Mindie support.WinUAE 8 13 October 2008 14:00
uaenet.device as real file? selco request.UAE Wishlist 4 02 October 2008 10:32
uaenet.device problems nOw2 support.WinUAE 1 11 May 2008 16:02
uaenet.device help MickJT support.WinUAE 12 01 January 2008 20:21

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:56.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08856 seconds with 13 queries