08 December 2021, 20:18 | #1 |
Bug hunter
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. |
08 December 2021, 21:10 | #2 |
Registered User
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". |
09 December 2021, 10:23 | #3 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Oh, didn't know, thanks.
|
09 December 2021, 11:53 | #4 |
Registered User
Join Date: Nov 2010
Location: Grenoble, Isère, Rhône-Alpes, France, Europe, Earth
Posts: 287
|
alt-F12 then Cancel ?
|
09 December 2021, 12:16 | #5 |
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).
|
09 December 2021, 22:58 | #6 |
Bug hunter
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.
|
12 December 2021, 15:09 | #7 |
Bug hunter
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. |
12 December 2021, 19:43 | #8 |
Old retro god.
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.. |
30 December 2021, 10:37 | #9 |
Bug hunter
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... |
30 December 2021, 16:17 | #10 |
2064
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. |
30 December 2021, 17:35 | #11 |
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? |
30 December 2021, 18:20 | #12 | |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Quote:
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... |
|
01 January 2022, 08:57 | #13 |
Bug hunter
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. |
01 January 2022, 12:20 | #14 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
After some hours running:
|
01 January 2022, 12:21 | #15 |
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.
|
01 January 2022, 14:58 | #16 |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
The others are ok (Handles, I/O Other...)?
|
01 January 2022, 17:17 | #17 |
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. |
03 January 2022, 22:04 | #18 |
Bug hunter
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. |
04 January 2022, 10:59 | #19 | |
Bug hunter
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
|
Quote:
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. |
|
04 January 2022, 11:44 | #20 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
|
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 |
|
|