English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 08 December 2021, 20:18   #1
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
4.9.0 strange freeze after inactivity

Whole WB (Picasso96 RTG) freezed (no mouse movements) with 4.9.0 public release after long time run... Still have to find a pattern but it already happened twice when reopening WinUAE window (I use auto-iconify, no audio, when focus is lost) after some hours.
Could be just some buggy Amiga software I run before I iconified WinUAE which corrupted something in mem, but everything was working fine 'till then. I'm investigating...

Last edited by hexaae; 08 December 2021 at 20:24.
hexaae is offline  
Old 08 December 2021, 21:10   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
I don't know if it will help in this case, but in general you can right click on application/tasks in task manager and select "create dump file" even when the process is frozen. This will create a ".dmp" file (windows should show where it's located).

Attaching that dmp-file isn't guaranteed to help, but it won't hurt. I don't think Toni publishes PDB files for WinUAE, but anyone with a debugger could then see if it's something "obvious".
paraj is offline  
Old 09 December 2021, 10:23   #3
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Oh, didn't know, thanks.
hexaae is offline  
Old 09 December 2021, 11:53   #4
Gilloo
Registered User
 
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
alt-F12 then Cancel ?
Gilloo is offline  
Old 09 December 2021, 12:16   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Crash dump won't help if emulator itself hasn't frozen (F12 still works etc).
Toni Wilen is offline  
Old 09 December 2021, 22:58   #6
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
I was able to open F12 GUI when WB was frozen and even mouse inputs ignored.
hexaae is offline  
Old 12 December 2021, 15:09   #7
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Still investigating... in the meanwhile I can confirm (reproduced every time) that on the long run (hours...) something happens and WinUAE 4.9.0 becomes progressively slower.
Rebooting Workbench won't help, so it's not something on the Amiga software side... This visible slow down (slow at opening drawers, slow to process images with ArtEffect etc..) won't go away 'till I fully quit and re-launch WinUAE task (Restart button won't help either).
I use JIT ON for Workbench (RTG latest P96), usually switch it temporary OFF before I run native games.

Last edited by hexaae; 12 December 2021 at 15:22.
hexaae is offline  
Old 12 December 2021, 19:43   #8
Mclane
Old retro god.
 
Mclane's Avatar
 
Join Date: Apr 2002
Location: Northolt, West London
Age: 62
Posts: 857
Mem leak?

Open task manager when its doing this and see how much mem is being consumed..

Not sure if it will reveal anything but anything must be worth a look..
Mclane is offline  
Old 30 December 2021, 10:37   #9
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
@Toni
Is there something I can do (dump or whatever...) when the slow-down happens? Seems totally random, or at least can't find a pattern yet but definitely it randomly happens...
hexaae is offline  
Old 30 December 2021, 16:17   #10
NoX1911
2064
 
NoX1911's Avatar
 
Join Date: Jul 2005
Location: de
Posts: 231
Maybe you can narrow it down even further by testing previous beta versions.
And in a perfect world you would bisect the corresponding versions then. But you probably don't want to try that if you've never worked with 'git' before.
NoX1911 is offline  
Old 30 December 2021, 17:35   #11
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Download Process Explorer and check winuae.exe Performance/Handles and Virtual memory/physical memory panel counts stays stable.

If you have sound playing, does it keep working normally?

Does inserting/ejecting disk still work? (OSD led track count changes if trackdisk.device is alive).

Does changing D3D mode wake it up? Or fullscreen<>windowed toggle?
Toni Wilen is offline  
Old 30 December 2021, 18:20   #12
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Quote:
Originally Posted by Toni Wilen View Post
Download Process Explorer and check winuae.exe Performance/Handles and Virtual memory/physical memory panel counts stays stable.

If you have sound playing, does it keep working normally?

Does inserting/ejecting disk still work? (OSD led track count changes if trackdisk.device is alive).

Does changing D3D mode wake it up? Or fullscreen<>windowed toggle?
Ok will check with Process Explorer...
Yep, sound is ok (Delitracker, AmigaAMP68K...).
Yep disk is still working...
D3D mode switch not tested. I'll try next time to switch back to DX9...
hexaae is offline  
Old 01 January 2022, 08:57   #13
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
@Toni
One strange thing I've just noticed is that Working Set physical mem is constantly increasing every 3 secs +4KB...



532.016... 532.020... 532.024... and so on. Will keep it running and report back...

Last edited by hexaae; 01 January 2022 at 10:39.
hexaae is offline  
Old 01 January 2022, 12:20   #14
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
After some hours running:

hexaae is offline  
Old 01 January 2022, 12:21   #15
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Working set can rise because memory pages (page is 4k) that have not yet been accesses are not counted (=are not mapped to winuae.exe address space yet) and this includes Amiga side RAM. This makes it difficult to know if it is actual memory leak or normal, for example some Amiga program using different parts of memory or Amiga side memory getting fragmented which appears as larger working set without change in Amiga side free RAM.
Toni Wilen is offline  
Old 01 January 2022, 14:58   #16
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
The others are ok (Handles, I/O Other...)?
hexaae is offline  
Old 01 January 2022, 17:17   #17
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Possibly. Depends on how much RAM your config has.

If you can duplicate the problem relatively easier, try narrowing down the beta that introduced it (usually binary search works the best but check first beta first).

But first 100% confirm it does not happen with 4.4. Do not assume anything because some driver/windows/something update can always cause unexpected side-effects.
Toni Wilen is offline  
Old 03 January 2022, 22:04   #18
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Ooops, I've found I forgot the option "Misc > Allow native code = ON"... Could this lead to JIT corruption (still have no idea what that option is exactly for honestly)?
EDIT: http://eab.abime.net/showthread.php?t=96702 uhm... I never installed x86 custom libs for WinUAE so I guess it can't have nothing to do with my JIT crashes...

Last edited by hexaae; 03 January 2022 at 22:11.
hexaae is offline  
Old 04 January 2022, 10:59   #19
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Quote:
Originally Posted by Toni Wilen View Post
But first 100% confirm it does not happen with 4.4. Do not assume anything because some driver/windows/something update can always cause unexpected side-effects.
Running 4.4.0 for 9 hours, no slowdown...



EDIT: in the meanwhile I made a test and discovered the slowdown is exactly like when I completely disable JIT at Workbench. So adding this clue to the fact that I also experienced "JIT serious error: Could not allocate block pool!" crashes, 95% is some problem with JIT on the long run in the new 4.9.x... Replicated the problem also using 040 emu (my default cfg is 060).

Last edited by hexaae; 04 January 2022 at 11:12.
hexaae is offline  
Old 04 January 2022, 11:44   #20
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Quote:
Originally Posted by hexaae View Post
Running 4.4.0 for 9 hours, no slowdown...

Can you almost immediately see the difference between 4.4.0 and 4.5/4.9.x if you run 2 versions simultaneously and keep both process explorer panels open? It would make finding the first non-working version much quicker.
Toni Wilen 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
Disk drive inactivity while light is on B14ck W01f support.Hardware 9 25 April 2015 07:15
Paula freeze Cosmos Coders. General 2 15 July 2010 09:01
How to freeze the cartridges landex support.WinUAE 3 27 November 2007 22:14
Unsual Case of Dr. Strange / Return of Doctor Strange killergorilla HOL contributions 1 12 July 2007 16:08

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 15:40.

Top

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