Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Automatic session recording in VICE
2014-12-25 13:57
doynax
Account closed

Registered: Oct 2004
Posts: 212
Automatic session recording in VICE

I just wanted to check whether anyone here has played around with automatic/playback recording in VICE.

The idea is to make use of the recording facilities to capture all tests runs of a program so as to be able to easily reproduce any crashes or bugs which might crop up. This is perhaps not terribly useful in a completely deterministic demo but games are dependent on user-input and I keep running into hard-to-reproduce edge cases.

I gave it a quick shot myself this morning, figuring it must just be a matter of adding another command-line switch, but there are a few subtleties involved and my replays keep de-syncing so I thought I would first check whether anyone else has already done the work for me before diving any deeper into an unfamiliar codebase.

By the way, is the replay function in 2.4 and/or the current development snapshots reasonably reliable? The TODO-list mentions 2.2 being dodgy.

(Preemptive apology to Groepaz: Sorry for bringing up a topic here is which is probably better suited for the VICE forums.)
2014-12-25 17:55
chatGPZ

Registered: Dec 2001
Posts: 11386
history recording has always been a bit dodgy - mostly for the fact that its terribly hard to properly test (read: impossible).

personally if i'd be interested in anything related to this, i'd start creating test cases for history recording and playback first. i am sure there are still some bugs even in the latest version :)
2014-12-25 19:15
doynax
Account closed

Registered: Oct 2004
Posts: 212
I took a closer look and the de-sync appears to be unrelated to my "auto-recording" tweaks. Sorry.

For the record it seems affect the I/O timing and only occurs on the first replay attempt after restarting the emulator. Both release 2.4 and the current nightly build seem to be affect. The application uses G64 images so it's easy to suspect a culprit somewhere in that relatively disused code path.

Anyway, I'll submit a patch if I should manage to nail it down. Otherwise I've got a workable workaround.

Quoting Groepaz
history recording has always been a bit dodgy - mostly for the fact that its terribly hard to properly test (read: impossible).
I imagine it is. You have to account for the full state of a large program getting properly saved and insure that the emulation is completely deterministic. Not fun.

Any tips on tracking down the root cause of the divergence? There seems to be some CPU tracing feature linked to the event log in debug mode, presumably to compare the original execution trace to that of the replay.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Andy/AEG
MWR/Visdom
Mike
Walt/Bonzai
Freeze/Blazon
Steffan/BOOM!
Chesser/Blazon
katon/Lepsi De
Scrap/Genesis Project
4gentE/ΤRIΛD
hedning/G★P
LightSide
t0m3000/hf^boom!^ibx
Trap/Bonzai
Perplex/Offence
REBEL 1/HF
Mibri/ATL^MSL^PRX
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.044 sec.