English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 07 November 2021, 19:13   #1
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
Crash when using network adapter instead of SLIRP on Windows 10

Windows 10 version 21H1 (19043.1288)
WinUAE 4.4.0

Normally I wouldn't be concerned about this (despite preferring having WinUAE as an actual "device" on my network) but as of this morning SLIRP stopped working properly (DNS resolution isn't working, although it's just fine on the host).

I've attached my config as well as the WinUAE log files for a crashed run. The selected network adapter is the one I also use for any Hyper-V VMs on my computer that I need connected to the internet. I should mention also that I'm using Roadshow 1.14 for the network stack.
Attached Files
File Type: zip WinUAE-network-crash.zip (63.0 KB, 46 views)

Last edited by coldacid; 07 November 2021 at 19:16. Reason: More details
coldacid is offline  
Old 07 November 2021, 19:29   #2
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
Figured out that I should run with -netlog, so here's an updated zip with fresh logs.
Attached Files
File Type: zip WinUAE-network-crash-2.zip (106.6 KB, 58 views)
coldacid is offline  
Old 08 November 2021, 01:59   #3
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
I was able to get things working under SLIRP again by explicitly setting name servers for Roadshow to use (WinUAE was sending 10.0.2.3 as the suggested name server when it would only respond to DNS requests from 10.0.2.2). However, I'd still like to get working via proper network adapter instead of SLIRP.

I tried 4.9.0b39 but it would crash as soon as Roadshow would start initializing a connection with a 0xffffffff`ffffffff pointer in the JIT.

EDIT: 10.0.2.2 doesn't work for DNS either; I had also put in a nameserver line for another DNS resolver.

Last edited by coldacid; 08 November 2021 at 13:54. Reason: Update on DNS resolution issue with SLIRP
coldacid is offline  
Old 08 November 2021, 15:41   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Switch off JIT and disable all unneeded expansions (including CSPPC). Does it still crash? If it does not, try to find out which expansion causes the problem.

If it still crashes, attach crash dump file.
Toni Wilen is offline  
Old 08 November 2021, 18:51   #5
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
Without JIT, I can't even establish a network connection due to timeouts. Trying to reconnect (via Roadie) fails, and then quitting WinUAE with the emulation in this state causes a crash.

Switching from A2065 to X-Surf-100 with JIT off is able to establish the network connection, but then DNS requests time out instead despite other systems on my network being reachable, if very slowly. With JIT on, X-Surf-100 instead of A2065, and CSMk3 re-enabled with 128MB RAM, network speed is still slow but there are no crashes with UAESND Z3 disabled. However, the log is full of "NE2000: receive buffer full" and I continue to get timeouts for DNS and HTTP/S requests constantly. I have a suspicion that the full buffer is why the requests are all failing -- data is getting out to the network alright, but the response data is dying "on the wire" inside the emulation. My full configuration but with A2065 switched to X-Surf-100 doesn't fare any better.
coldacid is offline  
Old 08 November 2021, 18:58   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Do you have separate NIC (that is not used by Windows) or share same NIC?

Sharing is not supported because it can cause all kinds of unexpected side-effects.
Toni Wilen is offline  
Old 08 November 2021, 19:03   #7
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
Two more A2065 quit-crashes although this time without trying to connect before quitting. This time with full config without JIT, and another without JIT or CSMk3.

The only way I can get non-quit crashes is with JIT enabled; so far it doesn't look like the presence or lack thereof of UAESND Z3 or CSMk3 make any difference.
Attached Files
File Type: zip WinUAE-net-crash-on-exit-3-no-jit.zip (2.40 MB, 50 views)
File Type: zip WinUAE-net-crash-on-exit-4-no-jit-or-csmk3.zip (915.9 KB, 50 views)
coldacid is offline  
Old 08 November 2021, 20:12   #8
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
Looks like the reason the connections kept timing out before was because of the logging enabled from the command prompt. Running WinUAE with only standard winuaebootlog/winuaelog works with JIT turned off. Going to see if I can snag some proper crashes now.
coldacid is offline  
Old 08 November 2021, 22:17   #9
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
Here's an immediate crash with JIT turned off, no UAESND Z3, and no CS Mk III.

Windows and WinUAE have different virtual NICs connected to a virtual switch which uses the computer's physical NIC. It's the standard external virtual switch configuration from Hyper-V, which works not just for Hyper-V virtual machines but also for other virtual network devices on this computer.
Attached Files
File Type: zip WinUAE-A2065-noJIT-noCSMk3-noUAESND-crash.zip (1.54 MB, 50 views)
coldacid is offline  
Old 09 November 2021, 23:35   #10
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
I think I figured out my error. Use of the virtual switch did not actually provide a new virtual NIC for WinUAE. I've now created a new virtual NIC and have WinUAE using that, so far so good. Hopefully I won't have any more crashes in WinUAE with my virtual network setup.
coldacid is offline  
Old 10 November 2021, 17:47   #11
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quit crash should be fixed in next version. A2065 reset freed board's internal RAM from emulated memory map before closing winpcap and if winpcap sent new ethernet frames during this window (it runs in separate thread), it crashed because A2065 emulation was partially switched off..

Unfortunately this does not explain other problems.
Toni Wilen is offline  
Old 10 November 2021, 19:31   #12
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
The other problem did turn out to be double-booking the NIC. With a new virtual NIC dedicated to WinUAE, I don't have any more network related crashes. Thanks for the A2065 quit crash though!
coldacid is offline  
Old 10 November 2021, 19:34   #13
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
It still shouldn't cause crashes, unless some Amiga-side networking buffer overflowed. I don't think roadshow causes it, perhaps Amiga-side NIC driver gets confused if too much traffic appears almost immediately.
Toni Wilen is offline  
Old 11 November 2021, 04:04   #14
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
That would explain the full buffer messages in the logs in the crashed sessions.
coldacid 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
A1200 crash after PCMCIA network connection FLiP79 support.Hardware 18 06 March 2023 20:12
Access Windows share over network from A2000? LuigiThirty New to Emulation or Amiga scene 10 10 January 2017 13:17
Crash with Windows Server 2008 mark_k support.WinUAE 2 26 October 2016 20:10
slirp network emulation backend Toni Wilen support.WinUAE 27 28 February 2014 13:48
catweasel joystick crash, windows xp 32 Marcuz support.WinUAE 1 14 October 2007 16:31

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 17:55.

Top

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